Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
From the command line,
git push -u origin branch-name
Now in git gui you should have that branch come up
|
I have cloned a repository from github and checked out a remote branch. I made a change to the remote branch, committed it, but then when I try to push the change back to the remote branch I get the message "Everything is up-to-date". What am I doing wrong here? Plus, it doesn't let me push to the branch, the only ... | Git gui: how to push to a remote branch? |
0
Internally ignite.sh or run.sh just invoke Ignition.start() after all. But before that, it performs additional steps by configuring JVM instance, setting up IGNITE_HOME, picking up your configuration, making verifications, handling the arguments, exit codes, etc.
It's to... |
I know two ways to start Ignite cluster - one is running it as a docker container using run.sh script inside apacheignite/ignite image and the other is by running Ignition.Start() method inside the app, which allows us to have thick client ready to work on Ignite.
We would like to use the thick client so the second ap... | What is the difference between starting Ignite using run.sh script inside docker image and using Ignition.Start() method? |
git push origin <local-branch-name>:<remote-branch-name>Substitute for<local-branch-name>and<remote-branch-name>. They may be same or different, as you wish.ShareFollowansweredJul 2, 2009 at 3:33Alan Haggai AlaviAlan Haggai Alavi73.3k1919 gold badges104104 silver badges127127 bronze badges32Does that mean I can then do... | I have a local repository I'm working on and its remote is hosted on GitHub. I recently created a branch and started working on it, making several commits and now wish to push the branch to GitHub and be able to pull it to another cloned repository. How do I do this? | Push branches to Git |
I just figured out the missing piece to this: one must have the private key in the same folder renamed to mycert.key (where mycert is whatever the name of the CER file is). This was the file that could not be found.The private key in this case had been downloaded from GoDaddy as a text file. | I have previously used the certutil program to successfully convert a .CER formatted SSL certificate to .PFX format using the syntaxcertutil -MergePFX mycert.cer mycert.pfxas suggested in an answer to the postHow to convert .crt cetificate file to .pfx(note that I previously converted the .CRT file to a .CER file).Howe... | Error using certutil -MergePFX - The system cannot find the file specified |
0
I found that value of
io.airbyte.config.helpers.LogConfigs.getStorageConfigs() is read from WORKER_LOGS_STORAGE_TYPE.
So, when I define WORKER_LOGS_STORAGE_TYPE variable worker is working now.
Share
Improve this answer
Follow
... |
I'm trying to deploy airbyte into k8 as a docker image.
and I build it from this compose
https://github.com/airbytehq/airbyte/blob/master/docker-compose.yaml
Other images are working fine but only worker image that can't start.
It shows error like this.
2023-01-27 05:06:47 [1;31mERROR[m i.m.r.Micronaut(handleStartupEx... | Try to start my airbyte worker image and it doesn't works |
4
The best workaround for this purpose is ..
search using in:path Dockerfile
This will also include directories consisting the word 'Dockerfile', but such results are quite unlikely.
Share
Improve this answer
Follow
... |
E.g.: I want to find all CRMs which have Dockerfile inside their repository.
I checked github help, but haven't found any suitable search qualifier. There is just filename: and in:file:, but it's not as desired, I need something like has_file: or in:filename
Any workaround?
| How to search Github repositories which have file with particular filename? |
That's basically correct, yes. To explain what each thing is doing...
git init basically says, "Hey, I want a repository here." You only will have to do this once per repository.
After that, you will want to add a remote, which GitHub probably told you to do by using git remote add origin [email protected]:username/r... |
So:
1) I have created my account on github and I've created a repository there.
2) I have the keys to access the repository from my dev machine to github, using SSH, so that my local repository is synchronized with the remote one hosted on github once I do, push or pull.
But, I'm not understanding how will all this ... | How do I start using my repository locally and on Github? |
You can check that your SSL certificate is valid and correctly issued by a trusted CA with an online SSL certificate verification tool. Also, check your firewall and router configuration, make sure your firewall and router allow incoming HTTPS connections on port 443 to reach your server. | I installed an ssl certificate on a website but https doesn't work.
I have a server with O.S. Windows server 2012 R2, IIS 8 connected to internet via fixed IP. In IIS, in addition to the default website (Default Web Site), I have added other websites that I can manage by setting the 'host name' field in the binding pro... | What additional settings are required to use an SSL certificate on a non-default website in IIS 8? |
You can't force it. If you allocate all the objects in quick succession they'relikelyto be contiguous - but if you're storing them in a collection, there's no guarantee that the collection will be local to the actual values. (The collection will have references to the objects, rather than containing the objects themsel... | I am trying to implement a cache-like collection of objects. The purpose is to have fast access to these objects through locality in memory since I'll likely be reading multiple objects at a time. I currently just store objects in a java collections object like vector or deque. But I do not believe this makes use of... | trying to store java objects in contiguous memory |
You want:histogram_quantile(0.90 , sum by (route, le) (rate(southbound_request_duration_seconds_bucket{marathon_app_path=~"$instance_path", route=~"$route", env="mars"}[1d])))so thatleis preserved for histogram_quantile, and it's also broken out by route. | I'm collecting metrics with Prometheus, specifically histograms of outgoing requests from my service to various routes.Here's an metric example:southbound_request_duration_seconds_bucket{le="0.05",target="api.token-machine.fra.co",method="GET",route="http://api.token-machine.fra.co/states",status_code="200",type="total... | Prometheus query for metrics generation |
3
http://project.example.com/ will also be accessible at http://example.com/projectname/
> Is there any way to avoid this?
I was able to avoid this via a project pages setup for each subdomain as well as the domain. It didn't work with CNAME records so I had to use A reco... |
I have an organization GitHub Pages repository set up, and it's served through a custom domain name (let's say, http://example.com/).
I also have a couple of projects pages which I want to be accessible via a subdomain only (let's say, http://project.example.com/), but it turns out that they will also be accessible at... | Showing a GitHub project page only under custom subdomain, never via folder path |
http://www.opengl.org/documentation/specs/version1.1/state.pdfA bit outdated, but still quite valuable imo.ShareFollowansweredMay 5, 2010 at 13:27eileeile1,15366 silver badges1818 bronze badges2Better than nothing. I don't think this topic is going to generate more answers any time soon, so I will accept your answer as... | First of all, I need to clarify that I'm not after theOpenGL Quick Reference Sheet.Has anyone come by a flow-chart-like cheat sheet for OpenGL rendering pipeline? I'm talking about the sheets like these:If not, what's the closest I can get aside from the official quick reference sheet? | OpenGL Cheat Sheet? |
There could be many of reasons for this issue. One of the reason we face this issue is when we raise a PR in a new repository.Now, in a new repository, base/default branch would always be empty and hence there will be no sonar data for that. Now, to add the codebase the very first time, you would create a feature branc... | Below is the message shown when I create a pull request(which I configured the sonar for bitbucket plugin).Please advise. Thanks.Sonar data unavailableWas not able to fetch data for Sonar project "abc.com". Either your pull request has not been analyzed yet, a non-existing Sonar project is referenced or you use the new... | Pull request analysis not working in Sonar Qube for bit bucket server(sonar for bitbucket plugin) |
5
The Docker run reference documents:
-v, --volume=[host-src:]container-dest[:<options>]: Bind mount a volume.
The comma-delimited `options` are [rw|ro], [z|Z],
[[r]shared|[r]slave|[r]private], and [nocopy].
The 'host-src' is an absolute path or a name value.
If neither 'r... |
In the short syntax source:target:mode the official documentation only mentions ro and rw but in the cookiecutter template for django they are using other two modes: z and Z, I didn't find any reference for them anywhere, What are they?
| Docker-compose volumes mode options |
3
to assign a variable, you don't need the dollar sign:
files=foo
to save the output of an command to a var, you need do:
files=$(ls)
or
files=$(ls /path/to/some/dir)
Share
Improve this answer
Follow
... |
So I'm writing a simple backup script that when called will either back up a specific file or all the files in my current directory into my backup directory.
This is my script
#!/bin/bash
#verify if $1 is empty, if so, copy all content to backup directory
if [ -z "$1" ]
then
$files=ls
#Looping through files... | bash backup script error |
You can use the following rule :<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^subdir/(.*)$ http://newdomain.com/ [R=301,L]
</IfModule> | I like to redirect all pages underolddomain.com/subdirectory/to be redirected tonewdomain.com?The newdomain.com site has a new URL structure, so I want every page under theolddomain.com/subdirectory/urlsto be redirected to thenewdomain.comhomepage.I tried below code.<IfModule mod_rewrite.c>
Options +FollowSymLinks
Rewr... | Redirect all subdirectory pages to new domain home page in .htaccess |
Adding the image directive when a build directive exists in a service will name and tag the built image:
version: '3'
services:
node1:
build: node1
container_name: node1
image: node1:latest
|
I have the following docker-compose file
version: '3'
services:
node1:
build: node1
container_name: node1
node2:
build: node2
container_name: node2
Here is the Dockerfile of node1
FROM ubuntu
RUN apt-get update && apt-get install -y iput... | docker-compose build, how to tag image |
It's indeed not possible toadda label to an existing image. Strictly speaking, adding a label would change the images checksum, thus its id, thus it's no longer the same image.But you can build an imagebasedon your existing image with a label added, and then tag this image with the name of the previously existing image... | I know that there is a LABEL available in Dockerfile. But I was wondering how to add additional labels to the image after it is built? Is this possible? | How to add docker label after image is made |
Take a look at thetask schedulerdoc.Starting The SchedulerHere is the only Cron entry you need to add to your server:* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1This Cron will call the Laravel command scheduler every minute. Then, Laravel evaluates your scheduled tasks and runs the tasks that are due.I... | I'm trying to get Laravel 5.1 Task Scheduling working on IIS. When I run a batch file using Windows task manager it will run the task one time only. How can I get ->everyMinute() to work?Windows batch file:cd c:\inetpub\myapp
c:\PROGRA~2\PHP\php.exe artisan schedule:run 1>> NUL 2>&1The kernel:class Kernel extends Conso... | Laravel 5.1 Task Scheduling on Windows |
I guess you're scraping metrics from wrong path. You said thatGETrequest onhttp://localhost:4567/helloreturn youhelloinstead of the metrics information.The expected metrics information format is the following:$ curl http://localhost:8080/metrics
# HELP http_requests_total Count of all http requests
# TYPE http_requests... | I have a get request like this:http://localhost:4567/helloWhich return in postman : "hello"I want now to receive this in prometheus:- job_name: 'prometheus'
scrape_interval: 5s
metrics_path: /hello
static_configs:
- targets: ['localhost:4567']But I receive in the prometheus console:level=warn ts=2019... | How can I get the number of requests to rest server with prometheus? |
oh, look like they've moved the issues tracker to https://phabricator.babeljs.io/
direct links to issues became https://phabricator.babeljs.io/T${ID}, e.g. https://phabricator.babeljs.io/T2679
|
Something's wrong with babel issues on github.
https://github.com/babel/babel/issues redirects to https://github.com/babel/babel/pulls, direct links to issue (e.g. https://github.com/babel/babel/issues/2679) show 404 page not found.
Is this only me?
| Can't open babel/issues link |
kubectlsaves clusters/contexts in its configuration. If you use the default scripts to bring up the cluster, these entries should've been set for your clutser.A brief overview ofkubectl config:kubectl config viewlet you to view the cluster/contexts in
your configuration.kubectl config set-clusterandkubectl config set-c... | Is there something like:
kubectl get pods --project=PROJECT_IDI would like not to modify my default gcloud configuration to switch between my staging and production environment. | Is there a way to specific the google cloud platform project for kubectl in the command? |
Don't do this. Put that thing in its own deployment (or statefulset more likely) that is unrelated to the others. | I am trying to run a process in only ONE docker pod (and not the other n pods),can I know (from inside a pod/instance)am I the first pod?how many pods are running?thanks. | run a task in only ONE pod (of multiple pods) |
As documented in Chapter 23. Scheduling and Thread Pooling, Spring has scheduling support through integration classes for the Timer and the Quartz Scheduler (http://www.quartz-scheduler.org/). For simple needs, I'd recommend to go with the JDK Timer.
Note that Java schedulers are usually used to trigger Java business ... |
In a java web application (servlets/spring mvc), using tomcat, is it possible to run a cron job type service?
e.g. every 15 minutes, purge the log database.
Can you do this in a way that is container independent, or it has to be run using tomcat or some other container?
Please specify if the method is guaranteed to ru... | Is it possible to run a cron job in a web application? |
Make sure you have enabled mod_rewrite in your .htaccess.Also make sure you these lines at the top of your .htaccess:Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /i.e. turn theMultiViewsoptions off.Also seethis Q&Afor a similar problem and my answer. | I have Ubuntu 12.10 with apache2 installed, and my .htaccess file is not working. I have it set up to be able to not have .php file extensions in the links, so it looks like www.website.com/login instead of /login.php, but it says that the URL "/login" is not found on the server. I have readthis pageand it says somethi... | Web server not reading .htaccess file |
Use -pedantic-errors flag. Example.
They are known as VLAs (Variable Length Arrays). The are legal in C from C99 and illegal in C++.
|
I wrote a program for an assignment in which I allocated memory in this way:
EdgeBucket* edgeTable[ n_scanlines ];. I understand that this is normally illegal in C, but I was not aware that it could also not be done in C++. However, when I compile it using g++, it gives no compile errors. But my grader is using a visu... | cross compiler issues with dynamic memory allocation |
You can also run following command rather than writing the yaml,kubeadm init --kubernetes-version=1.11.0 --apiserver-advertise-address=<public_ip> --apiserver-cert-extra-sans=<private_ip>If you are using flannel network run following commad,kubeadm init --kubernetes-version=1.11.0 --pod-network-cidr=10.244.0.0/16 --api... | I have 2 vms that run a kubernetes master and a slave node that i have setup locally. Till now everything was working fine but suddenly it started giving errors when I try to start the master with kubeadm init command.I have cpppied the error below.shayeeb@ubuntu:~$ sudo kubeadm init
[init] using Kubernetes version: v1... | why is Kuberenetes kubeadm init command unable to pull the images from the repository k8s.gcr.io |
A similar question has already been answeredhereAlso it does look like the eb command does support profileshttp://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-cmd-commands.htmlhttp://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-cmd-commands.html#eb3-cmd-optionsShareFolloweditedMay 23, 2017 at 10:30Community... | I have two aws accounts : production and staging. I'm using aws-cli v3 to deploy via GIT to my production environment usingeb deployI want to be able to deploy to my staging environment regularly from mydevelopbranch and when it comes to deploying a release I want to be able to deploy from my newly createdreleasebranc... | Deploying to separate accounts with aws cli |
According to the Nginxdocumentation, a reverse proxy can be used to provide load balancing, provide web acceleration through caching or compressing inbound and outbound data, and provide an extra layer of security by intercepting requests headed for back-end servers.Gunicorn is designed to be an application server that... | FromGunicorn's documentation:Deploying GunicornWe strongly recommend to use Gunicorn behind a proxy server.Nginx ConfigurationAlthough there are many HTTP proxies available, we strongly advise that
you use Nginx. If you choose another proxy server you need to make sure
that it buffers slow clients when you ... | Why use gunicorn with a reverse-proxy? |
I guess you need to useextra mountswhile creating the kind cluster, it is used to pass through storage on the host to a kind node for persisting data, mounting through code, etc.kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
# add a mount from /path/to/my/files on the host to /files on ... | I have a pod, which is querying an AWS service using Boto. This pod runs in kubernetes cluster in EKS.When running on a real cluster, we use ServiceAccount/Role/RoleBinding to give the Pod permission to acquire an IAM role.But when I run it locally, usingkind, I want it to use credentials that are in my~/.awsdirectory.... | Unable to mount a volume into a pod in kubernetes |
You forgot to convert the input to an integer number. Your loop multiplies strings. | Traceback (most recent call last):
File "C:\Users\user\Desktop\modular inverse.py", line 12, in <module>
Multiples_of_e.append(e*f)
MemoryErrorThis is the code :Multiples_of_e = []
e=input("Enter the exponent: ")
f=1
for i in range(100000):
Multiples_of_e.append(e*f)
f+=1If I remove these two linese=in... | How do I avoid getting a memory error in python? |
You can use theconnected modeto bind your project in the IDE to a project in SonarQube.SonarLint will use the same code analyzers and rules as the ones in SonarQube.In SonarQube, it's possible to change the quality profile assigned to projects and in this way, toenable or disable rules.More information:https://www.sona... | I am developing a Java application and Using SonarLint to test the code quality.
Sonar shows the error :Take the required action to fix the issue indicated by this comment.For below line of code:// FIXME: temp here until we drop tomee or remove all exceptions from ejb <-> non-ejb path.Is there any way I can suppress th... | How to suppress warnings for FIXME comment in Java |
1
One way would be to restore the backup to a separate database, query the column in question including the record's primary key.
Then transform the result of that's query into an update statement that you can execute on the live database.
I would advise to try this on a ... |
We back up our mysql database every day around 2.00am.
yesterday, we did an accidental update to a column and that's affected the entire database instead of just one record.
Question :
Is it possible to get a column value from backup and use that to update the live database ?
| Mysql retrieve data from back up sql |
I added the following env var:ENV JAVA_OPTIONS=“-Dhttps.protocols=TLSv1.1,TLSv1.2”Dockerfile base image change:fromjava:8-jdk-alpinetoopenjdk:8u272-jdkAnd it worked. | I am trying to integrate my application with the APM Framework. I've already done it for a series of other applications and everything worked accordingly. This specific Java SpringBoot application gives me the following error:I've checked that the TLS certificate is valid in the container that the application is runnin... | ELK APM Framework - APM Server identity could not be verified |
ENTRYPOINT ["java" "-jar", "/home/project/hello.jar"]You forgot a comma before"-jar".ShareFolloweditedApr 18, 2016 at 19:06answeredApr 18, 2016 at 6:22kliewkliew3,13311 gold badge1515 silver badges2525 bronze badges31you got a sharp eye! That fixes it–user1870400Apr 18, 2016 at 8:16Thanks, me to miss comma.–Ritesh Sing... | Here is my docker fileRUN apt-get install -y --no-install-recommends software-properties-common
RUN add-apt-repository -y ppa:openjdk-r/ppa
RUN apt-get update
RUN apt-get install -y openjdk-8-jdk
RUN apt-get install -y openjdk-8-jre
RUN update-alternatives --config java
RUN update-alternatives --config javacwhen I log ... | install java successfully using the dockerfile however its says java command not found |
2
You can use access_log off; to only disable the access log and leave the error log on.
Or if you only don't want to see the logs you can use docker-compose logs -f node to only see the logs of node.
Share
Improve this answer
Follow
... |
How can I silence NGINX in the terminal window while using Docker-Compose? Every single call is being echoed to the console. It is so noisy that I cannot see the other console.log() messages from Node.
Here's my nginx.conf file...
worker_processes 4;
events { worker_connections 4096; }
http {
ssl_session_cache ... | Silence NGINX in Docker Compose |
The issue here is the servicemy-apphasnonein theEndpointssection which should have IPs of the pods.Referring fromdocsyou should check that thespec.selectorfield of your service actually selects formetadata.labelsvalues on your Pods. A common mistake is to have a typo or other error, such as the service selecting fornam... | I have deployed ingress nginx controller using thisIngress-Nginx-Docto Aws EKS ClusterIssue:---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: my-ingress
namespace: mynamespace
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.in... | Ingress-nginx returning 503 to app-root path |
You should use:<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ core/ [L]
# If the request is not for a valid directory
RewriteCond %{REQUEST_FILENAME} !-d
# If the request is not for a valid file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) core/$1 [L]
</IfModule> | I have a small question.
I have build a system and it is using a .htaccess to direct the traffic to the correct locations.Now I have the following .htaccess data<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ core/ [L]
RewriteRule (.*) core/$1 [L]
///### (does not work.. this is a problem) Rewr... | .htaccess rewrite rule exception |
There is no such thing in Ehcache 3 at the moment. JCache does not have that option either.You cannot size a resource to0so that's not an option either.From here, two options:add a layer in your application doing the indirection and add the disabled support to that.Make a feature request on theEhcache users mailing lis... | Anybody knows how to switch off ehcache 3 in an application? (e.g. for testing purposes or fall back scenarios in production)For ehcache 2 this was possible with:net.sf.ehcache.disabled=trueas describedhereHow to disable all caches in ehcache3 (prefered via ehcache.xml)?org.ehcache.core.Ehcachedoes not consist any disa... | Disable / Switch off Ehcache3 |
Gems installed by Bundler through git are not handled the same way as normal gems:Because Rubygems lacks the ability to handle gems from git, any gems installed from a git repository will not show up ingem list. They will, however, be available after runningBundler.setup.In order to use the gem you need to do it throug... | I haven't done this in the past, so may be I am missing something here.I changed the Gem files for 'ruby-git' locally and it worked fine. I forked a gem and made same changes to it, in my Github repo.While building the Sinatra app to push it to Heroku, I changed theGemfileas follows:gem 'git', :git => "git://github.com... | Issue with require gem, when passing git-repo to gem in Gemfile |
You can usephp_sapi_name(). It should return a different value from the command line (including, but not limited to, cron) than from say CGI or mod_php. | This question already has answers here:Closed12 years ago.Possible Duplicate:What is the canonical way to determine commandline vs. http execution of a PHP script?Is there some "conditional" tags in php for cronjob? What i want to make:if(cron_job_executing_this_php_file)
{
do something
}
elseif($_SERVER['REMOTE_ADDR']... | PHP and Cron job [duplicate] |
Well the result is that the best way to do this is to configure your server (NGINX in my case) to point to all your Apps which can live anywhere you like.
Here's how it works:
The folder structure can be as follow:
- Project Root
-- Clients
--- Web
---- Admin
---- User
-- Server
--- Laravel Installation Here
The NGI... |
Let's say I want to build an API with Laravel, (that doesn't serve any HTML content) and it's domain is http://api.whatever.com
on the other side, I want 2 different front-end AngularJS Apps to use that API (one for the normal users and one of the admins)
where the users app is hosted on http://whatever.com and the a... | How to serve multiple front-end (AngularJS) Apps and 1 back-end (Laravel) App on single server? |
To runkubectlcommand, you will need the cluster's apiServer URL and related credentials for authentication. Those data are by convention stored in~/.kube/configfile. You may also view it viakubectl config viewcommand.In order to runkubectlon your CI server, you need to make sure the~/.kube/configfile contains all the i... | I setup my Kubernetes cluster using kops, and I did so from local machine. So my.kubedirectory is stored on my local machine, but I setupkopsfor state storage ins3.I'm in the process of setting up my CI server now, and I want to run mykubectlcommands from that box. How do I go about importing the existing state to tha... | How to import state created on another server? |
I don't think Elastic Beanstalk has the same concept as Heroku's worker dynos and web dynos (Although I don't think these relate to your case where you are trying to run your custom worker process)
As it stands you can run your workers somewhere else. (EC2 instance, your own cloudserver, some very custom made SAS, et... |
By workers I mean a python script that runs some task in an infinite loop. This script should be deployed to a separate EC2 instance and run forever (perhaps using supervisor).
I'm successfully using Elastic Beanstalk to deploy the web app with git aws.push and that works fine. However, the set-up for a worker needs t... | Can I use Elastic Beanstalk to deploy workers? |
At some point, you are swapping the first row of the matrix into another position, so the free(A[0]) in matrixFree() is attempting to free a pointer into the middle of the array, instead of the pointer returned by calloc(). You will need to save that original pointer somewhere so that you can pass it, unmolested, to f... |
I'm getting the double free or corruption error upon executing my code. Essentially, I am just creating a matrix in C (of any RxC dimension, which is why pointers are used), swapping two rows, printing the results, and then attempting to free the memory. When I do not swap the rows, the freeing works perfectly. When I... | double free() error after swapping rows of a matrix |
For each:
new[] - delete[] should be called
new - delete should be called
malloc() - free() should be called
ref new / gcnew - a memory is deallocated automatically
You should avoid taking care of memory management on your own as much as possible by:
following RAII idiom
prefering objects with automatic storage dur... |
I have managed .net C++ dll, a function inside that do the following:
unsigned char* mBytes = new unsigned char[hSize];
How to release this mBytes before return?
| Do I need to explicitly free the memory in managed C++? |
Have another rule forhttp->httpandwwwremoval:AddDefaultCharset UTF-8
RewriteEngine on
RewriteBase /
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://someaddress.org%{REQUEST_URI} [L,NE,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^... | I have application based on PHP and Apache. If requested link is not directory or file, all requests go to index.php file. I wanna redirect all requests from http to https and without www.Valid link for me:https://someaddress.orgStarted from following links invalid for me(sorry my reputation is very small and i cant po... | Redirect from http to https without www using .htaccess |
If your colleague hasn't yet pushedfeature/23456to GitHub, he should pull updateddevelopand rebase feature branch on top of it:check outfeature/23456performgit rebase developThat's it, now his feature branch looks like it was always growing from the top of thedevelop.If rebasing isn't an option, most probably, git will... | I have a unique scenario where I'm working with one other person on a project (that comprises a single GitHub repo) and I'm responsible for the design, some development & doing the code reviews + PR merges. I want to try and stick with GitFlow as much as possible here, and I only want to be the one who can merge PRs fr... | Will GitHub allow a merge or rebase of a "branch of another branch"? |
Is raising the memory available to the VM (with -Xms and -Xmx) not an option?
|
I am using JXL to write an excel file of 50000 rows and 30 columns.
My code looks like this:
for (int j = 0; j < countOfRows; j++) {
myWritableSheet.addCell(new Label(0, j, myResultSet.getString(1), myWritableCellFormat));
myWritableSheet.addCell(new Label(1, j, myResultSet.getString(2), myWritableCellFormat));
....... | JAVA - Out Of Memory Error while writing Excel Cells in jxl |
RedHat has a tutorial on how to do this on OpenShift:https://developers.redhat.com/blog/2017/11/22/dynamically-creating-java-keystores-openshift/It uses OpenShifts built in CA to actually generate and supply the certificate, so if using vanilla k8s you'll need to do that yourself, but once you have the certificate in a... | Guess you have deployed a service which's using certificates in order to create tls/https communications.So, I need to deploy java client containers which have to trust with these certificates.Nevertheless, java looks up in truststores in order to check whether the certificate is valid.As you can see, I'm not able to c... | Kubernetes: Populate certificates into keystores |
this is unhappily not possible. | We would like to get statistics like number of non commenting statements, number of classes, number of methods. JavaNCSS doesn't work with generics in many situations. I'm wondering if i can just use Sonar Squid specifically the CheckstyleSquidBridge class and plugin that in as a module to Checkstyle 5.1. And this w... | Is there a way to use the Sonar Squid check with Checkstyle independently? |
I can suggest you to useGlidelibrary from Github.This library works in background threads. Anyway you can perform your rotation on Background like this:runOnUiThread(new Runnable(final Matrix matrix = new Matrix();
matrix.postRotate(currentRotate);
myBitmap = Bitmap.createBitmap(myBitmap, 0, 0, directionBitmap.getWidth... | I am currently working on a project in which one I would like to rotate a bitmap.The first time, I create my bitmap with the following code :myBitmap = BitmapFactory.decodeResource(getResources(), drawableResource);Then I rotate the bitmap using the following code :final Matrix matrix = new Matrix();
matrix.postRotate(... | Android out of memory error while rotate a bitmap |
You may run into this on Windows after you change your Windows account password.
Open Docker for Windows Settings.
On Shared Drives tab click Reset credentials...
Share your drive once again.
|
I'm trying to run the Prometheus sample at https://docs.docker.com/engine/admin/prometheus/#use-prometheus using Docker on Windows. I'm executing the following command:
docker service create --replicas 1 --name my-prometheus `
--mount type=bind,source="C:/temp/prometheus.yml",destination=/etc/prometheus/prometheus.... | Invalid mount config for type "bind": bind source path does not exist when trying to run container on Docker for Windows |
You have to configure TCP port for incoming agents to 50000 on master Jenkins configure section.1. Go to Configure Global Security
2. Under Agents section, select Fixed option and keep 50000 value.ShareFollowansweredJan 27, 2020 at 12:32Subramanian ManickamSubramanian Manickam1,26788 silver badges1010 bronze badges4hmm... | I'm deploying Jenkins with helm charts to GKE and having issue with jobs, mainly the slave doesn't seetcpSlaveAgentListener- it happens whenever i start any job - the master triggers scale of new jenkins-agent but it terminates with error like theseSEVERE: Failed to connect to http://jenkins.jenkins.svc.my_website:8080... | kubernetes jenkins slave doesnt see master |
The dependencies haven’t been installed yet. Runnpm installto install the dependencies, then you can runnpm start. | Hi I just cloned my project from my GitHub user and nownpm startwon't start the dev server...
it sends this error:npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR![email protected]start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the[email protected]start script.
npm ERR! This is probably... | Npm dev server won't start after pulling from github |
If it works for web browsers, it ought to work just as well for anything else. The certificate trust chain is part of the Public Key Infrastructure, which is typically implemented as part of the OS, not the browser. The trusted root certificates are embedded as part of the OS distribution and are used by all programs w... | I would like to make secure calls from Android and iOS mobile apps to my backend servers. The backend servers havewildcard certificate that work well for web browsers, both desktop and mobile.Can I use the same certificate I use to secure web browsing for HTTPS calls from a mobile app? Is there a list of trusted certif... | Which SSL certification is required for HTTPS calls from mobile apps? |
0
+50
This will depend on the specific registry implementation. However, all of the implementations I've seen have a blob store that is separate from the repositories. When the repository is deleted, that reference to the blob is deleted, b... |
When the Cross Repository Blob Mount feature is in use and the second registry mounts a lot of layers. What happens when the first registry gets deleted?
Logically, if it's just a mount and not a copy the layers are gone.
The weird thing here is both registries have different volumes. One of them is a volume mount whi... | Docker Registry Cross Repository Blob Mount feature. What happens when one of the registries are deleted? |
First you should profile with Instruments to see if a considerable amount of time is spent in these calls. If this is the case, then make them static variables and initialize them on first use:-(void)drawRect:(CGRect)rect
{
static UIColor *bgColor;
static UIColor *textColor;
static UIColor *strokeColor;
... | I have a table view with hundreds of custom drawn UITableViewCells which are drawn using thedrawRect:method. These cells all share the same color styles. So, in eachdrawRect:, I do something like this:-(void)drawRect:(CGRect)rect
{
UIColor *bgColor = [UIColor colorWithWhite:0.9 alpha:1.0];
UIColor *textColor = ... | Best practice for creating many UIColors? |
13
I don't think there are any Django DynamoDB projects out there that allow you to use the Django ORM while using DynamoDB underneath.
But depending on your case, you may still be able to simply ignore the ORM portion of Django and use DynamoDB directly (via boto or Pyna... |
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions see... | Is there a good database backend in Django for Amazon DynamoDB? [closed] |
Okay the whole problem was from the wildcard directory being beneath another directory that is already bound. After I made a directory elsewhere it started working like expected, go figure...Hope this helps anyone else who happens to run into this odd bug... ^_^ | My goal is to have the following occur, when the user visits the sites below to the left it takes them to the directories on the right:www.example.com or example.com => /var/www/example/public_html/
*.example.com => /var/www/example/public_html/sites/%1/public_html/I have tried the following:NameVi... | Apache 2.4 Wildcard Subdomain Virtual Host |
The default settings of a repo and a team will make you watch the repo or team when you're added:By unwatching the repo and the team, the banner should go away. You can findall watched repos on the Manage Notifications page.You can also change the subscriptions inyour profile's notification settings:Indeed explicitly b... | I was recently granted access to another organisation's Private repository & Secret team on GitHub.Now, the below annoying banner appears on the top of most GitHub pages. I can't figure out how to silence it.I do not have an email address from the approved domains, and I'm quite sure they won't give me one (I don't wor... | How to turn off the GitHub "eligible domain" email warning banner? |
Make a PHP script called cron.php (outside of your web root if possible).Set this to run regularly under "Schedule Jobs"Every time cron.php runs, it checks a database of jobs to see if any are due yet.If any are due, they are run.Once run, they are marked as such.To add new jobs to the list, just add a new row to the d... | I use a web-hosting startlogic.com. I asked an employee about cron. They told me that they only have a feature in the control panel called "Schedule jobs" where I can manually put the job.
But I need to do this from my web application. For example, when I push a button, I will receive an email notification after 1 mont... | How to implement cron in PHP? |
I'd suggest to contact npm support for this. AFAIK there is no publicly available, official way to change your registered user name.
From my experience, they are very helpful and nice :-)
|
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
... | Is it possible to change npm user? [closed] |
You can put all your node pool to 0 VM but be careful to data lost (according to your node pool configuration, if you delete all the VM you can loose data). However, you will continue to pay for the control plane.Another approach is to backup your data and to use IaC (Infra as code, such as terraform) to detroy and reb... | I have created A GKE cluster for a POC, later on, I want to stop/hibernate the cluster to save cost, any best approach/practice for it? | I want to stop/hibernate the cluster to save cost, any best approach/practice for it? |
With the help of @abhi.gupta200297, we were able to resolve it.
The issue was the error in /etc/fstab, and sshd was supposed to be started after fstab is successful. But it wasn't, hence, the sshd wouldn't start and that's why it was refusing the connection. Solution was to create a temporary instance, mount the root ... |
I've set up the EC2 instance couple days ago and even last night I was able to SSH to it with no problems. Today morning, I can't ssh to it. Port 22 is already open in the security group and I haven't changed anything since last night.
Error:
ssh: connect to host [ip address] port 22: Connection refused
I had similar... | Running EC2 instance suddenly refuses SSH connection |
4
This was because of my "/api" prefix in the nginx config. The request got sent to Servant as "/api/registrations" but should have been "/registrations". Misconfiguration in nginx, nothing to do with Servant and https.
Share
Improve this answer
... |
I'm trying to figure how I can properly run Servant API endpoint over https with nginx.
So to go through what I've done. So I thought I would probably need to setup Servant so it would communicate over https. So I added this to my code
Development -> run port $ logStdoutDev $ corsWithContentType $ app cfg
Product... | Running Haskell servant over https with nginx |
Post is a bit old so maybe things have changed since the original question. I’ll attempt to close the loop though with the features available today.My understanding is that a binding component, by default, is only scoped to the namespace. Therefore, only apps running within that namespace will be triggered by the input... | After reading into the Dapr docs, I'm left with a few questions regarding the behavior of input bindings. From what I understand, it's not possible to tell Dapr that a specific input binding should only trigger a specific endpoint of one particular app in a declarative sense. Rather, you create an input binding and def... | DAPR input bindings with multiple apps |
1
Try rewrite in nginx:
location ~* ^/exapi {
rewrite ^/exapi/(.*) /$1 break;
subfilter /exapi /;
proxy_set_header Host $host;
proxy_redirect off;
proxy_pass http://localhost:8010;
}
Share
Follow
... |
I am new to express and nginx.
I have made a simple express app and configure nginx:
location /exapi {
proxy_pass http://localhost:8010;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_u... | Unable to serve expressjs app from subfolder |
If you need the uptime of the node (that is what theAgefor the K8s resources generally denotes IIUC), you can use thenode_boot_time_secondsmetric that comes after installing theNode Exporterwith Prometheus.You can follow this guide to install Node Exporter for your cluster:https://prometheus.io/docs/guides/node-exporte... | I would like to get the age of a node in my kubernetes cluster via a query to prometheus in K8s like in thekubectl get nodeswe got an age info.How to access this info?Thanks in advance. | How to get the age of a nodes in kubernetes via prometheus |
To make it work you need:Sonarqube, use a recent version, LTS 6.7.x or 7.6the Sonarqube Jenkins plugin in version >= 2.6.1the Sonarqube scanner configured in Jenkinsthe Sonarqube host configured in Jenkins
to makewithSonarQubeEnv(nameofyourconfiguredSonarHost)workconfigure a webhook in Sonarqube server:gotohttps://your... | For the below pipeline script:stage('stage1'){
withSonarQubeEnv(server){
sh "${scannerHome}/bin/sonar-scanner"
}
}stage1launches Sonar scan and exit with success state.stage2waits for 30 minutes until sonar scan completes, jenkins is suppose to receive QualityGate status, as per below code.s... | How to receive quality gate status from SonarQube in Jenkins pipeline? |
Guided by Nathan comment & credit for solving this goes to him:
The cause of the issue is:
In the staging.rb, I had this config for the logs
& the env variable was defined as export RAILS_LOG_TO_STDOUT='enabled'
# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::... |
We have a Rails 6 app, which is being deployed to an Ubuntu server with the following setup:
Nginx 1.17 & passenger 6, releases are deployed using capistrano v3
I could find the following log files:
Nginx (access & error logs):
/var/log/nginx/access.log & /var/log/nginx/error.log
Passenger logs: (on staging env)
... | Where is the Rails app log on ubuntu server (nginx+passenger+capistrano)? |
Problem was not with FLux query but how Grafana displays the table, using some transforms within Grafana I was able to display the same table as the QL query | I currently have the following in ql in grafana :SELECT Last("Capacity") AS "Capacity","Freespace",("Freespace"/"Capacity") *100 AS "PercentFree"
FROM "ExtensionData.Guest.Disk" WHERE ("VM" =~ /^$VM$/) AND $timeFilter GROUP BY "VM","Path","Ownership","Exemption"which produces a table of the LAST value for each path on... | QL table to FLUX table conversion |
If you are a GitHub organizations user, you can have all the issues and pull request and the projects for organizations tab. See the link:https://github.com/blog/2272-introducing-projects-for-organizationsYou must manually add the issues and PRs to the projects. AFAIK there is no tool to do it right now. You can still ... | I am wondering if anyone builded a tool that can watch things like:github bugs (multiple projects)gerrit reviews (multiple gerrit instances, I already have patches in 3)jira bugs (multiple instances)Clearly such a tool would have to be able to talk with different API for github, gerrit and jira.Few notes:
* Email doesn... | Is there a way watch multiple issues and reviews in a single place? |
It's difficult to tell exactly what you are asking or to give a response that could programatically solve your issue but I do have some general observations.Maybe you could send less records in each request so the request doesn't time out and get cached/retried.You could also make one of the columns in the SQL table a ... | I am sending an HTTP request to a DNS on IIS 6.1, the request should insert 50,000 records in a SQL table, the request timeouts and none of the records are inserted. However, the IIS is retrying the same request from its cache, so every 10 min the same 50,000 records are inserted in the table.Note that the POST request... | IIS cache retries |
Astartevent is emitted bydocker start, which you either run yourself or is run automatically after you dodocker runordocker create. See the diagram below:I found a prototype of that diagramhere. And even though on that page it's written, thatexec_startis one of the events, which is not affected by container state, I wa... | What is the difference between exec_start and start event in docker.
Also can anyone explain the order in which these events are triggered and in detailed manner | What's the difference between exec_start and start event in docker |
Put this in your server directive:location /issue {
rewrite ^/issue(.*) http://$server_name/shop/issues/custom_issue_name$1 permanent;
}Or duplicate it:location /issue1 {
rewrite ^/.* http://$server_name/shop/issues/custom_issue_name1 permanent;
}
location /issue2 {
rewrite ^.* http://$server_name/shop/issues... | I'm in the process of reorganizing URL structure.
I need to setup redirect rules for specific URLs - I'm using Nginx.Basically Something like this:http://example.com/issue1 --> http://example.com/shop/issues/custom_issue_name1
http://example.com/issue2 --> http://example.com/shop/issues/custom_issue_name2
http://exampl... | How to redirect single URL in Nginx? |
By using a JSONPath expression and passing it via the--output=jsonpath=option tokubectlI was able to select only cronjobs which are unsuspended and print their names as follows:kubectl get cronjob --output=jsonpath='{range .items[?(.spec.suspend==false)]}{.metadata.name}{"\n"}{end}'In order yo invert the selection you ... | How to selectSUSPEND=Falsecronjob?--selectorcan't be used assuspendis not added in the labels. | List non-suspended cronjobs using kubectl |
I believe this is what you're looking for, query the user'sMemberOfattribute and for each group, query the group'sInfoandDescriptionattributes (I've also addedNameso you have that reference which I believe is important to have):(Get-ADUser "username" -Properties MemberOf).MemberOf |
Get-ADGroup -Properties Name, Info, ... | I would like to find an AD group user's group's that their in and to find what those different group's notes are.Right now, I'm trying thisGet-ADPrincipalGroupMembership "username" | Get-ADUser -Properties info,descriptionWhich is giving errors. I know there must be an easy way to do this that I'm missing. | Get AD Group Member Groups and Find Those Group Notes in One Query |
The Firefox browser uses its own certificate store, and therefore doesn't trust the IIS Express or Kestrel developer certificates.There are two approaches to trusting the HTTPS certificate with Firefox, create a policy file or configure with the FireFox browser. Configuring with the browser creates the policy file, so ... | I'm using the Self Signed Certificate in ASP.NET Core with is default on as noted inthis articleI have trusted it with the commanddotnet dev-certs https --trustIn Chrome and Edge, my API is showing 'Connection secure' in green when calling it. However, in Mozilla Firefox (Quantum 61.0.1), it is giving 'Connection insec... | ASP.NET Core Self Signed Certificate in Firefox not working |
You need to create Role and Role binding.Create a role:kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: test
name: role-test-account
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]Create a role binding:kind: RoleBinding... | I have a Service Account which I'd like to grant permissions to read/write/update/delete Secrets within a specific namespace. I'm not clear about how exactly Service Accounts, Roles, Bindings, etc. work together to grant the right permissions.Whatkubectlinvocations or YAML do I need to do to grant these permissions to ... | Granting a Kubernetes Service Account permissions for Secrets? |
If you needPKCS12type (language-neutral way to store encrypted private keys and certificates):openssl pkcs12 -export -in ../../archive/myapp.company.coms/fullchain1.pem
-inkey ../../archive/myapp.company.coms/privkey1.pem
-out ../../archive/myapp.company.coms/keystore.p12
-CAfile ../../archive/myapp.company.coms/cer... | I would like to setHTTPSonly for my application. For that, I'm usingLetsEncryptto generate my certificate and to be myCA.LetsEncrypt generated these files for me:root@myapp:/opt/letsencrypt# ll /etc/letsencrypt/live/myapp.company.coms/
total 8
drwxr-xr-x 2 root root 4096 Feb 19 15:46 ./
drwx------ 3 root root 4096 Feb ... | How to generate keystore for Play 2 Framework? |
Don't worry, your commits are still there, the message might be the same but the commits are not the same. So the commits you're seeing right now are a duplicate (different hash) of the ones hidden.
I suggest using git reflog to go over ur old commits one by one like this:
Step 1:
git reflog
you will have a list of co... |
Yesterday, I use git filter-branch in order to change some commits who had wrong emails, following this steps. It worked well, but I forgot to tell the rest of contributors to clone again the repository and all the commits have been duplicated. Now, GitHub history looks like this:
I tried to remove the duplicated co... | Duplicated commits shown in Github but not when doing rebase |
Using the header method, you should be able to put "Authorization: token OAUTH-TOKEN" directly into the key input under the Headers section.
Obviously replace OAUTH-TOKEN with your actual token.
Edit: To illustrate the steps more clearly see the image below (a) in the key field, put in 'Authorization', (b) in the valu... |
I would like to get a list of public gists in Postman.
I can do curl https://api.github.com/gists/public in my command line which works fine.
However I did not manage to find out how to do the same in Postman.
I tried to make a GET request at https://api.github.com/gists/public which returned the following object:
{
... | How to use GitHub API in Postman |
It is because you're using relative paths in your JS, CSS etc. You have 2 options to fix it:Just use absolute path in your css, js, images files rather than a relative one. Which means you have to make sure path of these files start either withhttp://or a slash/.You can try adding this tag in your page's header:<base h... | I am trying to make an .htaccess file, to create SEO url.It seems however that I can't have a slash in the mod rewrite, am I doing this wrong?My code is as follows:RewriteEngine on
RewriteRule ^(.+)/$ /$1 [L,R=301]
RewriteRule ^folder/folder-name index.php?show=folder&folder_id=7The page is loaded correctly, but the st... | Why can't i have slashes in my rewrite rule? |
Yes, you can. According to thedocumentation, there is 3 ways to do this,# with Git repo
docker -H xxx build https://github.com/docker/rootfs.git#container:docker
# Tarball contexts
docker -H xxx build http://server/context.tar.gz
Text files
docker -H xxx build - < DockerfileWhen doing this, you need to make sure that... | Currently I've the following setup:An Hyper-V VM running Windows 10 on which is my dev machine. My CPU doesn't supportnested virtualization.Docker for Windowsis installed on the host machine which runs Windows 10 too.Is it possible to rundocker buildfrom the VM against Docker on the host machine? | Can I build a Docker container from the CLI against a remote daemon? |
This won't work as the (single) service version that will receive the targeted cron requests is not under the cron configuration control. From therow in theCron job definitions(emphasis mine):Thetargetstring is prepended to your app's hostname. It is
usually the name of a service.The cron job will be routed to the
... | I want to have a cron job that calls my endpoint at a certain services and version (App Engine).I have created a cron job with the following config:<?xml version="1.0" encoding="UTF-8"?>
<cronentries>
<cron>
<url>/CleanupRealtimeDatabase</url>
<target>dev-dot-admin</target>
<description>Clea... | How to make a cron job in App Engine that targets a service and a version? |
If you use regional TCP balancer then it is simply impossible to assign certificate to load balancer because it operates on level 4 (TCP) while SSL is at level 7. That's why you don't see an option of assigning certificate.You need to assign SSL certificates on ingress controller level like this:apiVersion: extensions/... | I have a kubernetes service which I put behind a load balancer. The load balancer is on a regional static IP. The reason I can't use a global IP is because when I assign it to my service, it refuses to accept it. Others have faced the sameproblem.I'm trying to assign a SSL certificate to the TCP load balancer(regional ... | How can I assign SSL certificates to a regional ip which is a loadbalancer to a kubernetes service |
So Looking into the moment-timezone package which is a dependency for cron there is a method tz.zone() which returns null if a timezone is invalid or an array if it is valid.var moment = require("moment-timezone");
var x = moment.tz.zone("Europe/Berlin");
if(x === null)
#invalid timezoneShareFollowansweredMar 31, 201... | Im using the npm time module with cron to create events correct to a timezone. The user inputs their timezone and I want to be able to check if the timezone they enter is a valid one before passing it to a cron object.I'm using coffeescript so not exactly sure how to write it in javascript. But I would like something l... | Using npm time package is it possible to test validity of timezone |
Heroku does not require you to push those two files to your repository. You can simply doheroku certs, and it will pick and upload them from yourlocal folder. The repo isn't involved. | I just bought an SSL certificate for my Heroku-deployed app. Followingtheir instructions, I downloaded the certificate and private key, saved them in server.crt and server.key files (with some RapidSSL CA deal thrown in there), and am now planning on pushing and deploying. The worry is, my github repo is public, and I ... | SSL, Github, and Heroku -- is pushing secure? |
So the solution seems to userebaseBefore commiting you can use:git checkout master
git pull
git checkout your-branch
git rebase master
git commit
git push origin your-branchand you can create a pull request later.If you already created a pull request and want your history to be up to date with master:git checkout maste... | My manager wants me to push new changes I made so that he can review from a pull request and can merge into master. However, while I code there are some other tech guys committing to master. Manager told me that there must be only 1 commit so that in push history he doesn't see something like "Merge master into branch"... | How to combine latest commits with my uncommitted files |
If your type is a struct, ref is roughly equivalent to a pointer to that struct. No new instances are created here. The difference (from passing it without ref) is that you can now mutate the original struct instance contained in that variable.
If your type is a class, ref simply adds one more level of indirection. ... |
I am new to C# and I have been messing around with 'ref', 'out' and pointers, and I have a general question about how 'ref' works, especially when using objects and not primitive types. Say this is my method:
public void foo(ref Point p) {
p.set(1,1); // the x/y values are updated without constructing a new Poi... | How does the keyword `ref` affect memory management and garbage collection? |
0
That might be a bug of the 1.14.0 release if the git-client-plugin, since gitclient/CliGitAPIImpl.java is no longer supposed to call checkCredentials.
See commit 097e68b by Ivo Bellin Salarin (nilleb):
Do not interactively ask for a password
Replace the checkCredential... |
We were building a Maven project using Broadleaf Demosite Github repository,
it was building fine and we were facing issues only on deploying it on a slave until 30th Dec 2014.
After that we started receiving the below error:
Caused by: hudson.plugins.git.GitException: Unrecognized SSL message, plaintext connection?
... | Unrecognized SSL message, plaintext connection? on Jenkins |
Quartz Scheduleris easy to use and will enable you to achieve this from within your application. | This question already has an answer here:Background timer task in JSP/Servlet web application [duplicate](1 answer)Closed11 years ago.I have a Tomcat application that needs to do various background housekeeping tasks.e.g. User updates something and it make an entry in an event queue table. Then the background task read... | Tomcat java application background processing [duplicate] |
You will need to make one AWS.S3.listObjects() to list your objects with a specific prefix. But you are correct in that you will need to make one call for every object that you want to copy from one bucket/prefix to the same or another bucket/prefix.
You can also use a utility library like async to manage your request... |
How do I copy all objects from one prefix to other? I have tried all possible ways to copy all objects in one shot from one prefix to other, but the only way that seems to work is by looping over a list of objects and copying them one by one. This is really inefficient. If I have hundreds of files in a folder, will I ... | How to copy/move all objects in Amazon S3 from one prefix to other using the AWS SDK for Node.js |
It can be set from the Edit Deployment Group page. | Does anyone know if there is a way to disable the BlockTraffic and AllowTraffic steps in AWS CodeDeploy? These steps are not in my appspec but they run anyway and take a very long time. | AWS Code Deploy disable block traffic and allow traffic |
You can see in your screen shot that you are showing the debug console which typically shows headers etc.... You need to expand the actual browser window to see the response content. | When requesting a public asset in Play Framework 2.1, I get HTTP Headers instead of JavScript/asset source.I have this problem in Safari on iPad, it happens often and on random JavaScript files.In my index.html I request some js files:<script src='@routes.Assets.at("javascripts/libs/moment.js")'></script>
<script src='... | Play Framework 2.1 is returning HTTP Headers instead of JavaScript |
If you add some initialization code to the top of your NodeJS script, you will be able to tell in the code that it is a cold start, and you will then be able to log that if you want to see it in the logs. For example:
var coldStart = true;
console.log("This line of code exists outside the handler, and only executes on... |
Is there a clear way to identify "cold starts", either in runtime in the Lambda itself, or via the logs? I know that cold starts are characterized by longer runtimes, which I can actually see, but I'm looking for a clear cut way.
I'm using Node.js if that matters.
Update: There are two good answers below, for two use ... | How can I detect cold starts in AWS Lambda? |
Consideringthe lines:$file[$fileIndex]['tmp_name']
$file[$fileIndex]['error']
$file[$fileIndex]['name']
$file[$fileIndex]['type']
$file[$fileIndex]['size']$fileisa three-dimensional array, composed of arrays ofname,tmp_name,type,size,error.It is the kind of array you see whenuploading files in PHP.It callsmove-uploaded... | I found a good function on github for uploading images using php, but I do not know one of its arguments.upload_image($_FILES,'file',250,'city',500,'../../uploaded/',1048576);Function on GithubWhat is 'file' in this function?Is this a trusted function to use in my website? | Unknown argument on a function on github |
Are you disposing the MemoryStream at some point? This is the only leak I could find.
Also, Stream has a CopyTo() method. Your code could be rewritten like:
using (IsolatedStorageFile currentIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication())
{
using (var img = currentIsolatedStorage.OpenFile(fileN... |
hey.
I'm reading an image from Isolated Storage when the user clicks on an item like this:
using (IsolatedStorageFile currentIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication())
{
using (var img = currentIsolatedStorage.OpenFile(fileName, FileMode.Open))
{
byte[] buffer = new byte[img... | IsolatedStorage causes Memory to run out |
1
have separate repositories for each of the projects, which allows them to have a clean readme.txt.
You can have a clean readme.txt/readme.md with one repo, which would:
explain what the subfolder represents
list your subfolders
link to sub-readme.md (one readme.md per ... |
I tried a few searches related to this questions on here and didn't see something similar.
As part of a bootcamp I am working on, I have a few mini-projects I have to submit. These projects take between 2-10 hours to complete and typically only contain 1-5 files each. I've seen other students have separate repositorie... | Should mini projects have their own repositories on GitHub? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.