Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Apparently the way to go is to set up token authentication.Then you can return a valid token for the scope pull even if no Basic Authentication was given.You can find an example code onhttps://github.com/cloudfleet/floating-dock/blob/master/app/controllers/api/v1/jwt_controller.rbandhttps://github.com/cloudfleet/floati...
I'd like to setup a docker registry that allows anonymous pulls but authenticates pushes.My naive approach was to allow get requests. But that seems to break the login as the client only creates the credentials if the initial Get request to /v2/ yields a 401.However also repository reads start with that so I cannot put...
Setup private docker registry with anonymous pull access
The problem is that the stream doesn't really stop until the container is stopped, it is just paused waiting for the next data to arrive. To illustrate this, when it hangs on the first container, if you dodocker stopon that container, you'll get aStopIterationexception and your for loop will move on to the next contain...
I am usingdocker-pyto read container logs as a stream. by setting thestreamflag toTrueas indicated in the docs. Basically, I am iterating through all my containers and reading their container logs in as a generator and writing it out to a file like the following:for service in service_names: dkg = self.container.lo...
docker-py reading container logs as a generator hangs
Had the same issue here, so I just decided to print any attribute of the context instance, so it was some thing like this:print(context.invoked_function_arn) # you can use logger instead of printingAnd that solved it, but I guess the most fancy way would to fix this is to ignore the lambda_handler files to be analyzed ...
I recently enabled sonarqube for my lambda functions. Now as we all know, for any lambda_handler this is the standard process. However all the logics are stated and based on event not much on context.def lambda_handler(event, context):Now after running the sonarqube scan, I'm getting:Remove the unused function paramete...
sonarqube and aws lambda
The celerybeat task you register could be a wrapper and perform the project/task logic inside of it, firing off other tasks as appropriate. You could fetch the project tasks inside of your celery beat job.CELERYBEAT_SCHEDULE.task->'some_django_app.project_beat_task'Then project beat task could retrieve the correct pro...
I have configured Django + Celery: all works, i can execute tasks, that called from views.py i.e.mul.apply_async((2, 5), queue='celery', countdown=5)I need to shedule periodic task that will chain simple tasks with argument that passed from users. I read docshttp://docs.celeryproject.org/en/latest/userguide/canvas.html...
Django + Celery: how to chain tasks with parameters to periodic task
Meanwhile I found a hack,disclaimerthis is not the exact kubectl cp just a workaround.I have written a go program where I have created a goroutine to read file and attached that to stdin and ran kubectl exec tar command with proper flags. Here is what I didreader, writer := io.Pipe() copy := exec.CommandContext(ctx, "k...
I have a use case where my pod is run as non-rootuser and its running a python app. Now I want to copy file from master node to running pod. But when I try to runkubectl cp app.py 103000-pras-dev/simplehttp-777fd86759-w79pn:/tmpThis command hungs up but when i run pod as root user and then run the same command it execu...
Copy a file into kubernetes pod without using kubectl cp
UseDaemonSetinstead.A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.If you really want to use statefulSet, you can ...
What is the easiest way to run a single Pod on every available worker node as part of the StatefulSet. So, a one to one mapping.Am I right to say every Pod will run on a different Node by default with a StatefulSet? In which case is it sufficient to add x pods to the SS where x Worker nodes exist in the cluster?Thanks.
Kubernetes StatefulSets - run pod on every worker node
Strictly speaking you usually don't need a GPU for training either depending on the platform, it would just be much slower than if you utilized he GPU rather than the CPU. For deploying the model you do not need a GPU. Most models are simply an organized list of weights which are used by the model to operate on its in...
I know I do need a GPU to train a model but even after the model is trained do I need a GPU to deploy the same trained model? For example I have a model for a car with auto-pilot to predict and take a decision... Do I need a GPU for the prediction too.. Specially in case of reinforcement learning
Do I need a GPU even to deploy a deep learning model?
The/bin/sh -conly takes one argument, the script to run. Everything after that argument is a a shell variable$0,$1, etc, that can be parsed by the script. While you could do this with the/bin/sh -csyntax, it's awkward and won't grow with you in the future.Rather than trying to parse the variables there, I'd move this i...
We are creating a simpleDockerfile, the last line of that file isENTRYPOINT ["sh", "-c", "spark-submit --master $SPARK_MASTER script.py"]Thescript.pyis a simple pyspark app (is not important for this discussion), this pyspark app receives some parameters that we are trying to pass using thedockercommand as followsdocke...
ENTRYPOINT with environment variables is not acepting new params
List certificates in keystore using following command:keytool -list -v -keystore yourkeystorefile -storepass keystorepasswordFind your certificate and check the common name (CN) value in "Owner" tag. This is the domain name the certificate is created for.Alternative domain names you may use are listed in optional Subje...
I have self signed certificates for my https protocol based web application.but I want to know the domain mentioned in the keystore/truststore. can any one help me to know it?
how to know the domain used in keystore/truststore?
Deprecation WarningDocker ToolboxandDocker Machinehave both been deprecated.Docker Desktopis the officially recommended replacement.Original AnswerI found that Docker Toolbox is available via brew/cask# Install Homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # Install ...
I am trying to automate setting up a developer environment on Mac. Part of that setup is installing theDocker Toolbox. I cannot find any documentation on how do to this via command line. How can I automate this installation (must be triggered via command line)?Update:As pointed out in a commend byDennisDocker for Macno...
Install Docker Toolbox on a Mac via command line
You can try GitHub's reflog.Taken from:https://objectpartners.com/2014/02/11/recovering-a-commit-from-githubs-reflog/https://medium.com/git-tips/githubs-reflog-a9ff21ff765f.First, use GitHub’s Events API to retrieve the commit SHA:$ curl https://api.github.com/repos/<user>/<repo>/eventsThis will return a JSON response ...
I have a repo1 on github and had the latest clean version (let's call it"latest-version").I cloned it but...I did:rm -fr .git git init git remote add origin <repo1 url>"Then, I modified various files and ran"git push -f origin master"to overwrite all the files.With no previous history/log in my local .git directory, ho...
git: How to undo my last "git push -f" without previous versions?
You can use theProfiling APIto achieve this. Unfortunately not in managed code.
is it possible to list all objects stored in heap. I would like to do something like this:IEnumerable<GCHandle> listOfObjectsInHeap = GetListOfObjectsFromHeap();
How to list all managed objects in heap in .Net?
+50I guess, instead of specifying the wday (Friday=5), you'll just have to specify the months where the 13th is a Friday; so, for 2019:0 0 13 9,12 * : do stuff, but avoid black catsOr, eternally more elegant, create a small script:$> cat /home/me/bin/test_friday_13 #!/bin/bash if [ "$(date +'%A %d')" != "Friday 13" ] t...
I have seenthisquestion which indicates that the relationship between thewdayandmdayfields of a CRON schedule is an OR relationship. Say for example I want to schedule something for every Friday the 13th.Rather than the expected result, the CRON0 0 13 * 5will give me all Fridays of every month, as well as every 13th of...
CRON with AND relationship between mday and wday
5 Logs is apparently sitting on top of Kinesis, so: Yes, existing service, probably custom configured on AWS end I think they handle this on their side Based on this: https://youtu.be/pTzv-i1uvvE?t=1386 Share Improve this answer Foll...
Is there some document available that shows how AWS CloudWatch log data is stored at AWS? Especially, I would like to know: Is an existing service (e.g. Amazon S3) used for the storage of events? Is there any encryption available? Interestingly, information is available for CloudTrail, but there seems to be no docum...
Where are CloudWatch log data stored?
That is because ngApp is itself a git repo (that folder included a .git subfolder in it)So when yougit add .in your repo, it just recorded ngApp as agitlink(a SHA1 reference to the repo) without any URL (as opposed to a submodule, where a.gitmoduleswould include the url of the remote repo).When you clone your repo back...
Why can I not open my folder in GitHub? It has already been asked but i could not find the right solution for me. Here is the link for the same problem:Why can I not open my folder in GitHub?. Can anyone help me to get rid of it. Thanks in advance
Why can I not open my folder in GitHub?
You should pull first if your repo isn't up to date locally but since you are he only one working on it, it is highly unlikely your repo won't be up to date.You need to tell git what files to upload and which files to ignore and have a commit message. git add -A <-- Adds all files git commit -m "Message" git push or...
I've read a bunch of tutorials and they all stop just short of what I want to do next. I've set up git on OS X and pushed all the files up to github. My git status says: On branch master nothing to commit, working directory clean Now I want to update one of the files on github. Do I just update and commit on git loca...
Updating a github Repo
The exclusions you've set up are Issue exclusions, and as such only turn off issues.To ignore the files altogether, you'll need to list them in the Files section of the exclusions page, particularly in thesonar.exclusionsfield. Note that this field accepts 1) multiple values 2) patterns, so if these files have a common...
I'm trying to get SonarQube (6.3.1) to exclude all JPA Entity-related classes using thesonar.issue.ignore.allfileoption.I've set this parameter using the SonarQube web interface:(Note - I'm using @Column rather than @Entity since all the affected classes contain @Column annotations, but not all of them are top-level @E...
SonarQube ignore (sonar.issue.ignore.allfile) @Entity files
Use a different keystore per Connector, with the appropriate certificate in each one.However in the long run you will find life with SSL much easier, and a lot of other things too, if you terminate SSL at an Apache HTTP. Then you can control most of SSL right down to the directory level. Tomcat is rather limited in thi...
To provide both RSA and DSA certificates, I have used two connectors with different IP addresses. But Is it possible that under one IP address multiple ssl certifices?I have also tried virtual hosting on tomcat, but I didn't found any attribute under "Host" to specify certificate for each host.Finally I am trying use a...
Can one tomcat server support both RSA and DSA certificates?
The dependencies for express-session are right on Github in itspackage.json. I don't see any of your listed storage mechanisms.Then, if you look at the code for theMemoryStoreobjecthere, you can see that it's just using a Javascript object to store a list of sessions indexed bysessionId.
There seem to be quite a few promising packages with no clear suggestions on which is the fastest,scalable and which is more memory efficient.npm installmemoizeenpm installmemcachedlru-cachenpm installmemory-cachenpm installnode-cacheAny reliable sources of information/personal experience with these would help.So the b...
In memory storage on nodejs server
0 I managed to figure it out. You might need to edit the date formats. echo off set CUR_YYYY=%date:~0,4% set CUR_MM=%date:~5,2% set CUR_DD=%date:~8,2% set CUR_HH=%time:~0,2% if %CUR_HH% lss 10 (set CUR_HH=0%time:~1,1%) set CUR_NN=%time:~3,2% set CUR_SS=%time:~6,2% set CUR_...
I have to seperate codes. This creates a directory with only the date, but i don't know how to put the time on the end. for /f "tokens=1* delims=" %%a in ('date /T') do set datestr=%%a mkdir c:\%date:/=% And I have this to copy the files: robocopy "%appdata%\saves" "C:\Users\redfi\OneDrive\Savesbackup" /e /xf They b...
How to create a batch that creates a directory named the current date and time, and then copy files in it?
You should use.filter(aIDetailsDto.getResult().getIdNo()::equals).
When I checked it in sonar, the result is:Replace this lambda with a method reference.It actually refers to this one:.filter(s -> aIDetailsDto.getResult().getIdNo().equals(s))My code below goes like this:AIDetailsDto aIDetailsDto = aaaService .getDetailsByUserId(userId) if (!ObjectUtils.isEmpty(aIDetailsDto...
SONAR: Replace this lambda with a method reference.
SonarLint embeds a set of code analyzers and may run later versions if it isconnectedto a SonarQube server with a newer version of an analyzer. But it will not run analyzers that are not in its embedded whitelist of SonarSource analyzers. SonarSource does not offer an analyzer for apex, therefore you will not see Sonar...
I have installed the sonarlint in my eclipse IDE. But I am unable to scan my apex code.Please help me to fix this issue.
Sonarlint-apex staticanalyzer code quality
Thedockerdaemon sources/var/lib/boot2docker/profilebefore starting. TheHTTP_PROXYvariable will be available in thedockerdaemons environment. Users logging in viasshwillnotsee this variable.Any/etc/profile.d/*.shfiles will be loaded into a users profile at login but as you pointed out, this is reset back to the base ima...
I have tried to put my environment variable at /var/lib/boot2docker/profile file at guest machine, and restart itexport http_proxy=http://proxy:portthen i open shell from my host machine (Windows 7) by usingdocker-machine ssh defaultI can't find 'http_proxy' from my environment variable by usingenv
how to permanently set environment variable for boot2docker
Basically, you do the same thing you did to get everything for your first application running minus the Nginx installation. So, however you got your Unicorn instance for your first application running, do it again for your next application.You can then just add another server block into your Nginx config with an upstre...
How can I host multiple Rails apps with nginx and Unicorn?I currently have one site up and running thanks to "Deploying to a VPS".I have searched but I need a step-by-step guide to get this working. The results I found are not so well explained to help me understand how to accomplish this.
How can I host multiple Rails apps with nginx and Unicorn?
A very fine, clean URL already is:www.domain.com/page.php?a=var1&b=var2&c=var3&d=var4If you don't think so (I like these URLs, they are very semantic), and if you now need to preserve information about which parameter is what, you just need to keep the names:www.domain.com/page/a/var1/b/var2/c/var3/d/var4works perfectl...
I've found a number of solutions on stackoverflow on rewriting urls with a variable number of variables. But wasn't able to find anything on the situation where these variables can occur in a variable order. In my case I've a page with 4 potential variables:www.domain.com/page.php?a=var1&b=var2&c=var3&d=var4I want my u...
.htaccess/php cleanURL's variable number of variables in a variable order
16 Try this (it will update images that does not have running containers directly attached to them) docker images | awk '(NR>1) && ($2!~/none/) {print $1":"$2}' | xargs -L1 docker pull Try out this line out first to see what images will be covered: docker images | awk '(NR...
I have a private docker repo in which i have 10 container images stored. I want to pull all images to a machine. is there a way i can pull all images from a repo with a single command? some command like docker pull xx.xx.com/reponame/* while researching I found ways to pull all tags of a single image; but no luck ...
How to Pull all docker container images from docker repo at once?
The workaround was for me to use a subshell within the curl command:RUN echo "Healthcheck port: $(/app/get_port.sh)\n" HEALTHCHECK --interval=10s --timeout=4s CMD curl -f "http://localhost:$(/app/get_port.sh)/health" || exit 1Though I wish Docker would get advanced options for handling ENV.
I've a REST Service written in C++ which has an endpoint for localhost:somePort/health. The port is configured in a yaml based config file.I've created a script which extracts the port from the yaml file. But my problem is to assign the result to the HEALTHCHECK command in my Dockerfile.So let's say I have a script /ap...
Dockerfile Healthcheck with environment variable
Linked list is made up of individual objects that happen to point at each other. If you want to delete a list you have to delete all of its nodes. free() won't do that. It doesn't know that these objects make up a list. It doesn't even know that these objects contain pointers to anything. Therefore you need to iterate...
This is done by someone who is better in C programming than me. confused over the usage of free () in C below is the struct of linked list typedef struct node { int value; struct node *next; } ListNode; typedef struct list { ListNode *head; } LinkedList; after created a list with some nodes his code doe...
confused over the usage of free () in C
I don't know why it works like that (is it a feature or a bug?), but you can solve this issue by adding a "sum" at the LogQL beginning:sum(count_over_time({app="myapp-portal"} | json | Level="Error" [1m]))
We collect .NET logs to Grafana Loki, I want to create an alert for errors.If I use querycount_over_time({app="myapp"}[1m]), I see a nice curve on the graph.However, if I add filteringcount_over_time({app="myapp-portal"} | json | Level="Error" [1m]),I get multiple one-point series. Can anybody explain why it does not d...
Weird LogQL behavior when aggregating logs
One way would be to: have a job monitoring every n minutes the notifications for a given project, and, if the last notification comes from a specific user, mark those notifications as read: PUT /repos/:owner/:repo/notifications (In other words, there is no native "GitHub" solution, you have to write a service to ge...
I don't have anything against coveralls, but I don't want to be getting notifications from it, in the form of emails or having the notification button turn blue. I examined blocking a user, but that's not an option as I don't own the repo that coveralls is commenting on. Is there anything I can do to ignore a user?
How to ignore coveralls or any other user on github
You can disable logging in several ways:Disabling likein here.Doing thisold workaround.
I have a Google Cloud Platform project where I use Kubernetes to deploy my apps, but I have noticed on my billing that Stackdriver Logging costs too much for me and I don't really need logging right now.So, does anyone know how can I disable the Stackdriver Logging API in my clusters?
How to disable Stackdriver Logging?
3 Man you saved many hours of my life! Thank you! apt install apparmor apparmor-utils This is fix all! Share Improve this answer Follow edited Feb 6, 2023 at 15:08 answered Feb 6, ...
All my docker instances are not working anymore because the following error message appears right after the latest containerd updates: Feb 4 14:16:19 ngs-he-site-03 dockerd[830]: time="2023-02-04T14:16:19.524452673Z" level=error msg="failed to start container" container=6f8e87238300e1082f1e8e86d03233ed31018ac3d6d0d20...
Latest docker (containerd) updates break everything and all container stopped
0 Needed to run rsync under sudo. Rookie mistake. Share Improve this answer Follow answered Jul 17, 2015 at 17:50 Elcid_91Elcid_91 1,60744 gold badges2727 silver badges5151 bronze badges ...
I have an Ubuntu 15.04 Server set up as a AD controller. The server also has shares for which I have assigned the proper permissions for our staff. My problem is that I need to backup the shares using rsync on the server but the server user (svradmin) (not being a part of the AD domain) does have SUDO rights but not...
Ubuntu give server user access to Samba AD Shares
1 Try Ember.ListView. It looks like it might have some issues on iOS, but it seems to be the current consensus for rendering a large list efficiently. See also: Is ListView appropriate for an app with a growing number of resources? An introduction to Ember.ListView (youtub...
I am using Ember array controller to list data. When we have more then 100 records. On desktop it's fine but on mobile it's not working smooth. So i google and found this link http://discuss.emberjs.com/t/view-rendering-performance-ember-v-angular/1897 It says "We dived into the Ember rendering pipeline and noted that...
Memory Issues with long list in Ember array controller
1 I am running Cypress on Ubuntu in Github Actions, and am also seeing this warning. However, I've noticed it actually doesn't cause any real issues for me. If you're experiencing issues, it could be worth checking if something else is causing it rather than this. That said...
I am running npx cypress run 'path/to/file.js' --browser chrome inside ubuntu2004 docker container and getting the following error message. 'ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported' This is how I'm installing chrome-browser and seems to be working. # Install chromium RUN apt install ch...
ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported. ubuntu2004 docker
You can use rest api create-a-release which support for github enterprise for the script. I don't have github enterprise on hand, so i checked for github with rest api, sample code below, but it should work for enterprise as well(change the url). - task: Bash@3 inputs: targetType: 'inline' script: | #...
I like to release a pipeline artifact on GitHub Enterprise releases. Here is the article I followed. https://www.logitblog.com/releasing-an-azure-devops-artifact-on-github-releases/ The problem is that the "GitHubRelease" task is not compatible with GitHub Enterprise. see this issue: https://github.com/microsoft/azure...
How to release an Azure DevOps artifact on GitHub Enterprise releases?
I am assuming that your servers and applications are running. But you are not able to access them. In this case, You can start from here.1. Verify whether you are able to ping the admin host. If so, see whether telnet is allowed on admin port. 2. Try accessing the console with both FQDN and ip address. 3. If v...
I know how to configure WL to listen for a my IP address instead oflocalhost. I had done it in past and it worked as well. Today suddenly things are broken, as usual I started my server configured for listening to my IP address and I was not even able to open the WL console.I thought it could be some proxy issue so I r...
Configuring WL to listen for my IP address
I understand where you're coming from, and honestly I can't really show you clear documentation that exactly states why this won't work. AWS documentation on Cognito and Amplify is difficult to piece together, both because the Amplify framework still uses an old library under the hood ('amazon-cognito-identity-js') an...
When calling Auth.currentUserCredentials() after Auth.signIn() I get valid valid credentials, but for an unauthenticated user, why? Code: async signIn({ dispatch, state }, { email, password }) { try { const user = await Auth.signIn(email, password); console.log("User state after login") const userCre...
AWS Amplify 'currentUserCredentials()' returns unexpected authenticated value, bug?
Check if you have a hidden.gitfolder under%USERPROFILE%(yourC:\Users\MyNamefolder)If you do, rename or delete it: there should not be a Git repository for the all Windows HOME folder: that would force VSCode to monitor too many files, as the warning suggests.
I have recently installed Git and my only issue is every time I open VScode it will attempt to give me the warning/error messageThe git repository at 'c:\Users\myname' has too many active changes, only a subset of Git features will be enabled**.There is a listing for over 5000 files. I assume this has something to do ...
VS Code - The git repository at 'c:\Users\myname' has too many active changes, only a subset of Git features will be enabled
A simple DV multi-domain certificate works in your case.You don't need a wildcard certificate and a EV certificate is not necessary for REST API (because it's only useful to display a green bar in a browser)
I am implementing security concept for my mobile app having android and java platform for Client and REST APIs using https at Server. I have successfully configuredSelf-Signed Certificatefor testing purpose. But now, I want to avail this app for general use and for the same I want to configurehttps. I have read the s...
From Self-signed SSL Certificate to Trusted Certificate
The GPU memory lives on the other side of the PCIE bus. The memory controller for the host memory in modern PC architectures is directly attached to the CPU.Therefore the access methods are quite a bit different. When accessing memory that is on the GPU, the transaction must be framed as a sequence of PCIE cycles. T...
I asked a questionMemory allocated using cudaMalloc() is accessable by host or not?though the things are much clear to me now, but I am still wondering why it is not possible to access the device pointer in host. My understanding is that the CUDA driver takes care of memory allocation inside GPU DRAM. So this informat...
Why we do not have access to device memory on host side?
root /usr/share/nginx/html; index index.html index.htm;Put something in index.html in your root location and try to open it in a browser; index.html should be reachable.
I have trouble getting HSTS status working with SSL Labs. HSTS shows up as "No" when I test my website, but I have HSTS configured in my config file. I have nginx 1.6.2. Following is the conf file. Any help would be highly appreciated. Thanks!server { listen 443; ssl on; ssl_certificate <<path to cerificate>>; ssl_cert...
SSL Labs - HSTS not working - Nginx
Answering my question-Issue was with the headers used in the request - Postman defaulted the JSON as aContent-Typeoftext/plain, I had to switch to JSON using the dropdown in Body tab to make PostMan set the Content-Type to application/jsonFollowing this post seems to have fixed the problem:https://itnext.io/how-to-vali...
Just learning my way through AWS - I have an APIGateway REST API setup with Lambda proxy integration. The API has a model defined, and request validation setup on the body using this model.Say the model is{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "prop...
APIGateway does not perform request validation when called using POSTMan
The simplest thing to do if you're sure of your case is to tell Sonar that what you have here is a false positive and that it should not be flagged. You might also be able to use a try with resources construct, making Sonar think the resource is being closed when in fact it is not (if Java handles it correctly, it shou...
I have this below code statement,this.watchService = FileSystems.getDefault().newWatchService();Sonar(sonarqube 5.6.4) raises a blocker issue in theFileSystems.getDefault()part of the above code, stating this,Resources should be closed - Java's garbage collection cannot be relied on to clean up everything. Specifical...
Sonar raises blocker issue on java FileSystems.getDefault()
ExploreKustomizewhich is a purely declarative approach and a template-free way to customize application configuration. You have a base config and then depending on environment you can create overlays to override the base config.https://github.com/kubernetes-sigs/kustomize/tree/master/examples/helloWorld
What is the best practice when one needs to have slightly different configs depending on whether it is being run locally or in the cloud?For example say that locally (e.g. minikube) I need to create a secret and use it to authenticate.But this authentication is not necessary when running in the cloud.One obvious way to...
Kubernetes best practice: different config for local or remote
Yes, Sonar can detectNullPointerExceptions (NPEs) thrown by the JVM by using the FindBugs tool under the hood. However, it cannotdo so dynamically at runtime, because FindBugs is astaticanalysis tool.From theFindBugs detectors, choose those with theNP_prefix in their key, such asNP_ALWAYS_NULL. There are roughly 30 suc...
I would like to ask can sonar find null pointer exception caused by java virtual machine at run time?? if yes please tell me which sonar rule do it for us. I am very much puzzled with it as there are some rules exist in sonar findbugs profile which say sonar catch null pointer exception. One of findbugs ruleAvoid Throw...
Can sonar catch null pointer exceptions caused by JVM Dynamically
I know it is a bit of an old post, but I was looking for the same and found that it is available now sinceGitLab 13.1.The text for a badge can be customized to differentiate between multiple coverage jobs that run in the same pipeline. Customize the badge text and width by adding the key_text=custom_text and key_width=...
As the standard pipeline badge from GitLab looks like thisyou can tell pretty well that those are not really distinguishable.Is there a way to change thepipelinetext manually or programmatically to something else for each badge?Btw, the badges were added with those linkshttps://gitlab.com/my-group/my-repository/badges/...
How to change pipeline badge name
This is a problem with the input - and maybe not a very clear error message.TheimagePullSecretsmust be specified using the keynamelike:imagePullSecrets: - name: docker-registry-secretI leave the question as it might help other people who run in the same problem.
I want to parse the following structure using go:--- prjA: user1: metadata: namespace: prj-ns spec: containers: - image: some-contaner:latest name: containerssh-client-image resources: limits: ephemeral-storage: 4Gi requests: ...
How to parse PodSpec.spec.imagePullSecrets from a yaml file?
Thanks for your comments @Jon Lin and @quasivivo , I found a solution to my problem, this is my htaccess:Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^portfolio/(.*)$ /portfolio/details.php?d=$1 [L,QSA,NC]and I also change my u...
Currently I have a urlwww.mysite.com/folder/details.php?d=sample.comand I want it to change like this onewww.mysite.com/folder/sample.comThis is my .htaccess file, but it is not working:RewriteEngine On RewriteRule ^([a-zA-Z0-9_-]+)$ details.php?d=$1 RewriteRule ^([a-zA-Z0-9_-]+)/$ details.php?d=$1I also tried this one...
Clean url mod_rewrite not working
You're sending url requests with a header which includes a port like:10080to an app hosted on the:80port. Using NAT, with port modification (PAT), but without correcting the port on the URL can be the source of your problems. To explain it with other words you are asking the router to talk to Mr Smith, and then the rou...
I have two applications hosted on different computers :An OData web site APP1 on PC1A basic MVC application APP2 on PC2My router (my.server.com) is configured to forward following request :*:10080 to PC1:80*:20080 to PC2:80I used Microsoft.OData.Client library to generate OData context and use it from MVC controller. A...
OData not working behind router with port address translation (port forwarding)
6 +50 Some of the preliminary questions that other users have suggested are cool, but have you considered being lazy and profiling your app? I can think of Ants profiler from Redgate or dotmemory from JetBrains, links below. http://www.red-...
We have an application that is running on 5 (server) nodes (16 cores, 128 GB Memory each) that loads almost 70 GB data on each machine. This application is distributed and serves concurrent clients, therefore, there is a lot of sockets usage. Similarly, for synchronization between multiple threads, there are a few syn...
OutOfMemoryException when a lot of memory is available
Those numbers you quoted are the default account limits. Lambda and API Gateway can handle more than that, but you have to send a request to Amazon to raise your account limits. If you are truly going to receive 1 million API requests per second then you should discuss it with an AWS account rep. Are you sure most of t...
we would like to create serverless architecture for our startup and we would like to support up to 1 million requests per second and 50 millions active users. How can we handle this use case with AWS architecture?Regarding to AWS documentation API Gateway can handle only 10K requests/s and lamda can process 1K invocati...
AWS API Gateway + Lamda - how to handle 1 million requests per second
11 There are several ways to resolve this type of error. Usually it is because your image resolution is too high on your layout. Here are your options: Ask for a lower resolution image (fewer pixels). That may not be acceptable, but your team should be conscious of memor...
while setting the content view I have got this exception. I have already tried to handle this exception by: try{ setContentView(R.layout.activity_main); }catch (OutOfMemoryError e) { e.printStackTrace(); } This exception came 5 out of 100 time approx while testing. but I am unable to resolve this is...
java.lang.outofmemoryerror android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
Good question! First, I would have a conversation with the (project maintainer / the person who will be accepting the pull requests) to find out what his or her preference is. Trust me, you want to make the maintainer's life easy, and make himconfidentthat you're doing The Right Thing. Making his pull request workflo...
I am contributing to a github project and find myself in a bit of a pickle.There is a new feature branch on the original repo that I will be actively submitting pull requests to. I would prefer not to have to continually submit pull requests then wait for the merge then delete my fork's branch and create new fork from ...
Git Workflow based on feature branches
This may have been updated since this was asked butserverless-appsync-pluginnow states:You can use serverless-appsync-offline to autostart an AppSync Emulator which depends on Serverless-AppSync-Plugin with DynamoDB and Lambda resolver supportWhich I believe is what you are looking for.
I have a general question about developing serverless applications andAWS AppSyncin particular. We're thinking about going serverless for a small project and I'm wondering how people generally set up their development environment when creating a "serverless" application.I've seen that theserverless frameworkprovides so...
How to develop serverless as a team with AWS AppSync?
1 I found what I was looking for. I generated a personal access token in Github with all the necessary permissions (initially I didn't give all the permissions I needed) and with the following structure I was able to download the zip from the master branch: curl -H "Authori...
I'm trying to download a private repository as .zip via cmd, I can do pull/push and create branches on this repository but i'm not sure if that makes me a collaborator, i was able to achieve this with a public repository like this curl -L -o master.zip http://github.com/zoul/Finch/zipball/master/ I also tried curl -u ...
how to download repository from Github where i'm not the owner
I was running into the sameInUseSubnetCannotBeDeletedissue when redeploying an unmodified ARM template, but I was able to resolve the issue by making two changes to the template.Move the subnet definitions from theresourceslist to thesubnetsproperty of the virtual network.Remove the subnets from thedependsOnlist of you...
I am trying to deploy a Azure Firewall using ARM templates. The template works fine during first deploy and creates a subnet (named AzureFirewallSubnet as required) in a existing virtual network as well as a Azure Firewall with a public IP. When trying to deploy the template a second time expecting the deployment to pa...
Subnet AzureFirewallSubnet is in use and cannot be deleted
To paste a multi-line bash code into terminal, add parenthesis around the lines otherwise each line gets run as a separate command as soon as it gets pasted:(df -h | nawk '/backup/ {print $5 " " $6}' | while read line; do usep=$(echo "$line" | nawk '{printf "%d", $1}') partition=$(echo $line | nawk '{print $...
I have written following script and it shows some unnecessary files when i'm running it. I just want to execute only the command and receive the alerts only. the script as followsdf -h | nawk '/backup/ {print $5 " " $6}' | while read line; do usep=$(echo $line | nawk '{printf "%d", $1}' ) parti...
Linux script shows unnecessary files
You can try running/usr/bin/clang --versionIf command line tools are installed, this should just report the version ofclanginstalled; otherwise, you'll be prompted to install Xcode + Command Line Tools. (This is just a simple way of ensuring command line tools indeed are installed)If you rundevtools::install_github("Re...
Trying devtools::install_github("Rexamine/stringi") and getting error: Could not find build tools necessary to build stringiI see several people have had this error but the solutions haven't worked for me. I reinstalled xcode because the command line tools seemed to be the problem for other people. Checked the path...
Error: "Could not find build tools necessary to build stringi" when trying devtools::install_github()
Folowing this issue, it seems pyenv installs Python without the Python shared library. You should try to add: reticulate::install_python() which wraps pyenv and set --enable-shared option or set the --enable-shared variable as suggested here
I create a Docker image based on rocker/shinyversewith the Dockerfile: # File: Dockerfile FROM rocker/shiny-verse:4.2.2 RUN echo "apt-get start" RUN apt-get update && apt-get install -y \ python3 \ python3-pip # install R packages RUN R -e "install.packages('remotes')" RUN R -e "install.packages('reticulate')" RUN ...
Problem with using Python via R's reticulate in Docker container
Update 2020: 8 years later, you would use GitHub Actions, like github/super-linter. I present that approach in "How to set up actions in GitHub for new user?". Original answer 2012 You could add a service on GitHub side (see "GitHub - All the Hooks", and the existing third-party services). But you cannot "push a hook...
Are there any premade solutions to enforce good Python standards in Git commit hooks? Are there way to automamize this process in local checkouts (akin Bazaar where one can push commit hooks to clients)? It should be enough that when you checkout a repo it would come with commit hooks installed, no further work / comm...
Enforcing PEP-8'ish formatting in Github commits
No, there isn't. And frankly, if you are using new or new[]. your C++ code is probably not well designed. Look at using std::vector instead of new[], and at using values instead of new.
I'm aware that there is a realloc function that would allow me to resize the memory block (and it's paired with a free function). However, I'm trying to do the same to a c++ class with some member pointers allocated memory using new instead of realloc. Is there an equivalent keyword to realloc in c++ that would allow ...
realloc function that would work for memory allocated using new instead of realloc
Running on (any recent version) of AKS you cannot use docker-in-docker (which is what you want to do here). See this article for the limitations that got introduced when AKS switched to containerd:https://learn.microsoft.com/en-us/azure/aks/cluster-configuration#containerd-limitationsdifferencesAs an alternative I sugg...
I recently spunthischart up on kubernetes. It has been archived. These are the changes I have made to get it to run:ImageChanged the image frommicrosoft/vsts-agenttomcr.microsoft.com/azure-pipelines/vsts-agentChanged the tags fromlatesttoubuntu-16.04-docker-17.12.0-ceLimitsReduced the limits from 4 CPU and 8Gbi to 1 an...
Unable to run VSTS Agents on Kubernetes using Azure Devops
Check the permissions on the directory /home/Foo/log/nginx/. It must be writable by nginx. Set permissions like so:sudo chmod 766 /home/Foo/log/nginx
The below is my nginx configuration file located in/etc/nginx/nginx.confuser Foo; worker_processes 1; error_log /home/Foo/log/nginx/error.log; pid /home/Foo/run/nginx.pid; events { worker_connections 1024; use epoll; } http { access_log /home/Foo/log/nginx/access.log; server { listen 80; ...
Nginx still try to open default error log file even though I set nginx config file while reloading
Amazon S3 now supports Index Documents The index document for a bucket can be set to something like index.html. When accessing the root of the site or a sub-directory containing a document of that name that document is returned. It is extremely easy to do using the aws cli: aws s3 website $MY_BUCKET_NAME --index-docum...
Is there a way to make S3 default to an index.html page? E.g.: My bucket object listing: /index.html /favicon.ico /images/logo.gif A call to www.example.com/index.html works great! But if one were to call www.example.com/ we'd either get a 403 or a REST object listing XML document depending on how bucket-level ACL ...
Is there a way to have index.html functionality with content hosted on S3?
This will poll at the top of each hour in the range you require..."0 0 0-10,20-23 * * *"ShareFollowansweredJul 7, 2015 at 12:51Gary RussellGary Russell171k1414 gold badges153153 silver badges182182 bronze badgesAdd a comment|
We have requirement to poll for file overnight eg 8pm tonight to next day morning 10AM. How this can be achieved using cron expression in spring integration poller?
spring integration poller with overnight cron expression
Assuming your github repos are both for the same codebase, you can add them both as remotes to your local repo:git remote add otherusersorigin http://github.com/user2/user2srepo.gitThen use that alias whenever you need it:git fetch otherusersorigin git push otherusersoriginTo do this with no authentication prompt, set ...
Let's say I'muser1and I have a Github account athttp://github.com/user1. Naturally, I'd set up git locally as so:origin[email protected]:user1/repo.git (fetch) origin[email protected]:user1/repo.git (push)What would I do if I have fetch & push permissions to someone else's repo (let's sayuser2) whose repo is located at...
Set up git to push to another user's Github repo?
Just use the following cron: @Scheduled(cron = "0 0/15 * * * *") Spring cron expression syntax slightly differs from unix cron expression. One immediate difference - it supports 1 less field (6 rather than 7).
I tried to use cron expression from this site http://www.cronmaker.com/ @Scheduled(cron = "0 0/15 * 1/1 * ? *") public void clearRps() { } But it throws: java.lang.IllegalStateException: Encountered invalid @Scheduled method 'clearRps': Cron expression must consist of 6 fields (found 7 in "0 0/15 * 1/1 *...
Spring execute method every 15 minutes
There are multiplevalidation typesof X.509 certificates. Those specify which informations are part of the certificate (and thus validated by the CA issuing the certificate).Domain Validated (DV): The subject of those certificates contains exactly one value: The domain. Those are very common these days, since that's wha...
I want to be able to look up a website and provide the registered organization for that website. For example get_company("google.com") -> Google LLC. However, some websites that are signed and display their certificates correctly when opened in chrome don't work. For example "microsoft.com" is one that doesn't work. H...
Cannot extract certificate organization on some urls
I think you are looking for the Time class.SeeTimer Class APIYou can use this class like:You want to perform a Method every 600 miliseconds. You write:ActionListener taskPerformer = new ActionListener() { @Override public void actionPerformed(ActionEvent evt) { //Do you...
Is there any way to write a program in java, so that its main method schedule (or at a 10-15 min interval) another method to executes it at a particular interval?
How do I execute a method at a particular time in java?
I unpacked the chart and looked at it's defaultvalues.yml. It seems that IBM/HCL doesn't follow the Helm template, which allow configuring https in almost any charts usingingress.tls.The only possible way seems to be manually modifying our ingress ressources like this:kubectl edit ing cnx-ingress-orient-meReplace*by a ...
TheComponent Pack documentationuses http for the connection from IHS to the Kubernetes backend. This is not up-to-date any more, so I'd like to use https for those backend connection as well as in IHS like this:User <----- https -----> IHS <----- https -----> K8S BackendFollowing HCLs documentation, we just gotUser <--...
Use https with HCL Connections Component Pack 6.5 from IHS to K8S
I think you can just start doing that and see. For me, if I had to use this, I would choose a different mount path, just to isolate the local environment.RUN --mount=type=cache,target=/Users/me/Library/Caches go mod downloadI don't see any problem mounting downloaded packages. In thisexample, it is used forapt.However,...
I've readarticlesin which it is advised to have a dedicatedgo mod downloadlayer for downloading go dependencies. I understand that the layer is cached and if the dependencies don't change in the next build, the cached layer will be used, saving us time. I've also noticed that using BuildKit mounting feature, thego buil...
Caching Go Depencencies in Docker
Do the below steps, provided that you do not have entry ofclientfolder in your.gitignorefile.1. git add . // it is dot(.) actually 2. git commit -m "you commit message" 3. git pull origin your_branch_name //If multiple people pushing to repo otherwise you can skip this step 4. git push origin your_branch_nameShareFo...
This question already has answers here:Git: fatal: Pathspec is in submodule(6 answers)Closed4 years ago.The deal is: I've got a nodejs server in the root folder. There is also a git repo in the same place. Also I have a create-react-app in the folder of "client". The structure looks like this:/client server.js pa...
Pushing a react client into a repo [duplicate]
You have autoAcceptChanges where you can define flag or branch name - uses: chromaui/action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} projectToken: 'Your chromatic project token' buildScriptName: 'The npm script that builds your Storybook [build-storybook]' storybookBuildDir: 'Provide a directory w...
In Chromatic github workflow, how can I accept all changes automatically using the CLI option --auto-accept-changes if the branch is main? I am using the following github chromatic workflow to deploy the components of my app in chromatic: # .github/workflows/chromatic.yml # Workflow name name: 'Chromatic' # Event fo...
How to auto accept changes in chromatic github workflow for main branch?
Are you using boto3 to access the AWS resources? If so, it sounds like moto is perfect for what you need https://github.com/spulec/moto
I am looking for ways to test AWS services without actually using AWS cloud. Python is the language of choice. Using some mock components which will let me test my code which uses AWS S3, Redshift, Lambda, Dynamodb etc So far I have found, Localstack (This supports most of the AWS services) Minio - This one supports ...
Mock AWS services for testing
If I'm understanding you correctly, you have a device driver that's behaving poorly, and you're trying to work around that by manually allocating physical RAM from userspace? Is there a reason you're not interested in fixing the driver instead? This sounds like a very odd request, not something that would be considere...
I want to create some memory to use for DMA transfers. (Using Linux 2.6.18-128.el5 #1 SMP) I have a API stack+kernel driver for my H/W that can do this for me, but its very very slow! If I use the API to create a DMA transfer, it allocates some memory very high up in System RAM (eg 0x7373a6f8 on one run). (I have the ...
Creating physical memory from user space to use for DMA transfers
The following worked for me:edit C:/Users/Username/.docker/machine/default/config.jsonadd the registry :"InsecureRegistry": ["x.x.x.x:port"]restart docker (see comment below)*restart windows(there must be a better way ;-)docker login x.x.x.x:port
I want to add an insecure-registry for testing purposes on a Windows 10 machine for Docker. Unfortunately I was not able to find any information where the usual/etc/docker/defaultconfig file is located on Windows.The error you get when trying to pull from an insecure registry without adding it to the options is:Failed ...
Docker config file location on windows to, e.g., enable insecure registry / docker options
0 This is a Webstorm IDE function, not a functionality of git. You want Webstorm to store your git password: To configure the password policy Open the IDE Settings, then clickPasswords. On the Passwords page that opens, specify how you want WebStorm to process passwords f...
I have installed git and added github as remote repo for my projects, I have been using it for couple of months now either from git bash or "github for window" client(or the power shell that came along with it). It's all working fine, but now I have just started using webstorm IDE, which has it's own terminal inside I...
configure github to work with multiple terminal
Check the web server's configuration (httpd.conf) forAllowOverride Noneas it disables reading of .htaccess for the directories it applies to. It is often done to increase performance.ShareFollowansweredDec 21, 2013 at 15:02BrianBrian6,97922 gold badges2525 silver badges3333 bronze badges1Yes, that was it, found it befo...
I want to block a fileconfig.jsonfrom access, so I put.htaccessfile like this:RewriteEngine on RewriteRule config.json - [F]In directory~/projects/bushbut when I accesslocalhost/projects/bush/config.jsonI still see the content of the file, what wrongs here?
Can't block access to a file using htaccess
While there is a -exec command built intofind, it is difficult to use (seeWhy does find -exec mv {} ./target/ + not work ? (on cygwin)).What you are looking for is this pipe command:find . -maxdepth 1 -type d -regex '\./[^.]*$' | cut -c 3-Anytime thefindcommand output something, thecuts happen.
For example, I have a code can find me the directory name in the current folder without . in the front:find . -maxdepth 1 -type d -regex '\./[^.]*$'However, it gives me./Templates ./eclipse-workspace ./Public ./Documents ./VirtualBox VMs ./Videos ./CLionProjects ./jd2I need to dodu -shfor each line of them sequentially...
How to pipeline in a line by line fashion in ubuntu
You could have the cron job email you an authorization link a day or two before the token expires. Usingexchange_tokenyou can get a 60-day token, so you only have to re-authorize it every other month.
I have to automatic post on my facebook page wall. So far so good... but the access token keep expire. I did the automatic post with my App and with the Graph Explore and I have the same problem with both.To post on facebook wall, I create a Cron job on my server, but after some hours the access token expire and I have...
Automatic facebook wall post, access token keep expire
You might want to try setting up the memory parameters for your JVM. See:https://community.oracle.com/thread/2600343Assuming your machine have enough RAM. Do the errors occur when you start the server or when you try to access a UI console (such as /em)?
My weblogic application server crashing at startup. Today I installed Oracle DB12c database, WEBLOGIC 10.3.6, RCU 11.1.1.6 and SOA generic 11. I created an empty weblogic soa domain, runnedsetSOADomainEnv.cmdthanstartWeblogic.cmdbut weblogic throws me tons of warning and exceptions like :java.lang.OutOfMemoryError: GC ...
Freshly installed weblogic with rcu and soa crashing
The problemMicrok8s was not having access to docker. I found out about it by runningmicrok8s.inspectand getting theWARNING: Docker is installed. File "/etc/docker/daemon.json" does not exist. You should create it and add the following lines: { "insecure-registries" : ["localhost:32000"] } and then restart do...
I'm running a KubernetesPodOperator with a custome docker image that was imported with microk8s. When running the DAG in airflow I see the following log until I get the time out messageAirflowException('Pod Launching failed: {error}'.format(error=ex))[2020-04-14 23:06:39,875] {logging_mixin.py:95} INFO - [[34m2020-04-1...
Airflow KubernetesPodOperator AirflowException('Pod Launching failed: {error}'.format(error=ex))
The problem was that I updatedminikubewithoutminikube delete. Afterminikube deleteandminikube startthe DNS service is getting the IP address10.96.0.10the same as is set in the pod's/etc/resolve.conf.
I have faced an issue with resolving services host between with kubernetes on minikube. So from the inside the pod I cannotwget web-server:8081/endpoint. But I can access the same server directly by IP address like thiswget 10.0.0.81:8081/endpoint.After troubleshooting the issue I have found that inside of the pod/etc...
Kuebrnetes pods get wrong DNS nameserver IP address on minikube
For your Rails app, Elastic Beanstalk is going to be very similar to Heroku. I would suggest using Elastic Beanstalk if you are already familiar with a PaaS like Heroku. It's probably going to be a bit more difficult to configure at first (there are just a lot more options you can configure), but then it will be a very...
From what i've gathered, there are many solutions to my problem but i'd appreciate some suggestions on where to start. here's the stack we're running on heroku currently:Rails on pumamongoDBelasticsearchredismini_magickWhat goes into the decision of using Elastic Beanstalk vs OpsWorks vs CloudFormation vs just setting ...
Heroku to AWS Migration Advice
This is expected. TheTreeEntryobject: GitObjectdoes not expose commit information. Rather, it returns aBlobtype (for file objects) orTreetype (for directory paths). How do we know this? The documentation forobject("Entry file object") provides a vague hint, but we can be sure by introspecting the GraphQL__typename...
I'm new to the GraphQL API for Github. I'm trying to get the commit message and pushedAt date on each file, which you typically see on the root webpage of any github repo showing all the files for the branch (e.g.https://github.com/Alamofire/Alamofire)..github Updates for Xcode 13.3 (#3576) 3 days ...
Getting commit data on File list Github GraphQL API
In reality these variables are available just when you overwrite the Author Name and Author Email on the Advanced features of the SCM configuration."Additional Behaviours"->"Custom user name/email address"This is described on the source code:https://github.com/jenkinsci/git-plugin/tree/master/src/main/java/hudson/plugi...
If I understand well, git plugin exposes committer and author names and emails to environmental variablesGIT_AUTHOR_NAME,GIT_COMMITTER_NAME,GIT_AUTHOR_EMAILandGIT_COMMITTER_EMAILbased on the global configuration of git. Is there a way to get that info using Github-plugin? Does Github-plugin exposes payload info, gettin...
Github-plugin for Jenkins get committer and author name
To convert/?item=2to/2You can use this rule :RewriteEngine on #1) externally redirect the request "/?item=numbers" to "/numbers" RewriteCond %{THE_REQUEST} /\?item=([^\s]+) [NC] RewriteRule ^ /%1? [L,R] #2) internally rewrite "/numbers" back to "/?item=numbers" RewriteRule ^([0-9]+)/?$ /?item=$1 [L]
I would like to remove "?item=" from an URL.So, fromdomain.com/?item=2Todomain.com/2How to simply remove question mark, key and equal sign?
mod_rewrite remove ?item=
Look in the Apache Hive documents for the details of each type of Serializer/Deserializer. E.g. for the OpenCSVSerde:https://hive.apache.org/javadocs/r2.1.1/api/org/apache/hadoop/hive/serde2/OpenCSVSerde.htmlBased on my rudimentary understanding of Java, I think you can set four parameters:LOGSEPARATORCHARQUOTECHARESCA...
Hereis a link to descriptionSerDeInfoparameter. They definedparametersas map, but what key and value they expect? There are some examples like:"SerdeInfo": { "SerializationLibrary": "org.apache.hadoop.hive.serde2.OpenCSVSerde", "Parameters": { "field.delim": ",", "serialization.format": "1" } },But what f...
What is the full parameters list for SerDeInfo in aws glue?
It's taking the time to setup the environment that allows your code to run. I had the same issue, contacted the AWS GLUE team and they were helpful. The reason it takes a long time is that GLUE builds an environment when you run the first job (which stays alive for 1 hours) if you run the same script twice or any othe...
I just run a very simple job as follows glueContext = GlueContext(SparkContext.getOrCreate()) l_table = glueContext.create_dynamic_frame.from_catalog( database="gluecatalog", table_name="fctable") l_table = l_table.drop_fields(['seq','partition_0','partition_1','partition_2','partition_3'])....
AWS Glue takes a long time to finish
SQL server projects are currently not supported by theSonarQube Scanner for MSBuild. You can track progress on this via ticketSONARMSBRU-243.
We have an active SonarQube Version 6.0 installation that is inspecting numerous C# projects e.g. those with a .csproj extension. If the .csproj contains a sql file then this file will be inspected.In a new solution we have a mixture of .csproj, .dtproj and .sqlproj projects. Only the .csproj projects are being inspect...
SonarQube support for .sqlproj and .dtproj
A pull request being made of whole commits, you need to split this commit into two separate commits one containing the change to put in the pull request, and the other holding the other changes. To do this you needgit rebase -i, see for exampleHow can I split up a Git commit buried in history?for a good explanation on ...
I have a repository that is forked fromGitHubthat has a few modifications made to it. However, in a certain commit, a few files were changed that I want to submit a pull-request for, leaving the other modified files out of the request.Do pull requests mergeallcommits, or do I need to do something special to isolate thi...
Pull-Request for only certain files/commits
0 Adding the following to build.sbt should resolve the issue: javaOptions in Universal ++= Seq("-Dpidfile.path=/dev/null") Share Improve this answer Follow answered Jan 28, 2020 at 12:49 ...
Im running a Play Framework app on AWS Beanstalk with Docker (64bit Amazon Linux 2015.03 v1.4.1 running Docker 1.6.0). Docker File: FROM relateiq/oracle-java8 MAINTAINER XXXX EXPOSE 9000 ADD files / WORKDIR /opt/docker RUN ["chown", "-R", "daemon", "."] RUN ["chmod", "+x", "bin/app"] USER daemon ENTRYPOINT ["bin/app"]...
Error deploying Play Framework on AWS Beanstalk Docker
During the interactive rebase I had changed the commit message... but I hadn't changed the first column ('action') frompicktoreword(or justrfor short).Doing this made the change get applied correctly.
I did a push of my latest changesgit push origin masterthen I amended the commit message with an interactive rebase, i.e.git rebase -i HEAD~5and changed the message in the last commit.This saved successfully, but when I did agit push origin masterit just saysEverything up-to-date.Now the git history doesn't show the wo...
Why does my git interactive rebase change for the last commit message then show Everything up-to-date when I do a push?
In order to match specific query string youhaveto usemod_rewrite. Please check if it is installed/allowed on your host. The rule in this case will be something like this:# most likely be required for rewrite rules to function properly Options +FollowSymLinks +SymLinksIfOwnerMatch # Activate Rewrite Engine RewriteEngin...
I want to redirect index.php?action=this&id=1 to index.php?action=this&id=2I tried the code below in my .htaccess but it didn't helpredirect 301 index.php?action=this&id=1 http://mysite.com/index.php?action=this&id=2What am i doing wrong here? what could be a workaround?
htaccess redirect not working with URLs with parameters
SonarQube Scanner for MSBuild considers projects invalid if they don't contain a project guid property<ProjectGuid>{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}</ProjectGuid>(or if it is equal to Guid.Empty) and are not included in a solution. To resolve this you should ensure you have uniqueProjectGuidin each project.The ana...
I'm running Sonarqube Scanner for MSBuild from Jenkins.The projects are in VS2013 but I'm building it with MSBuild 14.The build is successful but only a few files are being scanned (10)On the Sonarqube scanner log if war able to find a huge list of project flagged as "Invalid projects", I'm not sure why is that happeni...
Running sonar Qube scanner project are marked as invalid
GitHub has aSecret Scanning Partner Programthat organizations can join. They provide a pattern to GitHub and if a string matching it is found GitHub will automatically alert the partner.I don't believe GitHub publishes a list of partners, but I would presume Stripe is a member of that program.
I recently moved some of my repositories from AWS Code Commit to GitHub. I accidentally made one of the repositories public, instead of private. Within less than 10 mins of committing the code, I got an email from Stripe that my secret key is publicly accessible, and it included the exact file/code line which has the k...
How does Stripe know my secret key is leaked?
Set the cron tab using php -n [path_to_your_script]flag 'n' tells php to ignore the php.ini file settings.
I have a PHP script running every hour or so. The script does a long process which is expected to be more than 2 hours. But my PHP is timing out every 60 seconds. I have usedset_time_limit(0);but this is not allowed in safe mode i guess. So could you guys please tell me how to have infinite execution time without reall...
Dealing with PHP timeouts in Cron when PHP is in safe mode
The best way to handle this in a generic way is to have a shared database that you write a "lock" entry to. As in, let's say all tasks wrote a DB entry such as{instanceId: "a", taskId: "myTask", timestamp: "2021-12-22:10:35"}.All tasks would submit the same thing except with their own instanceId. You then have an uniqu...
I'm building in a CRON like module into my service (usingnode-schedule) that will get required into each instance of my multi-core setup and I'm wondering since they are all running their own threads and they are all scheduled to run at the same time, will they get called for every single thread or just once because th...
CRON + Nodejs + multiple cores => behaviour?
The answer is YES, all Ignite APIs are thread safe and can be used concurrently from multiple threads.However, doing individual puts is not effective way to do data loading, there are better techniques for this. Please refer to this page for details:https://apacheignite.readme.io/docs/data-loading
I have plans to load cache concurrently from multiple threads. The simplest form of this would be:IgniteCache<Integer, Integer> cache = ignite.getOrCreateCache("ints"); ExecutorService es = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()); for (int i = 0; i < 20000000; i++) { int t = i; ...
Is ignite cache thread safe?