Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
You can actually use Asp.NET Core in Lambdas and this makes for easier web development of course.
If you download the dotnet project templates, you can create a project from a template that already has a serverless template as well as the lambda entrypoint, all configured for lambda!Using this will provide you with the... | I have a Lambda project in .net core and would like to enable Dependency Injection. I have created a Startup class in which I added ConfigureService and ConfigureContainerpublic class Startup
{
public void ConfigureServices(IServiceCollection services)
{
void ConfigureContainer()
... | .Net Core - AWS Lambda Project enabling DI |
std::raw_storage_iterator and maybe also std::get_temporary_buffer may help. They are lower level than std::vector though. See cpp reference for example.
|
I am writing an event bus and I need to have an std::vector of dynamic containers. The containers themselves are not type-aware but the storage and retrieval of objects from them is type-aware and so each container is guaranteed to have objects of the same type. (There is a mapping of types to indices).
I was wonderin... | Untyped contiguous memory container |
ssl.conf on CentOS is usually located /etc/httpd/conf.d/ssl.confIf this file is not present, then you probably did not install Apache mod_ssl.To install mod_ssl:sudo yum install mod_ssl | My/etc/apache2/conf/httpd.confcontains this line:SSLProtocol TLSv1.2Nonetheless, I was told that I needed to identify what is defined for SSLProtocol inssl.conf. Where can I find this file? I have a CentOS server.UPDATE 1: Nevermind, I do not require an answer anymore, it was all a confusion with the scan report referr... | Where could I find the ssl.conf file in a CentOS server? |
Yesthe limit applies in case of file-based cache too. Andyesa value for:expires_inwill do the job.When this limit is reached, no further stuff will be cached. No exception is thrown.ShareFollowansweredMar 11, 2014 at 19:08AgisAgis33.1k44 gold badges7474 silver badges8181 bronze badgesAdd a comment| | The documentation for the file-based cache in rails says:Note that the cache will grow until the disk is full unless you
periodically clear out old entries.Unfortunately it doesnt give any information about how to clear old entries periodically. Does setting an appropriate value for:expires_indo the job or is there s... | Rails: control file store cache size |
Write a shell script and run it as container CMD or entrypoint. include the logic in the shell script. | We have a set of spring boot applications deployed in the Kubernetes cluster. For a few of them, we have designed the corn jobs which get triggered at the required frequency which is working fine in which we do hit our specific internal API that has been developed. The requirement is to generate a token using the API a... | How to use CURL response in Kubernates CRON Jobs |
You have to add a MIME type to .manifest:
.manifest using text/cache-manifest
In .htaccess:
AddType text/cache-manifest .manifest
|
I've been writing a simple text-editor in HTML5 that is supposed to work offline. I can't, however, get the offline application cache to work, and I can't work out why not.
My manifest file is like this:
CACHE MANIFEST
application.html
options.html
...
And it is being invoked as follows:
<!DOCTYPE html>
<html manife... | HTML5 Application Cache Not Working |
PermGen is a part of memory to store the static components of your app, mostly classes. Literally it will not be affected by either the amount of users or logs associated with user activities, which consumes heap space instead.To reduce PermGen storage, you have to check your code, redesign those algorithms which conta... | in my Grails application using the Spring Security Core plugin for authentication. I am facing a serious problem with that because my application took 21 seconds to lift the Tomcat was carrying 43/2 after installation.So far so good, but began to occur error 'PermGen Error' memory error Tomcat server. Before it was 64 ... | How to reduce the use of PermGen space in Grails |
I'm betting your xampp install is not very old and you're probably using a recent version of Apache. So you should usemod_deflate.mod_gzipis forApache 1.xandmod_deflateisApache 2.xYou can try this and customize as needed.<IfModule mod_deflate.c>
<FilesMatch "\.(html|txt|css|js|php|pl)$">
SetOutputFilter DEFLATE
</Files... | for some reason the gzip is not workingmy gzip compression script<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzi... | gzip compression not working on xampp |
If you access the service usinghttp://localhost:8081/nexus, it works.Your current configuration is usingproxy_passto change the URI/nexusto/nexus/. Generally, it is advisable to have a trailing/on both thelocationandproxy_passURIs or on neither of them.For example:location /nexus {
proxy_pass http://localhost:8081/... | I am trying to get Nexus3 to run behind Nginx.Nginx is used as a reverse proxy and for SSL termination. When accessing the /nexus path through Nginx, I get multiple errors such as "Operation failed as server could not be reached" and "unable to detect which node you are connected to". Accessing the Nexus UI without g... | Nexus3 + Nginx Reverse proxy |
Just do:
unsigned int configLabelLength; // 4 bytes*
fread((char *) &configLabelLength, 1, sizeof configLabelLength, baseFile_);
std::vector<char> configLabel(configLabelLength);
fread(&configLabel[0], 1, configLabel.size(), baseFile_);
The elements in a vector are contiguous.
* I assume you know that unsigned int ... |
I am using the cstdio (stdio.h) to read and write data from binary files. I have to use this library due to legacy code and it must be cross-platform compatible with Windows and Linux. I have a FILE* basefile_ which I use to read in the variables configLabelLength and configLabel, where configLabelLength tells me how ... | Can I read a dynamical length variable using fread without pointers? |
Can i use CUDA for java programming?Yes you can use your GPU, not to run your whole Java program but you can speed up your graphics. I suggest trying OpenCL or OpenCV, but the easiest to use might be lwjgl which is what Minecraft uses. To get started I suggest looking at jMonkeyEngine which is easier to start with.i ... | This question already has answers here:Best approach for GPGPU/CUDA/OpenCL in Java?(8 answers)Closed7 years ago.Is there any way to run Eclipse through my GPU for faster results because my processor is too slow | Use eclipse IDE for Java On Graphic card [duplicate] |
Your configuration looks perfectly fine. You should just change LogLevel from debug to warn (or whatever your favorite level is). | Receiving error: [debug] mod_headers.c(663): headers: ap_headers_output_filter()after I included this within the htaccess file:# 6 DAYS
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=518400, public"
</FilesMatch>
# 2 DAYS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Contr... | Error headers: ap_headers_output_filter() after putting cache header in htaccess file |
I have created a sample from the link you have given.
Step 1: Download the code into your local box.
Step 2: Update the connection string inside appsettings.json
Step 3: Please create 3 tables inside your database. Please refer to the "Scripts" folder.
Step 4: Execute the console application and see the data getting po... | I am trying to use EF plus audit features in ASP .NET project. Is there any working example in github which i can download & run in VisualStudio ( after doing necessary changes related to DB) ?
All the examples I see is with FiddleHelper which does not have the complete code and hence does not run in VS. Please share ... | Working example of EF plus audit features in github |
3
If borrow is set to true garbage collection is on (default true: config.allow_gc=True) and the video card is not currently being used as a display device (doubtful, since you're using a mobile gpu), the only other options are to reduce the parameters of the network or pos... |
When running theano, I get an error: not enough memory. See below.
What are some possible actions that can be taken to free up memory?
I know I can close applications etc, but I just want see if anyone has other ideas. For example, is it possible to reserve memory?
THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32... | How do you free up gpu memory? |
TL;DRnginx:fastcgi_param HTTP_MERGED_X_FORWARDED_FOR $http_x_forwarded_forphp:$_SERVER['HTTP_MERGED_X_FORWARDED_FOR']ExplanationYou can access all http headers withthe$http_variable. When using this variable, nginx will even do header merging for you soCustomHeader: foo
CustomHeader: barGets translated to the value:foo... | When user using proxy (Google data saver etc), the browser adds X-Forwarded-For for clients' real ip address to server. Our load balancer passes all headers + the clients' ip address as X-Forwarded-For header to nginx server. The example request headers:X-Forwarded-For: 1.2.3.4
X-Forwarded-Port: 80
X-Forwarded-Proto: h... | Can nginx handle duplicate X-Forwarded-For headers? |
It is possible to host multiple domains on one server. It is calledVirtual Hosting.But you are confusing a few concepts. DNS is for converting names to ip addresses. The DNS system knows nothing about the folder structure. That is the responsibility of the webserver. You will configure Virtual Hosts on the web ser... | can't figure it out if it is possible to set up DNS record to a folder on a server.
Say sub.example.com to point on 1.2.3.4/e2/Is it possible somehow to point domains directly to folders on a server so I can have different domains hosted on one server within different folders? | Dns record pointing to a folder on a server |
Could you try using "stringData" instead of "data". AFAIK this key should be used when you don't provide complete base64 encoded data in Secrets. | I'm trying to store a string array as a secret; I have thissecrets.ymlfile that I'm using in my local environment and works perfectly (values are for explanation purposes only):secrets.ymlpasswordz:
- pass_001
- pass_002
- pass_003The idea is to be able to store multiple passwords, and I want to use them as part ... | Is it possible to create a string array secret in k8s? |
Assuming you have:a ZFS pool (let's call itdata)a ZFS dataset mounted on/var/lib/docker(created with a command along the line of:zfs create -o mountpoint=/var/lib/docker data/docker)Then:Stop your docker daemon (eg.systemctl stop docker.service)Create a file/etc/docker/daemon.jsonor amend it to contain a line with"stor... | I would like to try out ZFS on Ubuntu(16.04) docker container. Followed the followinghttps://docs.docker.com/engine/userguide/storagedriver/zfs-driver/> lsmod | grep zfs
zfs 2813952 5
zunicode 331776 1 zfs
zcommon 57344 1 zfs
znvpair 90112 2 zfs,zcommon
sp... | ZFS storage on Docker |
mysql extensions are deprecated so try this PDO approach:<?php
require [full/script/path/]core.php;
$PDO = new PDO([INSERT CONNECTION STRING]);
$result = $PDO->query("SELECT * FROM users WHERE banned='No'")->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row)
{
if ($row['fuel'] < $row['fuelcapacity']) {
$que... | So basically I have this cronjob script which worked on godaddy php 5.4, but in different host it does not work, tried different php versions too. I have correct path to cron, the host support said I did, even presented me with logs. Maybe there is some problem with this script? It basically adds energy points to user ... | Cron job script not working |
Try running the Maintenance Plan wizard, to set up a nightly backup.
Later, read about backups in Books Online and Paul Randal's blog.
|
I am using SQL Server 2008 Enterprise on Windows Server 2008 x64. I want to run daily job at mid-night every day to make full backup of database. Any reference document to follow for a newbie of this topic?
thanks in advance,
George
| SQL Server backup issue |
Looking at docker's code here and here I'd say that currently only a single target address is supported.
// New creates a gelf logger using the configuration passed in on the
// context. The supported context configuration variable is gelf-address.
func New(info logger.Info) (logger.Logger, error) {
// parse gelf ... |
Currently, I have a docker container sending logs to a Logstash using gelf. Pretty standard configuration set in the docker-compose file used to create the container.
I'm investigating the feasibility of sending the logs of a docker container to more than one instance of ELK. This is not needed for production, but wil... | Is it possible to relay the logs from a docker container to more than one server using gelf? |
From what I can tell, Vim doesn't save any information at all regarding the file's original location.Saving a backup of two same-name files could either overwrite the existing backup or use a different name, depending on what's set in your .vimrc. The option 'backup' will overwrite an existing backup file, but 'writeba... | Vim's file backup system just saved my proverbial @$$ but I have a question.I have vim saving backups to~/.vim/backupsTo restore them I went to the directory and (sorted by date) copied the files I needed back to the necessary directories in my project folder. Easy enough, there were only 5 files. However, I'm surpris... | Restore Vim Backups |
Quoting the CUDA C Programming GuideDynamic global memory allocation and operations are only supported by devices of
compute capability 2.x and higher.For compute capability earlier than2.0, the only possibilities are:UsecudaMallocfrom host side to allocate as much global memory as you need in your__global__function;... | I'm trying to compile my CUDA C code for a GPU withsm_10architecture which does not support invokingmallocfrom__global__functions.I need to keep a tree for which the nodes are created dynamically in the GPU memory. Unfortunately, withoutmallocapparently I can't do that.Is there is a way to copy an entire tree usingcuda... | Alternatives to malloc for dynamic memory allocations in CUDA kernel functions |
3
At the time of response, I was able to consistently get the ELB to return all Response headers I tested - including those with _, however I will attempt to answer the question anyway.
From the documentation:
When you use HTTP (layer 7) for both front-end and back-end c... |
A strange behavior of ELB where custom HTTP headers are being dropped. I am currently using Nginx as the server with the following virtual host configuration:
server {
listen 80;
server_name example.com;
location / {
index index.html index.htm;
add_header Custom Test;
}
}
By direct acc... | AWS ELB Custom Headers Nginx |
1
Indeed the performance gain become less and less significant after 64KB of cache size.
Here is graph from wikipedia showing that regardless of the scheme of set-associativity the miss-rate decrease only slightly as the cache size increases pass 64KB
Share
Impro... |
I knew that cache memory stores the frequently used data to speed up process execution instead fetching them from main memory -which is slower- every time , and it's size always small in comparison with main memory because it's expensive technology and because always the real data are being processed at a time is very... | cache memory size limitations |
This exact situation took me forever to figure out, but OSS is like that I guess. This post is a year old so maybe the original poster figured it out, or gave up?Anyway, the problem for me at least was caused by a few things:IIS expects the realm string to be the same as what it sent to Nginx, but if your Nginx server... | I am trying to setup nginx as a reverse rpoxy server in front off several IIS web servers who are authenticating using Basic authentication.(note - this is not the same asnginx providing the auth using a password file- it should just be marshelling everythnig between the browser/server)Its working kind off - but gettin... | Nginx reverse proxy - passthrough basic authenication |
If I understood your question correctly, you're asking how to modify the copy in bower_components and then commit that back?
You can use bower link for that. First, clone your fork of the library:
git clone https://github.com/eugene/libfoo
Then, tell bower you have a local repository of libfoo:
cd libfoo
bower link
... |
There is a small library that I want to fork and modify and use in my project. (the modification will occur as I develop the project)
Since I use bower to manage javascript libraries, I'd like to use bower for the forked library as well.
If I make a modification to the library, how do I commit the modification to the... | bower-download the github-forked version, how do I commit modification to the forked repo? |
You don't have to use firebase login on the CI system. All you have to do is follow the instructions in the documentation to integrate with any CI system.
Use the CLI with CI systems
The Firebase CLI requires a browser to complete authentication, but
the CLI is fully compatible with CI and other headless environme... |
I am running a nodejs build using Github Workflows and I want to be able to build my project and then immediately deploy it to my firebase project. Using firebase deploy. But if I want to use the firebase-tools I have to login on the build server. But there isn't a way to get authenticated via email and password etc. ... | How can I use 'firebase login:ci' on a build server |
Take a look at the Amazon S3 API documentation to get a feel for what can and can't be done with Amazon S3. Note that there are two APIs, a simpler REST API and a more-involved SOAP API.
You can write your own code to make HTTP requests to interact with the REST API, or use a SOAP library to consume the SOAP API. All... |
I need to upload a bitmap to Amazon S3. I have never used S3, and the docs are proving less than helpful as I can't see anything to cover this specific requirement. Unfortunately I'm struggling to find time on this project to spend a whole day learning how it all hangs together so hoping one of you kind people can giv... | Upload an image from Android to Amazon S3? |
Answer recommended byR LanguageCollectiveUsingreshapefunction:reshape(dat1, idvar = "name", timevar = "numbers", direction = "wide") | I'm having trouble rearranging the following data frame:set.seed(45)
dat1 <- data.frame(
name = rep(c("firstName", "secondName"), each=4),
numbers = rep(1:4, 2),
value = rnorm(8)
)
dat1
name numbers value
1 firstName 1 0.3407997
2 firstName 2 -0.7033403
3 firstName 3 ... | How to create a square matrix given 3 columns i data frame- R [duplicate] |
I have found GS-Collections to be much better suited for memory efficient Maps/Sets. They get around a lot of the overhead of storing map entry objects by using some clever tricks with arrays behind the scenes.
|
I'm looking for a memory-efficient way to store tabular data typically consisting of about 150000 rows x 200 columns.
The cell values are Strings with lengths somewhere in the range of 0-200 characters.
The data rows are initially generated by taking all possible combinations of rows from smaller tables. So while all ... | Memory-efficient way to store large List<Map<String,String>> where many map entries are identical |
The reason you have the same result after you merge temp is because you essentially merge what is in master (which includes the wrong thing) and the one in temp; thus, having both the wrong and correct code.Solution to your initial problem:git checkout master => Goes to master branchgit log -n [some number] => Shows yo... | I use GitHub in my project in Android Studio 3.3.1.I write code in localmasterbranch and push them to remoteorigin/master.The Submit_3 Image is my latest work and submit result snapshot.I find the code after Submit_1 Image snapshot are wrong, so I hope to return Submit_1 and write new code. I hope that I can do the new... | How can I return a point of GitHub and still in master branch in Android Studio? |
I know this is a little bit late however I believe it has to do with the processes = 5 portion. Per the dev at this link Nginx should be setup to do load balancing multiple processes across socket servers. This is more to help anyone else that stumbles across this. Flask-SocketIO imo is incredibly difficult to conf... |
I have a flask app running with Flask-SocketIO on port 5000.
I am using uwsgi to run this app on the production server.
This is my uwsgi .ini file for the app:
[uwsgi]
module = server.webserver:app
callable = app
master = true
processes = 5
http-socket = 0.0.0.0:5000
die-on-term = true
plugin = python35
#chdir =... | getting 400 Bad Request error frequently when trying to use flask-socket with uwsgi and nginx |
I got the answer from the Prometheus GitHub discussion.With http_sd_config you can set scrape interval for each target:[
{
"targets": ["10.0.40.3:9100"],
"labels": {
"__meta_datacenter": "london",
"__scrape_interval__": "1m",
"__scrape_timeout__": "5m"
}
... | I'm using Prometheushttp service discoveryto add targets dynamically, But it looks like I can only add labels and targets URLs<static_config>. I would like to know is there any way to specify scrape_interval for each target?I can do that if I add targets manually to the Prometheus config file as below.global:
scrape_... | Prometheus setting scrape_interval specific to target in http_sd_config |
Your variable is substituted with quoted comma-separated list. As a result MySql interprets it as a list of strings, and returns them as such.Documentationon this matter says:[T]he default for the MySql data source is to join multiple values as comma-separated with quotes: 'server01','server02'. In some cases, you migh... | so i am creating this table, however i am trying to hide / show columns based on a variable (user can select which columns she/he sees).I came with the following code:select
Rank() over (Partition BY score
ORDER BY Speler) ranking,
Speler, $column, Rank as '# pred', Naam as 'Team pred', position as '#', score from fa... | hide or show columns in grafana with a variable |
It has nothing to do with your aurelia application. You are missingEXPOSEstatement (which is mandatory) in yourDockerfile. You can change it like this.FROM nginx:1.15.8-alpine
EXPOSE 80
COPY dist /usr/share/nginx/htmlIf you try to run it withoutEXPOSE, you will get an errorERROR: ValidationError - The Dockerfile must... | I've deployed an Aurelia application to AWS Elastic Beanstalk via AWS ECR and have run into some difficulty. The docker container, when run locally, works perfectly (see below for Dockerfile).FROM nginx:1.15.8-alpine
COPY dist /usr/share/nginx/htmlThe deployment works quite well, however when I navigate to the AWS pro... | Aurelia, Docker, Nginx, AWS Elastic Beanstalk Showing 502 Bad Gateway |
You probably forgot to remove a compression middleware like gzip. | Basically, I'm developing an HTTP endpoint to get the metrics from prometheus package.
Following the instructions in this link [https://stackoverflow.com/a/65609042/17150602] I created a handler to be able to call promhttp.Handler() like so:g.GET("/metrics", prometheusHandler())
func prometheusHandler() gin.HandlerFun... | Prometheus handler strange output using Gin |
This can be caused by both the first (session) or second (e.g. ehcache) caches. To re-read the entity, you'll need to call session.refresh().Fromhibernate docs(at the bottom of the section)It is possible to re-load an object and all its collections at any
time, using the refresh() method. This is useful when database... | I've met a scenario:saveorupdatesome data in a target table by hibernatethere is a trigger on the target table which will be executed beforeinsertorupdateoperations of the target tableselectout this record by hibernateBut I find that the fields which have been modified by the trigger are not really fetched out.
Is this... | Database trigger and Hibernate |
Open your Terminal, access to this folder and write:git init
git add .
git commit -m "my commit"
git remote set-url origin[email protected]:username/repo.git
git push origin master | I'm very new to Git. I've been searching for an answer, but I couldn't find one.In my computer I have a project folder like this:project_a
--some_folder
--another_folder
--.gitAnd I have a repository on GitHub, let’s sayhttps://github.com/company/our_repo.git. Under this repository I have some folders. So my goal is to... | How to add my current project to an already existing GitHub repository |
t5538-push-shallow.shshows that this error message shoould only be seen after agit clone --depth x.Try again the sequence:git clone[email protected]/myuser/myproject.git
cd myproject
// edit a file
git add .
git commit -m "First modif"
git push | This question already has answers here:Pushing to github after a shallow clone(6 answers)Closed9 years ago.I'm new at GitHub and always get an error.. when sending "git push" out of my shell:
The error:
"master -> master (shallow update not allowed)
error: failed to push some refs to[email protected]/myuser/myproject.... | I'm new at GitHub and always get an error [duplicate] |
from __future__ import print_function # Python 2/3 compatibility
import boto3
import json
import decimal
import time
def putdatatokinesis(RecordKinesis):
start = time.clock()
response = client.put_records(Records=RecordKinesis, StreamName='LoadtestKinesis')
print ("Time tak... | from __future__ import print_function # Python 2/3 compatibility
import boto3
import json
import decimal
#kinesis = boto3.resource('kinesis', region_name='eu-west-1')
client = boto3.client('kinesis')
with open("questions.json") as json_file:
questions = json.load(json_file)
Records = []
count = 0
for q... | put_records() only accepts keyword arguments in Kinesis boto3 Python API |
You can try the following:Use duplicity to backup to local filesystem (and implement weekly, incremental backups).Use this clienthttps://github.com/vsespb/mt-aws-glacierfor incremental backups of duplicity output into Amazon Glacier. | Intro:I have VPS (with Debian) and some websites that hosted on it. Sites are not very large (~10-20 GB totally) but I need to make periodic backups of all user data.Problem:I'm looking for simple solutions that allows to backup all this stuff to Amazon Glacier, and meet some conditions:Easy to configure (because I'm ... | Simple tool for backup VPS to Amazon Glacier |
If you are using Gitblit GO, the default config for Gitblit GO will bind to localhost and will be unreachable from another machine. Check outserver.httpBindInterfaceandserver.httpsBindInterface.ShareFollowansweredAug 13, 2013 at 21:25James MogerJames Moger1,7311212 silver badges1212 bronze badgesAdd a comment| | I installed a Jenkins server on port 8080.
Then I installed GitBlit, which usually takes port 8080 too, so that I changed to port 8082.On the machine I can call localhost:8082, but from remote 192.168.178.3:8082 is not available.
Jenkins response works on 192.168.178.3:8080I opened the port on the hardware firewall. St... | Port 8082 not available |
RDS is being stored through EBS according to FAQ:
Amazon RDS uses EBS volumes for database and log storage.
EBS doesn't store empty blocks, according to its pricing page:
Because data is compressed before being saved to Amazon S3, and Amazon EBS does not save empty blocks, it is likely that the snapshot size will b... |
When I launch an Amazon MySQL database instance in RDS, I choose the amount of Allocated Storage for it.
When I create a snapshot (either manually or with the automatic backup), it says under "Storage" the same size as the size allocated for the instance, even though my database did not reach that size.
Since the pric... | How can I tell the raw size of a MySQL DB snapshots in Amazon RDS? |
You maybe could implement a class (call it LargeString), that reuses previously assigned strings and keeps a small collection of them.
Since strings normally are immutable, you'd have to do every change and new assignment by unsafe pointer juggling. After passing a string to the reciever, you'd need to manually mark i... |
I am following up from this question here
The problem I have is that I have some large objects coming from an MSMQ mainly Strings. I have narrowed down my memory problems to these objects being created in the Large Object Heap (LOH) and therefore fragmenting it (confirmed that with some help from the profiler).
In the... | Large String in Large Object Heap causes issues - but in any case it has to end up as a String |
Each blackbox exporter instance has a web UI you can check that will have a history of what URLs it probed and the result.Example using docker to run locally:docker run -p 9115:9115 prom/blackbox-exporterThen I can visitlocalhost:9115to see a simple UI where you can manually scrape targets via query params but also mor... | I'm using someone else's helm release of blackbox exporter that is configured to scrape a bunch of endpoints and it seemed to be doing so correctly. I'm planning to add different endpoints but I've noticed that, out of the templates in my working directory (for configuring the custom endpoints in the helm release),ther... | How to find the targets that a helm-configured prometheus blackbox exporter container is scraping |
3
As long as the host machine as Linux kernel version 3.10 or higher you should have no problems with the container.
You can see this link for more information on why: How is Docker different from a normal virtual machine?
Share
Improve this answer
... |
Are there any compatibility issues or known restrictions running an Alpine-based Docker image on a Ubuntu host?
I understand that Docker provides process-level isolation and that machine resource calls are made through the cgroup interface. But I am wondering (and concerned) if there are specific cases or perhaps eve... | Alpine based Docker images fully compatible on Ubuntu host? |
Some months ago I switched everything over the the free certificates provided by Heroku's ACM and haven't looked back - free, automatic, easy - so unless you have a compelling reason to be using the legacy infrastructure I'd suggest make the switch.As Heroku says (at that link you posted):New Heroku applications should... | updated to Version 70.0.3538.35 (Official Build) beta (64-bit)I changed the dns "A" record per heroku's old instructions so that all requests (http , https ) to my site would reroute in Heroku front=end to my $herokuapp.1234 domain. it just broke.and a site no longer renders without the ssl warnings :In the past , i... | heroku legacy ssl solution broken in chrome 70 |
With kubectl command you can perform thiskubectl logs <pod name> --namespace <namespace> [-c <container name>]The container name is required is you have several container in your podIn the GUI of GCP, you can do a custom filter like thisresource.type="k8s_pod"
resource.labels.location="us-central1-c"
resource.labels.cl... | How to i get logging level of a pod given the pod name and Namespace nameif its not possible to get Logging level then please tell me why | How to get logging level of a pod given pod-name and namespace name in K8s? |
I wrote this file cache function which basically just replaces file_get_contents. You can specify the amount of time the cache should last for in$offsetor completely override the cache with$override. If you don't want to use /tmp/, just change that directory to something you can read/write to.function cache_get_content... | I am using thePHP HTML DOM Parserto pull data from an external website. To reduce load and speed up page rendering time I want to cache data I pull for a certain period. How can I do this? | Caching PHP Simple HTML DOM Parser |
Simply encode it with Base 64 :cat mycert.crt | base64 -w0 | I have created self-signed user certificates for my kubernetes cluster and now want to distribute respective kubeconfig files to the users.How to I transform the .crt and .key files I used for the process to kubeconfig inline format?Here is a redacted sample inline representation of the crt file:LS0tLS1CRUdJTiBDRVJUSUZ... | Transform SSL .crt to kubernetes inline format |
You would need to give it permissions to access the API, that means making a ServiceAccount and some RBAC policy objects (Role, RoleBinding) and then setserviceAccountNamein your pod spec there. | I have one pod that I want to automatically restart once a day. I've looked at the Cronjob documentation and I think I'm close, but I keep getting an Exit Code 1 error. I'm not sure if there's an obvious error in my .yaml. If not, I can post the error log as well. Here's my code:apiVersion: batch/v1beta1
kind: CronJob
... | K8s Cronjob Rolling Restart Every Day |
I think what you want is:clf = make_pipeline(MinMaxScaler(), LogisticRegression())
from sklearn.model_selection import cross_val_predict
from sklearn.metrics import confusion_matrix
y_pred = cross_val_predict(clf, X_train, y_train, cv=3)
conf_mat = confusion_matrix(y, y_pred)From3.1.1.2of scikit-learn's online documen... | I'm running a pipeline with logistic regression through cross validation using scikit-learn. I'm getting the scores from each fold in the code below. How do I get the confusion matrix?clf = make_pipeline(MinMaxScaler(), LogisticRegression())
scores = cross_val_score(clf, X_train, y_train, cv=3) | getting the confusion matrix for each cross validation fold |
I cannot find any report or anything showing me this, which seems unbelievable to meLambda exists to let you write functions without thinking about the infrastructure that it's deployed on. It seems completely reasonable to me that it doesn't give you visibility into its public IP. It may not have one.AWS has the conce... | We're using Lambda to submit API requests to various endpoints. Lately we have been getting 403-Forbidden replies from the API endpoint(s) we're using, but it's only happening randomly.When it pops up it seems to happen for a couple of days and then stops for awhile, but happens again later.In order to troubleshoot th... | How to see which IP address / domain our AWS Lambda requests are being sent from..? |
Adding
| limit 7000
to the end of the query fixed the issue
The max is 10000 according to https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html#API_StartQuery_RequestSyntax, so if my query has more than 10000 records, there seems to be no way to get the complete data.
|
I have a CloudWatch Logs Insights query, which shows "7000 records matched", but when I try Actions -> Download query results (CSV), only 1000 records are exported (same as shown in the console). I cannot find any way to export the "full" query results. Am I missing anything?
| AWS CloudWatch Logs Insights - export full query result? |
Currently Dataproc on GKE cannot run on private-master cluster (including private-master GKE clusters). This is something we plan to support eventually (probably pre-GA), as well as supporting deployments to any Anthos managed Kubernetes cluster.Also note that there are currently no plans to support Dataproc running on... | I would like understand if someone has tried running Dataproc on a private k8s cluster rather than on GKE or if its even possible given the current developments so far? | Can we run Dataproc just on GKE or private on-prem k8s as well? |
If your service depends on (or links to) other services, you can try:docker-compose up --force-recreate --no-deps service-nameThis will only recreate the specified service, linked or depended services will keep untouched. | I have a container in my stack that needs to be recreated each time Idocker-compose up. I candocker-compose up --force-recreatebut this recreatesallmy containers. Is there syntax (maybe for the docker-compose.yml file) for specifying this kind of flag per-service? | Docker-compose --force-recreate specific service |
Solution - The opening didn't matter. It was saving to a different folder on the server. Not sure why it sends there. Maybe that's the way the hosting works. Here's the solution. I'll deploy the full code now.open('full/file/path/test.txt', 'w').close() | Trying to get the server to automatically run a Python script that rewrites some code for a Podcast site I'm developing. Since I'm new to web dev and Python, I wrote some test code that writes a test file.My file is located at:/path/to/script/script.pyand here's my Python codeopen('test.txt', 'w').close()Should my file... | Running a cron job through cPanel to start a Python file |
What you missed is setting the session variable and calling resource on that session instance.import boto3
session = boto3.session.Session(profile_name='Credentials')
s3 = session.resource('s3')
for bucket in s3.buckets.all():
print(bucket.name)Also verify the string 'Credentials' exactly matches the [Credentials] ... | I'm just getting started with boto3 and tried the following code:import boto3
boto3.session.Session(profile_name='Credentials')
s3 = boto3.resource('s3')
for bucket in s3.buckets.all():
print(bucket.name)If I name the section in ~/.aws/credentials [default], it works fine but if I name it something else, like [Cred... | boto3 format and location of credentials file |
Try with this#constant measurement,datatest
#datatype time,long,long,string
time,temp,raw,SN
1539250260,21,409,ABC3
1539250985,27,718,ABC1
1539251114,25,496,ABC2
1539251168,22,751,ABC3
1539251893,29,725,ABC1
1539252019,28,489,ABC2
1539252076,26,753,ABC3
1539252800,29,731,ABC1
1539252930,29,485,ABC2 | Trying to change a csv to an "annotated csv", in order to manually upload a file into the Grafana's influx uploader.Says "
Failed to upload the selected CSV: The CSV could not be parsed. Please make sure that the CSV was in Annotated Format
"manual is here :https://docs.influxdata.com/influxdb/v2.0/write-data/developer... | set annotated csv for grafana's influx uploader |
0
After a spark program completed, It generates temporary directories and it's remain in the temp directory so after runs several spark applications it might be gives out of memory error. There is some clean up options which can solve this issue.
spark.worker.cleanup.enable... |
I ran my spark application successfully twice after spinning up a fresh EMR cluster. After running a different Spark Application several times that DOES have out of memory issues, I ran the first spark application again and got out of memory errors.
I repeated this sequence of events three times and it happens every ... | Why am I getting out of memory errors only after several runs of my Spark Application? |
Had to go search through the stack to re order the importsImport tensorflow the lastShareFollowansweredJun 5, 2018 at 11:54Pavan KPavan K4,30588 gold badges4242 silver badges7676 bronze badgesAdd a comment| | Hello I have unit test that are running fine when I run on console but when packaged with docker fail with the following errorimport nmslib
ImportError: dlopen: cannot load any more object with static TLSI googled for this and they say to get rid of it you have to order your importsI have tried all the possible orders ... | import error when unit testing flask application with nmslib |
First, put the cache on the global level. This will make sure, that the jobs share the same cache.Second, you can usecache:key:filesintroduced with GitLab 12.5 to only recreate the cache when the package.json changes.cache:
key:
files:
- package.json
paths:
- node_modules/
build:
stag... | I am working on the performance tuning for Gitlab pipeline usingcache.This is a nodejs project usingnpmfor the dependency management. I have put thenode_modulesfolder into cache for subsequent stages with following setting:build:
stage: build
only:
- develop
script:
- npm install
cache:
key: $CI_COM... | Gitlab pipeline: How to recache node modules only when dependency changed? |
You will have to change the route anywhere it is referenced.In the future if you think a route might change, you could use named routes and then reference the route name anywhere you need to use it.For example:Route::group(['prefix' => 'videos'], function() {
Route::get('/', [
'uses' => 'VideosController@in... | My laravel application has a model - Video. It is the main model so the route was namedvideos. But after the development I discovered that there is a folder on the production server namedvideosSo now rewriting the url to include index.php in .htaccess does not work.I cannot change the name of videos folder which is alr... | Laravel - Can the route and model have different names |
There isn't a standard way of inserting Firehose stream data into DynamoDB (such as S3 or Redshift). The recommended way is to do a Lambda and insert the records into DynamoDB with that.
Use dynamoDB.batchWriteItem or dynamoDB.putItem, more info in this article or this one.
public String handleRequest(KinesisFirehose... |
A Kinesis Firehose stream receives messages.
There is an option to persist into S3, but my use case is to insert into dynamodb table.
Firehose has an option to enable Lambda function. Shall i write insert logic into dynamodb table using Lambda? Is this the right approach?
If so, then how to insert records into DynamoD... | How to pass Kinesis Firehose data to dynamodb table? |
Try using this code instead :# Force SSL on checkout login account and admin pages
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} checkout|login|my-account|administrator|webshop
RewriteCond %{HTTP_HOST} ^(www\.)?(.*)$ [NC]
RewriteRule ^(.*)$ https://%2/$1 [R=301,L,QSA]
# Remove SSL on other pages
RewriteCond %{HT... | I need to redirect all requests to the site to www and only certain pages to https without www, since for some reason the ssl certificate bought by our customer doesn't cover www.
After looking around I managed to accomplish most of it. But what happens is once we have visited a secure url page, the other pages will st... | htaccess redirect to ssl only for certain pages and www non secure for the other pages |
2
You may be running into config scoping problems, try declaring client_max_body_size 200M; inside the http{} block. You will find it on /etc/nginx/nginx.conf
If that doesn't work, try declaring inside the specific location{} block.
If that doesn't work, maybe there is som... |
I am using nginx as a reverse proxy. The client application uploads several image files in a POST request. The request is usually between 8M and 9M for the larger requests. I have tried multiple options including setting the client_max_body_size. I have increased the value to 300M. I have also tried some other options... | Large file upload to nginx fails |
The token part is an auth token so it will work as long as that set of credentials is valid (until you revoke it). However, you should still manage that token as a secret.
If you plan to share this C# program with others you should not share your token with them, since this will give them access to other parts of your... |
How can I view a raw text file on GitHub?
I created an unlisted REPO and inside the repo is a text file.
When I view it in raw format I get exactly what I want. And if I use C# to Download the text of that page, I get what I want.
My only concern is that the link to the github raw file is
https://raw.githubusercontent... | How can I view a raw text file on GitHub permanently? |
I think below solution should work for you:switch (choice) {
case "IN":
case "WA":
case "MO":
case "NC":
case "NV":
case "OH":
case "TN":
case "TX":
campusLogo = "/Watermark_" + choice + ".png";
break;
default:
campusLogo = "/watermark_main.png";
} | I have sonarQube running but it says that there are duplicates within these lines of code. How do resolve this in a switch statement? I am just learning how unit testing in java works so any help would be great!switch () {
case "M":
campusLogo = "/watermark_main.png";
break;
case "IN":
c... | How to remove duplicate cases in switch in java |
+50To find the open pull requests which depend on a particular branch calledfoo(i.e. pull requests for merging other branches into branchfoo), use the following Filter query in the Pull requests tab:is:pr base:foo is:openThis will identify the Pull Requests preventing the deletion of branchfoo | I recently merged a branch into master and want to delete it now that I'm done with it. But github tells me that I can't delete it because some open pull request depends on it. How do I find out which pull requests depend on this branch? | see what pull requests depend on my branch (github) |
your Dockerfile does not run/serve your application, in order to do that you have to:
install angular/cli
copy the app
run/serve the app
FROM node:10.15.3
RUN npm config set strict-ssl false \
&& npm config set proxy http://proxy.xxxxxx.com:8080
# get the app
WORKDIR /src
COPY . .
# install packages
RUN npm c... |
Trying to build angular application in docker and run as container in my local using Node js.
I have used build image using below Dockerfile, but i am not sure what i am missing while running. Can someone point me out?
Dockerfile:
FROM node:10.15.3
ENV HOME=/home
WORKDIR $HOME
RUN npm config set strict-ssl false \
... | Running Angular app as docker image using Node js |
According to this post, you get the "Does not meet criteria" message when the branch does not have a Jenkinsfile. Does your branch master have a Jenkinsfile?
|
I am getting the following error while cloning the private GitHub repo in Jenkins.
Fetching origin...
Pruning stale remotes...
Getting remote branches...
Checking branch master
Does not meet criteria
Done.
Finished: SUCCESS
I have added SSH key to my repo in GitHub.
What could be the cause of the error?
| Getting Build Failure Error in Jenkins while trying to clone the private repo from GitHub |
Custom metadata values must use the x-amz-meta- prefix, like your examples:
Key: x-amz-meta-user-id Value: 1
Key: x-amz-meta-user-type Value: free
|
I'm uploading photos, via PHP, to an Amazon S3 bucket. Everything is working great so far.
My question is about x-amz-meta. Would I use x-amz-meta key/value pairs to store data like the User ID of the person uploading and their account type (free, premium, etc.)? Or do I store this as regular metadata, not prefixed wi... | Amazon S3 - x-amz-meta |
Fromgithub Webhook API doc:name - string - Required. Use "web" for a webhook or use the name of a valid
service. (See/hooksfor the list of valid service names.)So in your case, just renameWebhooktoweb:const json = {
"name": "web",
"active": true,
"events": [
"issue_comment",
"issues"
]... | I am experimenting with Webhooks in the GitHub api. I got one working by doing it manually as in going into my repository and clicking into the setting and enabling a web hook. But now I want to do this in AJAX and I am getting problems. Anytime I try to send a POST to the web api it fails with a 400 (Bad Request). I a... | How to create a webhook on a repository on the GitHub web api using AJAX? |
If you move your source into a subdirectory (many projects have a directory calledsrcfor this) you shouldn't have any conflicts.Your new repository structure might look something like this:docs/
src/
content_scripts/
images/
libs/
ItemSelector.js
...
index.html (this is the existing file)
..... | I have aGithub projectwhich is used to watch questions on stackoverflow and other stackexchange sites. After watching questions, you can get notifications for new answers/comments on that question.This project already contains anindex.htmlfile. Now, I am trying to create agithub pagefor that project. Since, github page... | Create a github page with index.html already present |
This will work.
Calling methods of a derived object by a base object pointer, is one of polymorphism fundamentals.
However, be sure that the base class destructor is virtual, to properly destruct your object.
|
Will this work, or will there be slicing (i.e. only the memory corresponding to that occupied by a Base object will be freed, rather than for the whole Derived object):
Base* ptr = new Derived;
delete ptr;
If not, will this?
delete static_cast<Derived*>(ptr);
| Deleting a Base pointer that is pointing to a Derived object |
Whenever you try to take a heap dump from visualvm, it first:Triggers a Full Garbage Collection to clear the "dead" objects. Occurrences can be found by searching "Full GC (Heap Dump Initiated GC)" in your garbage collection log.Dump rest of the "live" objects to a file.That is the reason, whenever you took heap dumps,... | I encounter a "strange" behaviour with an Alfresco instance running on Java8.
From time to time, the app uses all the available RAM and lead to OOM exception.
We made a HeapDump to see what's happening and the process of making the dump relases the main part of the used memmory.
Any idea of what's happening there ?Each... | JVM "strange" behaviour |
Probably too late to be really helpful but moving the App Runner to a VPC sends all outgoing traffic to the VPC.
The two options given in the docs areAdding NAT gateways to each VPCSetting up VPC endpointsDocumented within the first bullet point of theConsiderations when selecting a subnetsectionhttps://docs.aws.amazon... | I've set up an AWS App Runner service, which works fine. Currently for networking it's configured as public access, but I'd like to change this to a VPC so that I can connect the service to an RDS instance without having to open the database up to the world.When I change the networking config to use my default security... | AWS App Runner service cannot access Internet when added to a VPC |
sure your internet connection not have problem in speed
so check your firewall not blocked api.github.com url
|
I am working on a local server on my windows os,
I used to be able to create new laravel projects normally, but now I keep getting errors like these:
C:\xampp\htdocs>laravel new blog
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock... | Why I can't create laravel projects anymore? |
When an app / client starts a conversation by contacting the Watson Assistant service, there isno conversation_id transferred as part of the message API call. In the response by Watson Assistant a conversation_id is included in the context object. The client then passes the context object back to Watson Assistant with ... | I have some problem with IBM Watson Assistant. I created 1 node-red container with 2 replicas on Kubernetes (so I have 2 node-red container). Inside a node-red flow I access Watson Assistant.There is a load balancer that handles the load between the two replicas but there is a problem: the conversation_id is different ... | Problem coordinating Node Red replicas on Kubernetes accessing IBM Watson Assistant |
First, you can change thepublication source at anytime. gh-pages does not have to be the one rendering your GitHub site.Second, do agit branch -avvto check if each branch has an associated branch with the same name.I have the impressiongh-pagesis associated withmaste(hence the invalid name, instead ofmaster)I would not... | I'm trying to update thegh-pagesbranch with themasterbranch, but I can't push the code togh-pages.I want to updategh-pagesbranch because that's the one rendering in my GitHub website.I think I mixed up the command. Every time I search for solution I type it.What I need to do to or what command I need to update the gh-p... | Update the gh-pages branch with master branch |
You can use the cache-magic package with a symbolic link to your Drive folder.
Make the following your first cell in Colab and always run it first (replace path/to/my/project/folder with your Drive project folder):
from google.colab import drive
drive.mount('/content/drive')
%cd '/content/drive/My Drive/path/to/my/pro... |
After a period of inactivity, my Google Colab variables are lost and I have to recompute them. I know I can work around it with
from google.colab import drive
drive.mount('/content/drive/')
%cd '/content/drive/My Drive/path/to/my/project/folder'
and then use numpy.save, torch.utils.checkpoint or tf.train.Checkpoint ... | How do I cache Python variables in Google Colab |
You just need thisErrorDocument 404line at top of your .htaccess:ErrorDocument 404 /This will show home page for any request that is not a file or directory and results in a 404. | I've had a real tough time trying to search for the exact htaccess code that will allow me to do the following:Visiting:http://www.domain.com/wildcardShould show:http://www.domain.com/But the URL should still read:http://www.domain.com/wildcardSo basically a transparent redirection... seems fairly straight-forward, but... | Using .htaccess to use subdirectory as a parameter |
Should be possible.From theAPI docs:Org Members list - List all users who are members of an organization. A member is a user that belongs to at least 1 team in the organization. If the authenticated user is also an owner of this organization then both concealed and public members will be returned. If the requester is n... | Is this possible? I tried looking at the organization's member list, but it only is showing public members. I have the user oauth'd with their token and metadata, but their current organizations don't seem to be included. Can I increase the scope to allow this kind of information to pass through?An example using the gi... | Validate that a github user is a member of a private organization |
You'll need to use mod_rewrite to match against the query string. Try something like this in the htaccess file in your document root:RewriteEngine On
RewriteCond %{QUERY_STRING} page=/shop/bcat&c=([0-9]+)
RewriteRule ^/?(index.php)?$ http://website.com/se/category/%1? [L,R=301] | I'm upgrading a site which will use new links. It is possible to figure out the new URL from the old URL so I want to make a few 301 entries in the .htaccess to forward old links.I'm aware that this is possibleRedirect 301 /orginalURL.html http://website.com/newURL.phpHowever I need to use portions of the old url to co... | .htaccess 301 redirect with variables |
Your local (stack) variables are allocated in the same space as stack frames. When the function is called, the stack pointer is changed to "make room" for the stack frame. It's typically done in a single call. If you consume the stack with local variables, you'll encounter a stack overflow.~512 kbytes is really too lar... | I'm debugging a rather weird stack overflow supposedly caused by allocating too large variables on stack and I'd like to clarify the following.Suppose I have the following function:void function()
{
char buffer[1 * 1024];
if( condition ) {
char buffer[1 * 1024];
doSomething( buffer, sizeof( buffer... | At what moment is memory typically allocated for local variables in C++? |
Hash Sets are not needed (nor preferred), if you need thecompleteobject or record at retrieval in most of your scenario's. A Hash Set is like a mini-redis database inside Redis. Each key has overhead, and each member of a Hash Set has overhead.I recommend this approach:Serialize your data asmessagepack.Use a Hash Set, ... | I have a class, which is modeled like this, all member variables are comprising of strings and integers.> class XYZ extends CFormModel
{
//Values required for rendering the Dashboard
public $username;
public $analysis_type;
public $trace_selection;
public $filter_phantoms;
public $trace_oui... | what is most optimal way to store an object in redis? |
You have a memory race in your code. This:sum+= 2.0*3.0;potentially allows multiple threads to simultaneously accumulate to the sum. In your example both threads attempted to load and store at the same address at the same time. This is undefined behaviour in CUDA.The usual way to avoid this problem is algorithm redesig... | I am a CUDA beginner. What I have here is a kernel which is executed by 2 threads. All threads should store their result to a shared variable. After all three finish, the result insumshould be 12 but I get 6!__global__ void kernel (..)
{
int i=blockDim.x*blockIdx.x+threadIdx.x;
__shared__ double sum;
... | CUDA multiple threads writing to a shared variable |
I wouldn't recommend using your home computer as a web server. Here are the steps it takes to get a java web app up and running exposed to the internet.Buy a domain name from a registrarFind a host provider that gives you some sort of linux VM (CentOS, Debian, RHEL, etc). Lowendbox has some cheap ones. AWS is more expe... | I am a newbie to java-webservices and need help to understand about hosting a web service on a web server.I successfully created a webservice and i am pointing to "localhost" in my home network to hit the service to get the response. Now i want to push the service over the internet so that the web service becomes publi... | Hosting java webservice on Live server |
You would setup CloudFront with two origins, S3 and API Gateway, and configure CloudFront to use the API Gateway origin for all requests that start with /v1
|
I want to:
Distribute the static part of the website (html, css, js) on my domain www.example.com.
Put API Gateway services on my domain under a folder, www.example.com/v1.
How do I accomplish this?
In route 53, from what I understand I can only point to one cloudfront distribution, so I am choosing my S3/CloudFront... | CloudFront and API Gateway service on same domain |
I met this problem too, and I've just solved this problem by switching to install a 32-bit Git. As for why 64-bit Git does not work, I don't figure out yet.
By the way, I'm using the latest Git(version 2.6.4) on Windows 10. | Enter gitbash & run then I got:ssh -T[email protected]socket: Socket operation on non-socket
ssh: connect to host github.com port 22: Socket operation on non-socketHow is it?I can't find the troubleshooting in github sites viahttps://help.github.com/categories/ssh/ | Gitbash ssh to[email protected],raised port 22: Socket operation on non-socket |
I don't have.metadatain my Android projects managed with Git and Eclipse. I don't think you need it.As perbin/andgen/files showing up as added/modified in Git... It would seem they were inadvertently added to version control. You can remove them with:git rm --cached bin/ gen/
git commit -m 'cleaning up bin/ and gen/' | I'm working on an Android group project, and have been running into issues with Eclipse's .metadata folder and git.Originally, I didn't include the .metadata folder, which caused one teammate's eclipse workspace to completely break. The projects wouldn't show up in the package explorer, and the SDK couldn't be found. I... | How do I manage an Android/Eclipse/Git project across multiple platforms? |
But this code works correctly in Spring 4.3.20. Is this rule actual
for Spring 4.3.20?Yes. SonarLint is correct. Self-invocation cannot make@Transactionalto take effect. It does not change even in Spring 5. That is how Spring AOP works (refer todocs). Your codes works most probably because you start another transacti... | This question already has answers here:@Transactional method called from another method doesn't obtain a transaction(4 answers)Closed5 years ago.I have the following code:@Service
public class ItemService {
...
public void addItems(@Nonnull DocumentDTO dto) throws Exception {
// some code that takes so... | Calling @Transactional method from non-transactional method in Spring 4.3 [duplicate] |
You are on the right track with draining the node first.The nodes (compute instances) are part of amanaged instance group. If you delete just them with thegcloud compute instances deletecommand the managed instance group will recreate them.To delete one properly use this command (after you have drained it!):gcloud comp... | I'm running a three node cluster on GCE. I want to drain one node and delete the underlying VM.Documentation for kubectldraincommand says:Once it returns (without giving an error), you can power down the node (or equivalently, if on a cloud platform, delete the virtual machine backing the node)I execute the following c... | Can't delete underlying VM for a node in Kubernetes |
I could solve this issue by installing Timestream plugin. | By followingthis documentandtutorial video at that time, when I tried to set AWS Timestream as data source in Grafana, but I could not find it.
I use free account.
Could you tell me what the problem is? | How to select Amazon Timestream in Grafana as data source |
I have faced the same issue.
Solved it by:Configure Prometheus to ignore ssl verification as suggested by @Shmuelglobal:
scrape_interval: 15s
external_labels:
monitor: 'prometheus'
scrape_configs:
- job_name: 'job-name'
static_configs:
- targets:
- host_name_or_ip_address1
- ho... | I was trying to monitor one of our Spring boot application using Prometheus but unfortunately the status of this service is not getting UP in ubuntu server, it’s showing some error like –/prometheus: x509: certificate signed by unknown authority, Where from my local Prometheus this service is UP and also able to monito... | x509: certificate signed by unknown authority for prometheus |
Put the text in a file. Let's say you name the file userAgreement.txt. Make sure the file is part of your target (check the Target Membership section of the File Inspector while you have the file open in the primary editor).
Read the contents of the file at runtime like this:
NSString *path = [[NSBundle mainBundle] ... |
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
... | How should I store a large string, like a user agreement? [closed] |
The Windows equivalent issincedb_path => "NUL"Three letters, upper case. This will prevent the in-memory sincedb being persisted across restarts. An in-memory sincedb isalwaysused. | I am learning ELK. I read tutorialhttps://www.zenitk.com/import-from-csv-to-elasticsearch-with-logstash. The tutorial use Linux OS, while I am using Windows OS.From tutorialinput {
file {
path => "/home/zenitk/hackernews.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
c... | sincedb_path in Windows OS |
It is best in this instance to userelative urlsfor your static files hosted on your own site, so for example change:<link href="andygiovanny.github.io/css/style.css" rel="stylesheet">to simply:<link href="/css/style.css" rel="stylesheet">This way it will load for you in whatever environment you are working in. I use so... | Recently I have been trying to make a website.I make all the content locally and push it to github pages, i already change the path of all the images and CSS and JS to the repository. all the image are working fine but my HTML file wont connect to the CSS and JS files.I did a bit of research and found out that we can u... | Referencing CSS and JS file in Github Pages? |
TheGT610is acc 2.1 GPUwith a singleSM. That SM contains 48 CUDA cores (=shader processors). Each CUDA core is capable of producing one single precision scalar result per clock cycle. Each CUDA core does not have a separate SIMD path to process a SIMD word. It processes one scalar element per clock cycle.It has 48 ... | Im a bit confuzed how many scalar chanels ( i mean "gpu simd width" x "gpu simd cores")
GPU have, for example my own GPU "nvidia geforce gt 610")it has 48 shader processors (i hoppe each od such processor has separate SIMD
as a processing word), some say also that mosc common (?) gpu simd width is 32
floats/ints - so ... | GPU - how many scalar channels |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.