Quantcast
Channel: User Shravan Ramamurthy - Stack Overflow
Browsing latest articles
Browse All 53 View Live

Comment by Shravan Ramamurthy on Unable to update java 1.8 as i have 1.9 also...

I am using MAC version 10.11.6 EI Captain

View Article



Comment by Shravan Ramamurthy on Java Protobuff java.lang.VerifyError

Yes that was the issue. The consumer of protobuf was expecting 2.4.0 , but the actual classes were generated out of 2.5.0

View Article

Comment by Shravan Ramamurthy on How do i skip the license check when running...

This goal is defined in the parent pom, I thought it would be nice if i can disable the check in the maven command itself, instead of changing in parent pom

View Article

Comment by Shravan Ramamurthy on Intermittent and continuous...

Consider using the comments section add a comment for the followup questions or edit the post. Please avoid adding these to post answer

View Article

Comment by Shravan Ramamurthy on Why does the value of the hidden input filed...

Share the code as part of the question itself. Avoid posting the code in the comment section. Once you copy the code, format the code using the "{ }" (Code sample) option in the editor

View Article


Comment by Shravan Ramamurthy on Using enum, Error:...

Corrected the typo mistakes

View Article

Comment by Shravan Ramamurthy on How do I retrieve all the reviewers in the...

