Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
It depends on your usage of autoreleased objects. Every GCD thread has an outermost autorelease pool, but that pool is drained at a time you cannot control directly (currently the drain occurs when the thread becomes idle, just before it parks itself in the kernel awaiting reuse or reaping). If your process keeps GCD ...
For example if you create your own GCD queue: self.renderQueue = dispatch_queue_create("com.test.queue", DISPATCH_QUEUE_SERIAL); Do you have to create an autorelease pool in every block submitted to that queue, using: @autoreleasepool { } ? Or does ARC create it for you? What happens if you don't specify autoreleas...
Does every custom GCD queue need an autorelease pool under ARC?
This ended up being a strange error with the git client, I re-installed and everything worked fine after that.
I'm getting this strange error message when trying to clone or pull from git. The strange thing is that me and a colleague previously had no issues with this. We then got two other team members to clone the repository and now suddenly me and the previous colleague continue to get these errors. The two new guys have...
Issues cloning from Github
When you have maven already up and running, watch it's output. Jacoco prepares an argument line for surefire that contains a pointer to the agent:[INFO] --- jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (pre-unit-test) @ examples --- [INFO] jacoco.surefireArgLine set to -javaagent:E:\\mvnrepository\\org\\jacoco\...
I would like to get code coverage using JaCoCo and display it on Sonarqube after several manual and automated End-to-End tests. Currently, we can also collectJUnittests coverage which is triggered duringmvn testIt looks like I need to instrument the code on JVM usingJacoco Agent. But I need some examples to this. First...
Manuel Tests Code coverage on Sonarqube
setStringmay throw anSQLException. If the statement is successfully prepared and thensetStringthrows an exception, it will do sooutsideof thetryblock and the statement will never be closed. Moving theprepareStatementinto a nestedtryshould be OK, as long as you have theclsoein the rightfinallyblock (and without seeing w...
I'm trying to get an email from a table based on the user's id. However, SonarQube keeps complaining aboutUse try-with-resources or close this "PreparedStatement" in a "finally" clausewhich I already have. I've looked at the answerhereand other places but the solutions don't work for me. Here's the code:public String g...
SonarQube keeps complaining about Use try-with-resources or close this "PreparedStatement" in a "finally" clause
Based on your additional info, it seems that theerror originateshere:VaultServerListenerHTTPS: Type: AWS::ElasticLoadBalancingV2::Listener Properties: Certificates: - CertificateArn: !If [ CreateDns, !GetAtt "ACMCertificate.Outputs.ACMCertificate", !Ref ACMSSLCertificateArn ]Your comments indicate t...
I am attempting to use the CloudFormation template for a new VPC and workload as provided withinhttps://aws-quickstart.s3.amazonaws.com/quickstart-hashicorp-vault/doc/hashicorp-vault-on-the-aws-cloud.pdfto create a vault cluster. However, I am seeing the following:VaultServerListener HTTPS CREATE_FAILED Certificate ARN...
CloudFormation CREATE_FAILED with error "Certificate ARN is not valid"
I prefer to create a shell script and, in that shell script, write my bteq as a heredoc:#!/bin/bash bteqSYSTEM="your teradata domain name or ip" bteqUSER="your teradata username" bteqPWD="your teradata password" bteq <<- BTEQSCRIPT 1> /DATA/home/pverma3/bteq_output.log .LOGON ${bteqSYSTEM}/${bteqUSER},${bteqP...
My work requires me to refresh certain Teradata tables everyday. I came across crontab and been trying to schedule a small Teradata query. Following are the codes:Teradata:DROP TABLE S_BNKFRD.PV_TEMP; CREATE TABLE S_BNKFRD.PV_TEMP AS ( SELECT Current_Time AS Curr_Time )WITH DATA;Crontab:* * * * * cd && . ./.profile;BTE...
How to schedule a Teradata query in crontab?
The list of IP addresses from which Amazon SNS notifications are sourced isprovided in the Amazon SNS forums. We update this post as the IP information changes.Please note that while notifications will usually be sourced from an IP in the same region where your topic was created, this is not guaranteed e.g., a notifica...
I have configured AWS SNS notification to call my HTTP endpoint. I need to open my firewall to allow AWS SNS to call it.However, I cannot find any information about SNS HTTP(s) notification call IPs. I have caught a few IPs(54.240.194.1,54.240.194.65,54.240.194.129 )by it's calls. But I'm not surewhat's the full list o...
What's the source IPs of AWS SNS HTTP/HTTPS notification?
There is not much you can do around plain count queries like that in Postgres, except in 9.6 that implemented parallel sequential scans, which is not available yet in RDS.Event though, there is a some tips that you can findhere. Generally, it's recommended to try to make Postgres to useIndex Only Scan, by creating inde...
I have an RDS PostgreSQL instance that's running simple queries, much slower than I would expect - particularly sequential scans, like copying a table or counting a table.Eg.create table copied_table as (select * from original_table)orselect count(*) from some_tableRunningcount(*)on a 30GB table takes ~15 minutes (wit...
Slow PostgreSQL sequential scans on RDS?
Most of what you need to know about the way you work with submodules issummarize here.Did you add the submodule directly in views? And if yes, what theviews/.gitmodulescontain?When you added it, did you also commit in your main project (just above plugins)?But if views is another clone of your repo, where you expect to...
I am new to git but have spent a good deal of time reading through documentation and gotchas on git submodules before trying them. I am having a problem that I feel -- probably naively -- is a bug in git:I have a project, in that root directory I have a plugins folder, which has a submodule called myplugin. I added i...
git submodule, ignoring the wrong directory
If you look at the raw file onthat URLyou will notice that the deployments and as a result pods are in namespace kongnamespace: kongThe namespaces are used to logically isolate resources within a cluster and you can readmore hereNow for your log command to work, you will have to add a namespace flag like this:kubectl l...
I have setup the Kubernetes cluster in my cloud. When it setup complete I install kong-ingress-controller in my master node. I'm using:kubectl apply -f https://bit.ly/ kong-ingressNow my container status is still init. I want debug init container. So I used:kubectl get pods -o=name --all-namespaces | grep kongResponse:...
Cannot debug pod Kubernetes
I'm assuming you are looking for ways to incorporate your presentations into your blog so people can "page through them". If you want to stick to PowerPoint or display old slides (done in PP), this existing Stack Overflow question might help: Embed a Powerpoint in a Web Page You could, however, also switch to an HTML...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog...
Powerpoint presentations on Github pages [closed]
6 That's strongly platform dependent. And actually, there are two different cases. Case #1. Memory-mapped peripheral. This means that access to some range of physical memory addresses is routed to peripheral device. There is no actual RAM involved. To control caching, x86, ...
I have a question regarding memory mapped io. Suppose, there is a memory mapped IO peripheral whose value is being read by CPU. Once read, the value is stored in cache. But the value in memory has been updated by external IO peripheral. In such cases how will CPU determine cache has been invalidated and what could be ...
Managing cache with memory mapped I/O
The best way to make jobs run one by one is set demands for your agent job to run on a specific self-hosted agent. Just as below, set a user-defined capabilities for the self-hosted agent and then require run on the agent by setting demands in agent job.In this way, agent jobs will only run on this agent. Build will ru...
We're using SonarQube for tests, and there's one token it uses, as long as one pipeline is running, it goes fine, but if I run different pipelines (all of them have E2E tests as final jobs), they all fail, because they keep calling a token that expires as soon as its used by one pipeline (job). Would it be possible to ...
Waiting on job "x" to finish in pipeline "1" before running job "x" in pipeline "2" (Azure DevOps)
It turns out that it was linking to /home/foo/public_html/~foo. So, a circular symlink from /home/foo/public_html/~foo back to /home/foo/public_html works like a charm. Thanks for all your help!
I have an NGINX server with fastcgi/PHP running on it. I need to add userdirs to it, but I can't get PHP to execute the files - it just asks me if I want to download it. It does work without the userdir (e.g. it works on physibots.info/hugs.php, but not physibots.info/~kisses/hugs.php).Config:server { listen 8...
NGINX/PHP downloading instead of executing
26 This GitHub help page deals with this very specific topic and drives one through the steps to correctly configure your Git configuration. Basically, if you're working on Mac/Linux, use $ git config --global core.autocrlf input If you're rather a Windows guy, use $ git c...
I use git to pull my code from a windows machine. When the other developers pull the files from the server on their liunx machine they have the ^M at the end of the first line. How can make git to take care of this for me? I mean, git should change the ending of line (delete control+M or ^M at the end of the first lin...
Should git change the ending of line? (control+M or ^M at the end of the first line)
There is no such quickkubectl createtype command for creatingdaemonsets. But you can do it in some other way.One way to do this is:$ kubectl create deploy nginx --image=nginx --dry-run=client -o yaml | \ sed '/null\|{}\|replicas/d;/status/,$d;s/Deployment/DaemonSet/g' > nginx-ds.yaml $ kubectl apply -f nginx-ds.yam...
I was wondering if there is an easier way to create daemonsets in k8s other than yaml files. For eg, for pods we havekubectl run --generator=run-pod/v1command. I was wondering if there is something similar for DS.Thanks in advance.
Is there an imperative command to create daemonsets in kubernetes?
api/issues/searchshould get you all you need. Check out the documentation embedded in your SonarQube server (linked at the footer).From the use-case you describe, parameterssinceLeakPeriodorcreatedAfter/createdInLastcan help out with date filtering. Not to mention other filters likeresolvedandcomponentKeys. Exchaustive...
This is a screen where we configure our project, SonarQube shows new issues open, confirmed which is highlighted in yellow, I am using the SonarQube API in my application and want to dump the data to my DB. Accordingly I will create the report. But In Sonar Metrics document I do not find how could I get these value usi...
How can I get the open new issues, confirmed new issues, false positive new issues?
Use theindexdirective to namer.jsonas the default filename within that location:location /r/ { index r.json; alias /home/user/media/json/; }
I want Nginx to return r.json file for path example.com/r/ What I tried:location /r/ { alias /home/user/media/json/r.json; }But all that didn't work. I've got 500 with message:/home/user/media/json/r.jsonindex.html is not a directory
Nginx return file for path
I had the same issue where my app was working on localhost and showing that error on cpanel. The solution was to changeSESSION_DOMAINvariable, whose value should be your domain if your app is live.SESSION_DOMAIN=domain.comShareFollowansweredNov 20, 2023 at 13:18EvansEvans4522 silver badges99 bronze badgesAdd a comment|
I've been having an issue with Laravel sessions while logging in.1.Yes, I do have a CSRF token included in my form.2.Yes, the token has not expired.3.Yes, the SESSION_SECURE_COOKIE is set to false.I'm usingredisas mySESSION_DRIVERand theexpiration timeis set to120 minutes.The thing that bothers me the most is that 'som...
Laravel 419 | Session Expired
Try something like this:var enumerator = HttpRuntime.Cache.GetEnumerator(); Dictionary<string, object> cacheItems = new Dictionary<string, object>(); while (enumerator.MoveNext()) cacheItems.Add(enumerator.Key.ToString(), enumerator.Value); foreach (string key in cacheItems.Keys) HttpRuntime.Cache.Remove(key)...
Is there a method or something to force the expiration of all of the entries in the Cache collection of the HttpContext?
Force all ASP.NET cache to expire
Seems like somehing is wrong with your configuration. I might be wrong though. My config looks like this:const s3Client = new S3Client({ region, credentials: { accessKeyId, secretAccessKey } });But I was getting this error when I was applying incorrect command input for theGetObjec...
I'm trying to extract tags of an s3 bucket with the AWS SDK v3 for Nodejs. This is my code, based on the example how to list all buckets:const { S3Client, GetBucketTaggingCommand } = require("@aws-sdk/client-s3"); const { fromIni } = require("@aws-sdk/credential-provider-ini"); const s3 = new S3Client({ credentials:...
AWS SDK v3 for nodejs, how to get tags of an s3 bucket?
Create yourdistbranch, recording the deletion of the files you don't want.git checkout master git checkout -b dist git rm .gitignore git rm README.md git commit -m "Remove non-dist files"Then, each time you want to update yourdistbranch, simplyrebaseit:git checkout dist git rebase masterThat replay yourdistcommit (whic...
I have a repository consisting of four files in the master branch: two project files (PHP files btw) plus aREADME.mdand.gitignore. I would like to create an additional branch, that consists of just the two PHP files at the same commit-level. What's the best practice to keep those two branches in-sync, if possible I wo...
Keep specific files of two Git branches in-sync
,000 records really is not very many records.Before you start taking drastic actions (such as limiting the ability of users to seamlessly see all the data at once), you should consider basics for improving performance:Indexes to improve standard query performance.Partitioning to limit the portions of tables that need t...
I have a single database, most of the tables are connected in some way. It consists of over 500000 records. I need to implement live search, but number of records bothers me.Database will grow and live search in millions of records will sure cause problems. So i need to move old records (let's assume date field is pr...
Separate single database into active and archive
Guava's cache is designed around lock amortization and thecleanUpmethod forces the cache to arrive at a consistent state. TheMap.size()method is an approximation, but may count entries pending removal due to expiration or reference eviction. The visibility of the approximations in Guava's cache are rarely of much inter...
In the Guava Library, I am confused about whyCache.asMap()is not consistent withCache.size(), unlessCache.cleanUp()is called.Cache<Object, Object> cache = CacheBuilder.newBuilder() .expireAfterWrite(1, TimeUnit.SECONDS) .build(); cache.get(...); ... //After some seconds, all entries are expired. /...
Why is Cache.asMap() not consistent with Cache.size()?
This is expected to be supported in 1.3:https://github.com/kubernetes/kubernetes/pull/11980UPDATE:didn't meet the 1.3 deadline so it'll sleep into 1.4https://github.com/kubernetes/kubernetes/issues/2156#issuecomment-223385808UPDATE (thanks @Kevinoid): Looks like it has reached alpha in 1.4 and progress is now being tra...
What is the recommended way to execute a container or pod based on a time-based schedule? For example, a task to run at 2am for 10 minutes every day.On a traditional linux server, crontab would easily work, and that obviously still is possible inside the container. However, since this task only executes for 10 minute...
Time based container scheduling on Kubernetes?
Memory does not serve you right. This is not possible now and would not have been possible in the past. ELBs don't have, and it is not possible to obtain, a certificate like this (including from Amazon Certificate Manager).In fact, 3rd party providers like Let's Encrypt also have protections to prevent you from obtai...
I know that you can add your own certificate to the domain and point that domain to the AWS Elastic Load Balancer. In my case I don't have domain, but would like still use secure HTTPS/SSL connection when talking client <-> backend. Is it possible to enable HTTPS connection directly to ELB, i.e instead of usinghttp://s...
Can I use AWS own ELB certificate for HTTPS/SSL connection?
Thrust uses a heuristic which attempts to maximize the potential occupancy of the CUDA kernels it launches.A standalone version of the heuristic Thrust uses is here:https://github.com/jaredhoberock/cuda_launch_configShareFolloweditedMay 31, 2013 at 18:03answeredMay 25, 2013 at 20:17Jared HoberockJared Hoberock11.2k33 g...
Thrust is able to hide a variety of details from the coder and it is claimed that Thrust sets the parameters to some degree with respect to the system specifications. How does Thrust choose the best parameterization and how does it handle a variety of codes in different machines? What is Thrust's approach to implementi...
How does thrust decide kernel sizes? [duplicate]
GitHub pull requests are for a single branch. They will automatically include all commits push to that branch. You should make a separate branch for each independent change.
I cloned my fork of a public repository and made some changes; and then created a pull request. However, any changes I pushed to my fork after I created that pull request are also being included in the pull request, even though I never requested them to be included? Why is Git showing the changes that I did not crea...
Github Pullrequest shows changes not yet included
Really useful information I got to find the leaks in native code.add native=true in ~/.android/ddms.cfgreplace/system/lib/libc.sowith/system/lib/libc_debug.sorestart the framework, start DDMS, you'll see a tab native-heapIn native-heap, you can see the allocations by native code.For more informationclick here
Just wondering if someone knows how to find out memory leaks in native code from android. Google search gives lot of solution, but none of them is full. Please let me know if anybody knows how to do this.
How to Find memory leaks from native code in android
If the version is tagged in theNuGet GitHub repository.The nearest tag I can see is for1.6.1which looks like it is not exactly the same as NuGet.Core, Version=1.6.30117.9648 since NuGet 1.6 was released on December 13, 2011, and the Release-1.6.1 tag has commits after that date.
Is it possible to get source codes for certain version ofNuget.Core?Version I would like to get source codes for:Assembly: NuGet.Core, Version=1.6.30117.9648
get source codes for certain version of Nuget.Core?
1 I don't think nginx play any role when the wordpress send an email here. Why don't disable all email notifications from wordpress? Where is a thread on the wordpress phorum dealing with the issue: http://wordpress.org/support/topic/turn-off-email-notifications Sha...
I want to disable nginx mail for one of the server blocks (virtual hosts) on the server where a wordpress blog is running, so when the wordpress blog tries to send an email, the server won't send it. I searched over the Net for a while but I didn't find any solutions.
how to disable nginx mail for one of server blocks only?
5 I deleted contents of /.git/ and tried again - it worked. Be careful doing this. Story: I had similar problem related to some error in renaming folders, which persisted even after deletion and (re-)cloning (on mac os x): I first copied my files to a safe directory on comp...
I'm having issues pushing a new git changeset to the github repository. First I cloned my local changes with a depth of 1 to remove the history as: git clone --depth 1 file:///Users/kunal<path to project> Then I ran a git init remote add and push as inside of the directory I cloned: > git init > git remote add orig...
Github push error: unpack failed: index-pack abnormal exit
I had the same error (and follow the same actions). In my case, I wasn't passing the correct arguments in theAmplify post callby skipping the init argument. I fix this by passing a myInit argument with an empty body:let myInit = { body: {} } API.post(apiName, path, myInit)
Through Amplify CLI added an API that invokes a lambda that reads the dynamo table.It worked well y'day after the deployment in AWS. Today morning it throws 403 error with no changes being made:GEThttps://xxnxxtfxx.execute-api.eu-west-1.amazonaws.com/Prod/items403Access to XMLHttpRequestat 'https://xxnxxtfxx.execute...
amplify 403 comes up that too with a CORS error
Labels are amap[string]stringso you are correct, this is not possible.
Is there a way to have the same label key but different values for a pod. For example, can a pod have labels as "app=db" and "app=web". I tried to use kubectl label command but it picks only one label.
Can't create multiple labels with same key in Kubernetes 1.19
For S3 you need the CNAME and bucket name to match: The bucket name must be the same as the CNAME. So http://images.johnsmith.net/filename would be the same as http://images.johnsmith.net.s3.amazonaws.com/filename if a CNAME were created to map images.johnsmith.net to images.johnsmith.net.s3.amazonaws.com So in your...
I would like to use a subdomain instead of the direct url to my s3 bucket at amazon.com. So instead of downloading images via an url like http://bucket-images.s3-eu-west-1.amazonaws.com/path/to/image.pngI would like to use http://assets.domain.com/path/to/image.png. I tried setting a CNAME like this: CNAME assets ...
CNAME to s3 bucket amazon
0 Branch you wanted get the uncommited changes from: git stash then go to branch you wanted to apply the changes git checkout {branch-name} git stash apply Share Improve this answer Follow ans...
I have Branch A that has some changes and Branch B that has changes too, but I want to the changes of branch A do not appear in branch B. My commits look something like this:- commit 3 - branch B commit 2 - branch A commit 1 - branch A master I want commit 3 - branch B to after master or to remove the changes made in...
How to move changes from previous branch of the current branch?
Generally, Kubernetes represents Requests and limits mechanisms in order to control resources (CPU, Memory). Requests mission aims to provide sufficient amount of resources for the container inside the cluster Pods. Limits guarantee that container will never reach the defined value for a particular resource.Take a tour...
I have a simple Spring Boot application, deployed on k8s (2 pods). Briefly described this application takes messages from producer and process them to the consumer. Nothing complicated.UPD:java version: 1.8.172javaMemoryOpts: -Xmx2048m -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeapThis's a memory con...
Dockerized Spring Boot app on k8s takes almost all available memory
You're binding gunicorn to0.0.0.0hence it's available on the external interfaces. Assuming this is just one box, instead:gunicorn --bind 127.0.0.1:5000 wsgi:appThis no longer listens for requests from external interfaces, meaning all requests must come through nginx.Of course if youdidbind gunicorn to0.0.0.0you could ...
I configured nginx and gunicorn to serve flask app. And I started gunicorn with this commandgunicorn --bind 0.0.0.0:5000 wsgi:appMy website is accessible from my provided ip address on port 80. However It is accessible on port 5000 as well. It seems my reverse proxy works as it should be, but gunicorn server can be acc...
gunicorn reverse proxy accessible from internet
1 GitHub doesn't provide this functionality, and it's not likely anyone else does, either. In order to do this, GitHub would have to have a non-bare repository on their servers and let you run an arbitrary script. Bare repositories are packed and can be much smaller than a...
Tech writers are going to edit text in JSON files via github in our project. Since they never used a IDE (and don't need to) we think about using the web GUI of github. We have a CI, but it would be very cool, if we could run a check before the commit gets done. Example: Step 1: tech writer opens in github the JSON fi...
Check Syntax of file if edited via Github Web GUI
IntelliJ's GWT plugin will do the build using its own settings and won't use the ones in the Maven plugin. You need to go to the projects settings (see http://www.jetbrains.com/idea/webhelp/gwt-facet.html) You can increase your 'Compiler Maximum Heap' there.
I am upgrading my project from GWT 2.3.0 to 2.4.0. As a side affect, my GWT compilation fails because it runs out of memory. I searched online and found that you can specify additional memory parameters inside of the Maven pom.xml file (by adding a configuration block) like this: <plugin> <groupId>org.codehaus.m...
How do you increase the heap size used by the GWT Maven Plugin when IntelliJ's "make" calls it?
OpenSSL does not natively support using USB keys. Although OpenSSL does have APIs for loading certificate data from memory, Indy does not expose that functionality yet. So at this time, you can only load certificate files from disk. If the USB key has a drive letter assigned to it, and contains certificate files in ...
Good morning,I wonder how to configure TIdHttp with TIdSSLIOHandlerSocketOpenSSL to use certificates of type USB key, because it is only possible using key file type.This key is an Alladin, and I wish I could select the key to be used as various certificate if any certificate keys.thank you in advance
how to configure TIdHttp with TIdSSLIOHandlerSocketOpenSSL to use certificates of type USB key
By default most docker images have an empty package lists to save on image size. This is why you need toapt-get updatefirst. This will not update any software (that would beapt-get upgrade) but just updates the package list. The command is actually also in Microsoft's instructions you linked.
I'm trying to get a Laravel Sail Docker to be compatible with sqlsrv (MSSQL). I've come a long way with the config and got it to install sqlsrv and the pdo_sqlsrv. So now I need to install msodbcsql17. For that I'm following the microsoft guide (https://learn.microsoft.com/nl-nl/sql/connect/odbc/linux-mac/installing-th...
Laravel Sail/Docker - Unable to locate package msodbcsql17
Since the standard scaler and KNN imputer (mean from n-nearest neighbors) are linear operations, runningstandardizer >> imputer >> inverse_standardizerproduces the same results asimputeralone.You can simplify your numeric pipeline as follows:pipeline_num = Pipeline([ ("imputer", imputer), # Add other processing...
I am trying to apply standardization followed by imputation using KNN. Then I want to back transform the values, because I will apply some other transforms that require the original data. Is it possible to do this in scikit-learn pipeline? No matter what I tried, I get an error.Note: The inverse transform should be don...
Inverse scaler transform within sklearn pipeline
For me it looks like a simple table with data. You can always later on dynamically render the images on the column 1 and 2 with C# using System.Drawing. Using a charting control for drawing 2 simple images sounds like an overkill while with C# you can easily do what you need and present it to client using the web stand...
I'm looking for a chart control that is able to display data like this:But it must not be Silverlight, Flash or other technology forcing user to install plugin.It would be best it the control could use HTML5, JavaScript, C#
Pipeline chart control
From what I can tell, you may need to either:Set the display variable (Note that it might not be 0, could be 1 or even 2):export DISPLAY=:0Launch a dbus-session:dbus-launchSet the dbus variable:export $(dbus-launch)In your case with a Cron job you can set environment variables like this:env VARIABLE=VALUE <command>So f...
I like to run a cron that snapshots a cam like this:* 9-17 * * 1-5 vlc -I dummy v4l2:///dev/video0 --video-filter scene --no-audio --scene-path /home/foo/tmp/cam --scene-prefix snapshot --scene-format png vlc://quit --run-time=1But when the cron runs it just throws an error I don't understand:** Message: Failed to get ...
Error in spawning a dbus-launch - what is that?
If you will look to the code of CCObject class, you will see that in it's constructor reference count is set to 1 there. So, object creation with new is correct. Init is not called because CCObject class has no such a method. Usually I prefer to create objects using static constructor. Smth like MyClass* MyClass::crea...
I've been looking for documentation for cocos2d-x but it seems to be really really poor beyond the very basics. I understand that my own classes should inherit from CCObject to be able to use (originally cocoa's) retain/release mechanism, but I'm still confused about what happens when you new something. init is not ca...
proper instantiation & memory management in cocos2d-x
you have several questions mixed up in a single question, but you'd need to configure your deployment with liveness probe for your desired behaviour to happenReading:https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-liveness-command
We have a release pipeline in AzureDevops to deploy the microservice to AKS and send the log of the microservice once its deployed. We are using below command to deploy the deployment with the template kubectl and command as "-f /home/admin/builds/$(build.buildnumber)/Myservice_Deployment.yml --record"Here we noticed t...
Auto rollout kubernes deployment if the deployment fails in azuredevops
3 You can't use GitHub by default with Aptana's built-in Git integration. You have to use EGit (for Eclipse, but since Aptana is an Eclipse derivative, it installs fine), and then do it that way. In order to install EGit, you'll need to go to Help->Install New Software, a...
I'm trying to import a project from a Git repository. So, I use the "Import project" wizard and give the URI of the git project of my friend: git://github.com/username/projectname.git It gives me this message: "fatal: I don't handle protocol git" I watch the repository on github but the project is empty for now. Is t...
Can't import a Git project in Aptana Studio 3
Use regular expression to match the subdomain, and useRewriteCond backreferenceto redirect back the users:RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} ^([^\.]+)\.example\.com [NC] RewriteRule ^(.*)$ https://%1.example.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^www\.([^\.]+)\.example\.com [NC] RewriteRule (....
I want to add www in front of the sub-domain which was created dynamically. The subdomain was created using *.example.com in the cpanel, so that user can create their own sub-domain through front-end.I have added this code in .htaccess to direct my domain tohttps://www.example.com. But this doesn't work with subdomain...
How to add www in front of sub-domain created dynamically?
Yes, soundpool will keep all the sounds in memory. A single instance of media player would probably be all you need see here. You should do this and your memory issues should go away without having to go to any extreme measures.
I'm creating an Android app that involves multiple short sound clips. At the moment, I'm using SoundPool to load my sound clips once a 2nd activity is begun by the menu activity. The problem I seem to be having is that once this secondary activity begins, the loading of the sound clips causes multiple heap size overfl...
Heap size overflow issues with sound clips
It's very simple actually. You can use this SDK for Laravel:https://github.com/aws/aws-sdk-php-laravelThis link can help you understand how to use it:https://stackoverflow.com/a/32594321/9845807use AWS; use Config; public function dynamoDBConnect() { //Fetching credentials for DynamDB $config = Co...
Hello I am new to dynamo db and laravel. After searching on the internet I found so many ways to setup the dynamo db for laravel and I tried each of them. but after setup the for using the dynamo db in laravel I cant found any tutorial or any sample codes so that I can use it further. some sites links which I used for ...
how to use dynamo db with laravel?
One simple approach (no submodule or subtree required) is to combined:aUser Page(<username>.github.io), which is your main site, from the master branch only of your User repo,some Project page (http(s)://<username>.github.io/<projectname>)That way,http(s)://<username>.github.iodoes import/includeprojectnamein its dedic...
I'm setting my website page on GitHub pages, and I do have another repository with a webpage which is independent of my personal webpage. How can I make my personal webpage's repository dynamically import the code from the other repository?I have already searched for submodules but I think they don't import the code dy...
How can I dynamically import GitHub repository inside another GitHub repository?
Based on the comments, you can avail aWildcard SSLthat works for these domain formatsWildcard SSLSecures all subdomains but not the base domain itselfExample:*.mainDomainName.comWhere the * represents any subdomain but notmainDomainName.comitself.Subject Alternative NameSecures all of the specified IP and DNS on the Su...
I have created a small online market in a sub domain like this: shopName.mainDomainName.com I need to install SSL certificate in this shop and possibly other shops in the future.Can i install once in the main domain and reference that in the sub-domains?Also, there are many options in SSL certificates that i got confus...
How to install SSL Certificate in a sub-domain website?
0 I've had similar problem in one of my apps. I couldn't figure the problem out, but then I stumbled upon the concise_logginggem https://github.com/gshaw/concise_logging. And the app started to write to the productionlog. I would give it a try if I were you. It's very easy ...
My app is breaking when customer place an order. I'm really getting desperate since I need my production.log to figure out what is breaking the app!! I logged into the :~/mystore/current/log$ nano production.log And it seems like the production.log haven't been updated since 23/5 2017. here are the last lines from ...
Rails 4 app is not writing to production.log , running on Nginx, ubuntu and deployed via capistrano
Not sure what you meant byevery hostbut all you need to make sure is project files should be accessible from the machine on which you have sonar scanner. Best practice is to have both the scanner and project files on the same machine.Sonar scanner can be isolated from the web server. once the analysis is done by the sc...
I am planning to use SonarQube Scanner (http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner) for doing sonar analysis for my projects.Please let me know, if I need to install SonarQube-Scanner on every host or can I install on one host and all other can use the scanner from remote location.
Do we need SonarQube Scanner on every machine?
You may need toos.chdirinto the cloned directory.
I want to use functions defined in a .py file (uploaded to GitHub) in my Colab project.I have a GitHub repository with a file "function.py" which containsdef SomeFunction(): return 'it works'Inside my Colab I type!git clone url_of_my_repository %load function.py SomeFunction()And I get the following error: "name 'S...
Google Colab: use functions .py from GitHub
Interesting question. Looking at the source code herehttps://github.com/kubernetes/client-go/blob/d412730e5f0160f6dc0a83459c14b05df8ea56fb/tools/clientcmd/api/v1/types.goit seems that preferences is used for ”holding general information to be use for cli interactions”. It can hold two config parameters: colors(boolean)...
I searched on the net but couldn't find a single use case of having this empty key in config file. I tried to comment it andkubectlworked perfectly fine.so my question is, what on earth it is solving? :)
what does "preferences: {}" in ~/.kube/config do?
No need to add any lines in the PHP configuration file.This lists the modules available for install:$ yum search php | grep -i soapThis installs the module "php-soap"$ sudo yum install php-soapThen restart the server$ sudo service httpd restart $ sudo service php-fpm restart // if neededAll info taken from:How do I ena...
I includedextension=php_soap.dllat the bottom of my PHP configuration file, however I get the error below. Where do I put the command?"Invalid command 'extension=php_soap.dll', perhaps misspelled or defined by a module not included in the server configuration"Using an AWS server
Install SOAP Extension PHP Config (AWS)
On git CLI do git tag --contains <sha1> Go to TortoiseGit log. Right click on the on the commit and select "Show branches this commit is on" (requires TortoiseGit > 2.3 in order to see tags, enter "tags" to filter in order to only see tags).
Once I've located some specific commit in a git repo (e.g. one that fixed some bug or introduced some feature), I'm naturally interested which releases I can find it in. As a rule (=in any project worth its salt), releases are marked as tags, usually with a name along the lines of x.y.z. Typically, only the first rel...
Find the first release(s) (=tags) the commit has gone into
2 Please follow the instruction: Install yq on your machine. for instance, if your operating system is macOS/OSX brew install yq. Then run one of these commands: docker-compose config | yq '.services[]|key' or docker compose config | yq '.services[]|key'. you will find th...
There is a smart way to get the list of services (or containers) of docker-compose files from inside of a container. I would prefer not to using volumes, or passing statically the compose-file to container and parse it or pass a list with these infromations from environment variable. One perfect result is given by do...
Get list of containers/services of docker-compose from inside a container
Interesting question.The inbuilt default Service object along with kube-proxy does route the requests to different pods, but only does so in a round-robin fashion which does not fit our use case.Your use-case would require changes to be made to the kube-proxy setup during the cluster setup. This approach is tedious and...
I've dockerized a legacy desktop app. This app does resource-intensive graphical rendering from a command line interface.I'd like to offer this rendering as a service in a "compute farm", and I wondered if Kubernetes could be used for this purpose.If so, how in Kubernetes would I ensure that each pod only serves one r...
Can Kubernetes work like a compute farm and route one request per pod
It is very possibly the Github/Jira integration. This bug ticket was resolved in August but based on the comments there it's not completely fixed or released. This issue has some back-and-forth but this comment clears things up: it looks like GitHub recommends uninstalling the old Jira integration and using the one Gi...
So, As github is deprecating authorization through access_token query param, we were sent a mail from github that a call has been made with access_token in query param and were asked to update things to include authorization info in request headers. We are suspecting that the api call is made from Jira confluence app ...
How does Jira confluence software talk to Github server?
You should set the environment value ROOT_URL before executing meteor, i.e.ROOT_URL=http://app.example.com meteor run
I'm currently developing on my server, not on my personal computer, but it seems to be impossible to tell it to Meteor, as I'm trying to use Facebook login. The expected login url forapp.example.comishttps://www.facebook.com/dialog/oauth?client_id=&redirect_uri=http://app.example.com/_oauth/facebook?close&But I always ...
Meteor + accounts-facebook redirecting to wrong url
Yes. The pointer remains "alive", but points to a no-longer-existent object. This means that the first time you try to dereference such pointer you'll go in undefined behavior (likely your program will crash, or, worse, will continue to run giving "strange" results). You simply don't do that if you want to keep them ...
I am coming from a C# background to C++. Say I have a method that creates a object in a method on the stack, then I pass it to another classes method which adds it to a memeber vector. void DoStuff() { SimpleObj so = SimpleObj("Data", 4); memobj.Add(so); } //In memobj void Add(SimpleObj& so) { memVec.pus...
Creating an object on the stack then passing by reference to another method in C++
Try with:Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP:CF-IPCountry} ^GB$ RewriteCond %{REQUEST_URI} !(?:gif|png|jpg|jpeg|css)$ [NC] RewriteRule !^gb/ /gb%{REQUEST_URI} [NC,NE,R,L]Redirecthttp://example.com/testtohttp://example.com/gb/testwhen the request comes from a user withCF-IPCountry=GBwhich is not...
I'm really struggling to place redirects into my .htaccess file based on the cloud flare country code. I'm either getting "too many redirect errors" or 500 internal errors using examples from across this site.I currently have this:Options +FollowSymLinks RewriteEngine on SetEnvIf CF-IPCountry "(.*)$" Country=$1 Rewri...
.htaccess Redirect with Cloudflare location
You canListObjects()with a givenPrefix. Amazon S3 does not support listing via suffix or regex.The Prefix includes the full path of the object, so an object with a Key of2020/06/10/foo.txtcould be found with a prefix of2020/06/10/, but not a prefix offoo.The Java command is:ListObjects()See also:Performing Operations o...
I have an S3 bucket that contains a million objects, each object keys are quite different from each other and nothing standard at all.I want to know if there's a way to search for specific key patterns and return those objects using the Amazon S3 SDK for Java?For example, can I search for the keys usingPrefixSuffixor R...
Searching for keys in a S3 bucket with prefix, suffix or regex?
There are two different approaches depending in your scenario.If your KML files are static and you are serving them directly without PHP then you should look at configuring the.htaccessfile appropriately and ensuring that your web server is configured to observe.htaccessfiles.If your KML files are dynamic or are being ...
I have a site built with php, there are .kml files that I would like the user to be able to download when they click on the link, but it current opens the (xml-like) file in the browser. I have tried adjusting the .htaccess file, but no luck.How do you get a file to download, instead of opening in the browser?
Getting a file to download instead of opening the browser
According thedocswhen traffic goes out of a kubernetes cluster in GKE it will get SNATed with the IP of the node. So you could whitelist the IPs of all GKE kubernetes cluster nodes.Hereis some best practices on connecting to external services from Kubernetes cluster. Anexamplefor connecting to Cloud SQL from Google Kub...
So I have a kubernetes cluster running in Google Cloud. And from pods inside the cluster I need to access an external DB which has IP whitelisting configured. It seems that I need a static, shared IP for the cluster's outgoing traffic, what's the best approach?Setting up a service IP seems irrelevant as that's for inbo...
How to IP whitelist a Kubernetes cluster
This should do it. Apologies for the slash at the start.$ docker inspect -f {{.Name}} $(docker ps -q) /test /test2
I'm aware of how to get a list of "container ID's" of all running docker containers.$ docker ps -q
Is there a way to list all the running docker containers by name?
0 Assuming: you can push from the command line without being asked for your password, and you're not using Windows, then Monodevelop probably does not have the correct value of the SSH_AUTH_SOCK environment variable. Try starting Monodevelop from the command prompt so th...
I can commit it fine using the command line and monodevelop has no issue with the public repo but when i try to push it to github it keeps asking me for the password to idrsa, I have tried using ssh-add to verify the key and it verifys fine.
Why does Monodevelop ask me for a ssh key password when it is registered in ssh-agent
Your args array is set up wrong. It should be: args = new char*[3]; args[0] = a; args[1] = b; args[2] = NULL; Otherwise uv_spawn doesn't know where the end of the array is.
I am trying to use libuv to launch a process in a cross-platform way. To test the library, I have written a small C++ application that calls sleep 1 and then exits. The problem is that sometimes (~5% of the time) it crashes with the following error from libuv: EFAULT bad address in system call argument Here is my co...
Use-after-delete in libuv app?
You can't unload assemblies in .Net - you can however shut down an app domain (which is where assemblies are loaded into).
If I use reflection to retrieve an assembly, it will seek out the assembly and then cache it. I can tell this because, if it fails to find the assembly, it won't find it even after I add it to the correct location. If it finds the assembly and I remove it, it still uses the assembly it found and cached. I know I'm n...
How can I clear .NET's reflection cache?
The below command would return the namespace, name, apiVersion, and all the resources in your cluster. You can pipe this with grep to filter wherever you want.kubectl api-resources --no-headers |while read type ignore; do kubectl get $type -A -o go-template='{{range $index,$pod := .items}}{{(or .metadata.name "-")}}...
We have an application running on EKS 1.21 and we are in the process of upgrading to EKS 1.22 since 1.21 will reach end of support in Feb 2023. I am trying to figure out a kubectl command or something similar that can query the entire cluster for any v1beta1 API versions that are deprecated and replaced by GA v1 as per...
Command to query list of all objects/resources using a specific API version in kubernetes
Sounds like you have two different versions of Octave installed. One in/usr/bin/octave(an older version without the--force-guioption), and a new version that is in your path but not on the path when cron runs.Typewhich octaveto see where is the octave version you want to run and fix your paths. You may want to uninstal...
I would like to use a cronjob to open octave with the force-gui option.Writing00 22 * * * octave --force-gui > ~/log 2>&1doesn't start octave but gives the log messageoctave: unrecognized option '--force-gui' usage: octave [-HVdfhiqvx] [--debug] [--echo-commands] [--eval CODE] [--exec-path path] [--help] [--image...
Start octave with GUI from cron
You should check your prometheus-adapter config file, which makes me confused.seriesQuery: dapr_http_server_request_avg_.* metricsQuery: dapr_http_server_request_countIt is possible to get metricsdapr_http_server_request_countfrom above series?name: matches: "^(.*)_total" as: "${1}_per_second"and here ...
I want to do Horizontal pod autoscaling on the basis of input request. I made query for prometheus which returns aggregated input tps.sum(sum by (path) (rate(dapr_http_server_request_count{app_id="governor",path=~"/v1.0/invoke/app/method/interceptor/.*"}[10s])))I want to use this output in kubernetes HPA.I am using pro...
Custom prometheus query with k8s for HPA
3 Kubectl logs might read logs with a default log rotation, meaning the logrotate service is active. Check the content of cat /etc/logrotate.d/docker-containers, as in this issue, for confirmation. As explained in unofficial-kubernetes: An important consideration in node-l...
I have an app running in a kubernetes managed docker container, using Azure Kubernetes Service (AKS). I can output logs to a text file for the app deployment using: kubectl logs deployment/my-deployment > out.txt This gives me a file of around max 28Mb. When I get the docker logs for the same container on the physica...
Kubernetes - increase kubectl log size
It is true thatmetric_relabel_configsdoesn't apply toupbecause:Metric relabeling does not apply to automatically generated timeseries such as up.But, if you really need it,relabel_configcan add the label at configuration time (or usinglabelsconfig ofstatic_config):relabel_configs: - source_labels: job target_labe...
It is not possible to use relabelling to add labels to theupmetric. This is what I remember from the book by Brian Prometheus Up and Running.I'm wondering then how to add there labels in the case that I don't control the Prometheus exporter.
Inject custom labels into up metric
The list of regions and endpoints can be found here:http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_regionAm using your same code. Please check the below version with your code ;<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc4.min.js"></script>Again, please double check the region. If you still re...
I'm trying out the AWS Javascript SDK, I wrote a simple code based on the examples to get the list of files in a bucket. But I keep gettingNetworkingError: Network Failure, and can't find any references to this error in the docs.I also get the same error when I try agetObject.My code:AWS.config.update({ accessKeyI...
AWS S3 Javascript in the browser error
0 If i'm not mistaken the problem is that by default GitLab only allows Maintainers to create new protected branches. So maybe this has something to do with permissions in the repo, you should check in GitLab if you are using wildcards in the protected branches protection. ...
I have a project in gitlab. My colleague has a maintaner status there. I have a developer status. He asked me to push a files there with a new branch. Then to merge request, in order he could check it and accept. But when I push, I get the following error: remote: GitLab: You are not allowed to create protected branch...
Can not create protected branch in this project in Gitlab
I am trying to put my thoughts regarding your post. As there is multiple question i am trying to go one by one. Question 1 do I need to create a new branch and commit my changes there? Or should I work directly on the origin/dev branch? I think if we are not the single person who is responsible for doing changes,...
I am new to GitHub and have not found this question addressed directly. I want to make my first contribution (not code, just some grammar corrections to a README). I've cloned the repository to my machine. My question: I know I will eventually make a pull request. Locally, I'm on origin/dev... do I need to create a n...
First GitHub pull request for typo fix - do I need to branch locally?
-1You can also write a bash script and run the script in the cwl. I mean:basecommand: sh inputfile: script.shthe script could contain all of your commands such as cat and wc. The script also could get other inputs for your commands such as file or strings too and you can use them inside the script by $1 and $2 and go ...
I'm new to CWL tools. I can use any of bash commands in basecommand, i.e.:basecommand catorbasecommand [wc, -w]How should I modify it to make it do the same ascat | wc -wwill do?
How to put two bash commands in CWL file?
There is presently no way for any running code on a CUDA capable GPU to preempt running code on the host CPU. So although it isn't at all obvious what you are asking about, I'm fairly certain the answer is no just because there is no host side preempt or interrupt mechanism available available in device code.
I'm writing aCprogram usingCUDAparallelization, and I was wondering if it is possible for a kernel toreturn a breaktoCPU. My program essentially do a for loop and inside that loop I take several parallel actions; at the start of each iteration I have to take a control over a variable (measuring the improvement of the j...
CUDA: it is possible for a kernel to return a break to CPU?
What i though was an issue with authentication what actually an issue with the git service not knowing which ssh key to use as i had multiple on the server.The solution was to use a config file in the .ssh folder and assign alias to specify which ssh key to use for git operations in separate repositories.Solution is he...
BackgroundI have a system where when I push changes to my Repository, A web hook sends a request to my site which runs a bash script to pull the changes and copy any updated files.I added a second repository with its own deploy key but after doing so i was getting a permission denied error when trying to pull changes.Q...
GitHub - Using multiple deploy keys on a single server
Unless you're using a lot of data you won't see a huge difference between an int64 and an int32. 1,000 int32's vs 1,000 int64 is only about 4K in difference. The standard for integral values is usually an int which maps to an int32 so I'd recommend using that unless you have a specific need for 16 or 64. Here's a grea...
I am soon to develop a Win Forms app that will run on traders' machines and the main concern is to have the app use as little memory as possible. Ever single line of code needs to be written with this in mind. What are areas I need to take into account? Of course you will say to do any complex processing on e.g. the d...
.NET apps. Looking after the bits and bytes
The cache abstraction does not support caching exception throw by annotated method. Your setup looks very weird to me. Why would you use two different regions for null and non-null values?Use the standard annotation if you want such setup.I don't want to combine JSR-107 and Spring Cache.The id generation being differen...
I need 3 separate caches:Response with some dataNullExceptionI've already defined the two caches@Caching(cacheable = { @Cacheable(value = "SomeCache", key = "#a1", unless = "#result == null"), @Cacheable(value = "SomeNullCache", key = "#a1", unless = "#result != null")})So, I have to implement the last case.JSR...
How do I tell Spring Cache to cache the exceptions in @Cacheable annotation?
When I first asked this question, AWS had the ability torecordmetrics with the Swift SDK, butnotview them in the Pinpoint API, which is absurd, because then you can only record metrics. What's the point? I asked in the AWS forums, and a couple months later, they responded something along the lines of "Please wait - com...
It is clear from the documentation that I can add custom metrics for a custom event.How do I view these metrics in the Pinpoint console? From the Pinpoint console, it is obvious how to view attributes. I can go to Analytics > Events, select my custom event, and narrow down the events to whatever attributes I desire. I ...
AWS Pinpoint: How to view custom metrics
During kubeadm init, kubeadm uploads the ClusterConfiguration object to your cluster in a ConfigMap called kubeadm-config in the kube-system namespace. You can get it from the ConfigMap and take a backupkubectl get cm kubeadm-config -n kube-system -o yaml > kubeadm-config.yamlhttps://kubernetes.io/docs/reference/setup...
There is a k8s single master node, I need to back it up and restore it I googled this topic and found a solution -https://elastisys.com/2018/12/10/backup-kubernetes-how-and-why/Everything looked easy; so,I followed the instruction and got a copy of the certificates and a snapshot of the etcd database.But at last, I am...
where I can find kubeadm-config.yaml on my kubernetes cluster
It seems you catch some kind of collision. Your drupal:8.6-apache image contains Drupal in /var/www/html folder, but you map your volume to /var/www/ folder inside container. This breaks it at all. Your apache-drupal.conf file points to /var/www/web, but project is already inside html (we are in container) The simpl...
Drupal 8 directory structure is like below drupal -> Web -> Index.php I have below files docker-compose.yml version: '3' services: drupal: image: drupal:latest container_name: drupal build: . ports: - "8081:80" volumes: - ./:/var/www restart: always DockerFile FROM drupal:8.6-apa...
AWS ECS Docker: Not pointing to Drupal path and giving error You don't have permission to access this resource
For proper integration into the Sonar build you need to write plugin:http://docs.sonarqube.org/display/DEV/Developing+PluginsIf you just want to add some additional adhoc metrics to your dashboard, an option is to use manual measures:http://docs.sonarqube.org/display/SONAR/Manual+MeasuresThere's a REST API available to...
I'm a new user of sonar. Now I need to customize metrics, but I didn't find the related documentation. If I have to coding a plugin? I do the same withhttp://docs.sonarqube.org/display/SONAR/Getting+Started, but I failed. There is no difference at the localhost:9000/profiles.
How to customize metrics in sonar?
I normally pass the access for huge page and vfio devices viadocker run -it --privileged -v /sys/bus/pci/drivers:/sys/bus/pci/drivers -v /sys/kernel/mm/hugepages:/sys/kernel/mm/hugepages -v /sys/devices/system/node:/sys/devices/system/node -v /dev:/dev.It looks like you are missing the same.
Docker is running in privileged mode. I want to know if this behavior is expected.I am running DPDK based application in container. My server has total 128G memory, I have limited container memory resource to 4G. which I can see in docker stats.CONTAINER ID NAME CPU % MEM USAGE ...
"docker run --memory" doesn't account hugepages
After a couple of days I have noticed that I changed the default name of the field @timestamp Now it works correctly. Thank you
I return with my doubts about elasticsearch. I've been doing more testing and I'm almost done learning about ELK. But I have a little problem. By creating a pipeline and outputting the elasticsearch cluster as follows:output { elasticsearch { hosts => [ "IP:9200", "IP:9200", "IP:9200" ] manage_template =>...
Elasticsearch index does not recognize date (Logstash pipeline)
How to Configure Let’s Encrypt on DrupalTo make your Drupal site work with Let’s Encrypt, below are the changes require in the htaccess file.This line:<FilesMatch "\.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|T...
When trying to generate the LetsEncript cert I am getting the following 403.[ec2-user@myip html]$ /opt/letsencrypt/letsencrypt-auto certonly --webroot -w /var/www/html -d example.com -d www.example.com --config /etc/letsencrypt/config.ini --agree-tos Checking for new version... Requesting root privileges to run lets...
Lets Encrypt 403 - The client lacks sufficient authorization. Drupal 7 Site
As far as I know the only way to achieve this using GitHub's web interface is creating a reverse pull request. This however comes at the cost of an additional merge commit which is usually not desirable as it sums up and new pull requests fromBtoAwill include all those unneccesary commits.It probably is possible to use...
Let's say that GitHub repoBsends a pull request to GitHub repoA, and suppose that the pull won't go through without resolving some conflicts and merging.Therefore, in order to accept the changes proposed byB, the owner ofAmakes the pull request from an offline repo, performs the merge, and pushes the merge toA. NowAis...
How to update pull-requesting site after pull request has been merged?
There is no usually. It varies by application, and many games will let you select whether you want to compress textures or not to trade quality for performance.The thing about DXT/S3TC quality is that it varies by the compressor; this is part of the reason formats exist that store pre-compressed textures. Obviously it ...
I know that DXT compression is used because it saves a lot of memory and bandwidth. However, DXT quality is not so good. Is DXT usually used? Are other compressed formats used? Are raw (no compression) formats usually used?I've read about BPTC Texture Compression too, but I don't have OpenGL 4.x support, just OpenGL 3....
S3/DXT/BC compression and texture formats
AWS S3is, at the most basic level, just akey/value store. When you upload an object (file) to S3 you specify a unique public key for the object. In S3 the keys look like file paths, which can lead to some confusion since you don't need to do things like create subdirectories, etc. What this means, in a nutshell, is th...
So, I began studying the upload mechanism with AWS. Also, watching several other examples, I have noticed that I don't actually get one thing ( even though I have read the documentation over and over, at those specific parts). At the creation of a AWS account, you are given a key. But also, there is the notion of Objec...
What is a keyName in AWS ( Amazon Web Services )?
44 Using Amazon AWS Route 53 & Apache 2.4 web server Create a Canonical name with wild card to route all the sub domains traffic to the root web server located. Now add sub domains details along with root domain routings like below. # ---------------------------------...
How to create domain and subdomain in AWS?
How to create a domain and a subdomain in AWS?
0 Please check your image size and then check your device memory. May be it's happen because your device memory is low. Add this line in manifest and see the error is consist or not : android:largeHeap="true" Share Improve this answer ...
I have three(ABC,PQR,XYZ) buttons in my UI, if i click any button then my application loads different images from drawable folder , but some time it gives OutOfMemory Exception. I am using the following code for loading images from Drawable folder. abc.setBackgroundResource(R.drawable.abc_on); pqr.setBackgro...
OutOfMemory while loading images from Drawable folder
You have your package as a sub directory of the github repository try:devtools::install_github('nancyorgan/mapcalc/mapcalc')this seemed to work for me althou I didnt try any of the package functionality.
I just put a package on github but am having trouble installing it using install_github(). The package is athttps://github.com/nancyorgan/mapcalcI've triedinstall_github(repo = "mapcalc", username = "nancyorgan") install_github("nancyorgan/mapcalc") install_github(repo = "mapcalc", username = getOptions("nancyorgan"))b...
install_github() error for existing package
I was able to commit and push with this code name: Commit and push on: workflow_dispatch permissions: contents: write jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - run: | date > generated.txt git config user.name github-actions ...
I am trying to push the changes that are made from the action, but it always throws an error. I already tried to use a token with all permissions, and it still doesn't work. This is what i have in github atcions: - name: Commit and push changes env: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} run: | ...
How i can comit and push with GitHub Actions
Have a look atSmart IP Api. Seems to do everything you're looking for and has some simple tutorials.
Greetings all,I would very much like to determine the IP# of a domain from client script.It's for use in a testing application to determine whether or not a certain domain is set to a QA address as opposed to the address live on the . The testing machine will have it's host file set to resolve a domain to the QA addres...
Determine IP# of domain from client browser