Posts by eduardosouza • 111 points
8 posts
-
1
votes1
answer1007
viewsA: How to validate the download of files using Selenium Webdriver?
There are several ways to validate whether the file is intact. One way to validate is to take the checksum CRC32 of the file BEFORE and validate the file you downloaded and compare the values. On…
-
1
votes4
answers1131
viewsA: Answer calculations like Nan
That code of yours var valor = parseFloat(value.replace("R$","").replace(",",".")); gives problem when user type R$ 1,400,00 because it will turn your number into 1,400.00 that Javascript considers…
javascriptanswered eduardosouza 111 -
1
votes1
answer842
viewsA: How to change the message from a commit sent to the remote repository
As it was put in the comments, the drastic solution would be for you to reset to the immediately previous commit with the command: git reset --hard <commit> git push --force But remember: ALL…
gitanswered eduardosouza 111 -
1
votes1
answer111
viewsQ: How to reconcile good Object Orientation practices and ORM frameworks for getters and setters?
In many of the systems I have worked on or had contact with, the class representing a model is usually a POJO, which we map your attributes for columns (for relational banks) or attributes (for some…
-
1
votes2
answers122
viewsA: How to safely store AWS credentials in a Java application?
You can use an approach that does not rely on Amazon AWS credentials directly in your code, but uses a credential that you generate. Create a unique token for each customer. This token will be used…
-
1
votes1
answer287
viewsA: How to Scrapping a page that has a javascript’s using python ?
I usually use Selenium to make webscrapping on sites that have a lot of javascript. Normally, I use Selenium with Java, but in Python it works too. Below, a code with a silly but functional example.…
-
1
votes1
answer57
viewsA: Jsoup element without id
With Jsoup, the search for elements does not need to be exclusively by Id. You can also search for CSS Selectors. So: Elements elements = document.select("#main > div > div.conteudo >…
jsoupanswered eduardosouza 111 -
4
votes2
answers465
viewsA: Go up to Bitbucket an already created branch
You need to get the public key from your computer, which is usually on /home/<user>/.ssh/id_rsa.pub and add it to your bitbucket settings. In your Bitbucket account, go to Bitbucket Settings…