I tried context.github.pullRequests.listReviewRequests(context.issue‌​());, but this will give reviewers added during PR creation. How do I get all the reviewers (added during PR creation,...

View Article

Comment by Shravan Ramamurthy on Unable to run rubocop with ruby version...

No, I haven't. Where do I find .rubocop.yml? or do I need to create one?

View Article


Comment by Shravan Ramamurthy on How can I avoid "Zip end of central...

I am not using Heroku but running into this issue locally. The root cause of the issue seems to be file names (in the zip) without the extensions.

View Article


Comment by Shravan Ramamurthy on Using ruby Octokit, how do I return all the...

Currently I am doing that, but it is causing the application to run slow. So, I am looking for the alternate approach to improve the performance.

View Article

Comment by Shravan Ramamurthy on Probot: How to use probot without proxy?

All the solutions in the above url require proxies, maybe you can try installing smee proxy of your own or GitHub actions.

View Article

Can you exclude a source file from CPD check?

I am using the maven-pmd-plugin in my project. When I build the project, I am getting duplicate (due to java constructor code) code error during cpd-check. How do I exclude specific java files from...

View Article

Answer by Shravan Ramamurthy for Probot : Octokit baseUrl overriding

Setting the below property in the .env file of my probot resolved the issue. GHE_HOST=<<my GitHub enterprise url>>

View Article


How to retrieve the PR number in nodejs github probot listening on...

I have created a GitHub probot app using nodejs and typescript. I am listening on pull_request event. How do I retrieve pr_number from the probot context object? following is the code in intex.ts...

View Article

Answer by Shravan Ramamurthy for Best way to extract last segment of URI in Ruby

If the value is any orbitary string + URI, then the below solution should work. First, extract URI from the string: uri_string = URI.extract("Test 123 http://www.somesite.com/abc") Above command...

View Article


Answer by Shravan Ramamurthy for Unable to run rubocop with ruby version...

Creating a ruboco.yml in the project root directory and adding the below line fixed the issue. Ref AllCops: TargetRubyVersion: 2.5.0

View Article

Answer by Shravan Ramamurthy for Read a file from github

With the below code, I was able to read the content of the file. require 'open-uri' raw_url = "https://raw.githubusercontent.com/username/myrepo/master/Gemfile" open(raw_url) {|f| f.each_line {|line| p...

View Article


Answer by Shravan Ramamurthy for Reading files in a zip archive, without...

I came across the same issue and checking for if entry.file?, before entry.get_input_stream.read, resolved the issue. require 'zip' Zip::File.open('my_zip.zip') do |zip_file| # Handle entries one by...

View Article

Answer by Shravan Ramamurthy for How do I update the password for Git?

running git config --global --unset user.password followed by any git command would prompt you to enter username and password. git config --global --unset user.password git push (will prompt you for...

View Article

Answer by Shravan Ramamurthy for Regex select all text between tags

use the below pattern to get content between element. Replace [tag] with the actual element you wish to extract the content from. <[tag]>(.+?)</[tag]> Sometime tags will have attributes,...

View Article

Answer by Shravan Ramamurthy for Using ruby Octokit, how do I return all the...

I found the following alternate option, Octokit.GitHubClient.list_issues. Please refer to this link for more detail. example: Octokit.GitHubClient.list_issues(REPO, state: state, since: DateTime.now -...

View Article


Answer by Shravan Ramamurthy for Calculating the difference between two Java...

Note: startDate and endDates are -> java.util.Date import org.joda.time.Duration; import org.joda.time.Interval; // Use .getTime() unless it is a joda DateTime object Interval interval = new...

View Article


Comment by Shravan Ramamurthy on After installing JDK9 my eclipse stopped...

the other option is to add the below vm argument to eclipse.ini file "-vm /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/‌​Home/bin"

View Article

Answer by Shravan Ramamurthy for How to update a forked git repo?

Recently, I updated my forked repo following this URL. This URL explains updating the forked repo using web UI as well as terminal.

View Article

Answer by Shravan Ramamurthy for getting "peer not authenticated" exceptions...

Apparently, setting the below property in core-site.xml resolved the issue. This will disable the SSL connection while connecting to Amazon S3. Ref: For more details, check out General S3A Client...

View Article


getting "peer not authenticated" exceptions connecting to S3 from CDH Hadoop...

I am trying to run a hadoop job on a Hadoop CDH cluster, and getting below error when the Hadoop Job tries to read data from S3 bucket. Looks like it is trying to connect through SSL. Is there any way...

View Article

Comment by Shravan Ramamurthy on `Gem::Ext::BuildError: ERROR: Failed to...

I did but got the following error. ERROR: Error installing jaro_winkler: ERROR: Failed to build gem native extension.

View Article

Answer by Shravan Ramamurthy for `Gem::Ext::BuildError: ERROR: Failed to...

Adding RUN apk update && apk add --virtual build-dependencies build-base to the docker file and then running bundle install resolved the issue.# below line is just an example, and it might not...

View Article

Answer by Shravan Ramamurthy for How to print out all the elements of a List...

It depends on what type of objects stored in the List, and whether it has implementation for toString() method. System.out.println(list) should print all the standard java object types (String, Long,...

View Article



Image may be NSFW.
Clik here to view.

Answer by Shravan Ramamurthy for Java: error: release version 13 not supported

I encountered the same error in IntelliJ, Above solutions didn't work for me, as I am using maven 3.6.3 in my project. Setting the proper jdk version (in my case, JDK-1.8) under maven profiles tool...

View Article

Answer by Shravan Ramamurthy for PL/SQL, how to escape single quote in a string?

EXECUTE IMMEDIATE 'insert into MY_TBL (Col) values(''ER0002'')'; worked for me.closing the varchar/string with two pairs of single quotes did the trick. Other option could be to use using keyword,...

View Article

Answer by Shravan Ramamurthy for expected assignment or function call:...

I encountered the same error, with the below code. return this.state.employees.map((employee) => {<option value={employee.id}> {employee.name}</option> });Above issue got resolved, when...

View Article

Google IntelliJ java style: changing 2-space indentation to 4-space indentation

I have installed google-java-format plugin for IntelliJ and I have enabled the plugin. When I format the code, my java code gets indented by 2 spaces. How do i change the google java formatter plugin...

View Article


How to combine sec:authorize and th:if in thymeleaf

How to combine sec:authorize and th:if in thymeleaf?<div class="form-group" sec:authorize="hasRole('ADMIN')" th:if="${myObjct.name!=null}"></div>basically i need to combine...

View Article

Answer by Shravan Ramamurthy for Hamcrest compare collections

To compare two lists with the order preserved (strict order) use.assertThat(actualList, contains("item1","item2"));If we want to compare without a specific order we can use below...

View Article

Answer by Shravan Ramamurthy for Intellij shortcut to convert code to upper...

Select the text/word/line to be modified and hitting Cntrl+Shift+U or Command+Shift+U` (MAC) works. Please look here for more detail

View Article


Answer by Shravan Ramamurthy for Spring Cloud Feign...

I encountered the same error recently, with spring boot 2.0.3.RELEASE.When I added openfeign dependency first, without the version, I found that Maven was not pulling down the dependency (not sure...

View Article


--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article
Browsing latest articles
Browse All 53 View Live


Latest Images