Posts by Wellington Avelino • 2,844 points
68 posts
- 
		1 votes1 answer243 viewsA: Assertion with the RspecFrom what I understand you are trying to reuse the Steps, you need to know if when the Sponse comes back it will have several objects inside it. This here: Then(^Returnered message "(.*?)"$/) do… 
- 
		0 votes1 answer477 viewsA: Back function to go back on an Android device from Perfecto LabFala Ivo, It’s not much of a secret, but I believe you need to separate the responsibilities. In your code you are using capabilities as the orchestrator of your tests, it should only set the… 
- 
		0 votes1 answer1605 viewsA: WARNING: You must use ANSICON 1.31 or HigherTranslated from the original answer: https://stackoverflow.com/a/4749307/3861347 Download the Ansicon software https://github.com/adoxa/ansicon/downloads, unpack inside a directory with no spaces.… 
- 
		0 votes3 answers1366 viewsA: How to install an APK remotely? (how Googleplay updates apps)You don’t need to do anything specific to this, the update notification is Google Play’s responsibility. You need to just climb your new apk and change the versionCode of it in the manifest. Edit… androidanswered Wellington Avelino 2,844
- 
		0 votes1 answer407 viewsA: How to nest step Definitions within another using CucumberThe example below serves to nest several Teps and repeat how many times you arrive via parameter. Dado /^escolho a letra (.*) $/ do |letter| @page.do_someting letter end Dado /^entro com a letra… 
- 
		0 votes4 answers1365 viewsA: Find out the type of variable in ruby on Railsirb(main):006:0> Integer = 1 (irb):6: warning: already initialized constant Integer => 1 irb(main):007:0> 1.class => Fixnum This would be a way to find out the type of the variable.… 
- 
		2 votes1 answer72 viewsA: How to view Questions recovered from a DAO on the same JSF pageI don’t know how you want to display these questions on the screen, could be on Grid, Lista and N ways. You could leave a validation in your .xhtml: Inside this Voce form you can retrieve your… 
- 
		6 votes1 answer566 viewsQ: Consuming Webservice with large data volumeI have a demand where I need to import a file JSON with 65k of records for my app Android,after calling my service URL REST the app starts importing the data but crashes after some time, I would… 
- 
		1 votes1 answer555 viewsA: Problem with Primefaces autocompleteTechies, Separates the dialog that you need in another form, and only update it when you need it while maintaining the state of the rest of the page, it would look something like: <h:form… 
- 
		21 votes1 answer6034 viewsQ: What is the storage limit for Sqlite?A new demand for the application of the company where I work, I need to store more than 100k of records in different tables, I’m worried if the Sqlite will withstand such demand, my question is:… 
- 
		3 votes1 answer606 viewsA: How to configure Apache Log4j to write to the Bank through Hibernate?Tiago Ferezin Recording LOG4J1 logs in a table: log4j.rootLogger = INFO, DB # Define the DB appender log4j.appender.DB=org.apache.log4j.jdbc.JDBCAppender # Set JDBC Options… 
- 
		1 votes1 answer1696 viewsA: How to configure Tomcat in windows 7?Old programmer, To set up Tomcat in windows environment follow these steps: Download tomcat 7 Download Java+ JDK (if you will develop) Java configuration The installation of Java does not have much… 
- 
		7 votes1 answer341 viewsA: Mobile multiplatform developmentNilsonuehara, There are several options to perform mobile multiplatform development: Phonegap Ionic Intel XDK Apache Cordova You can use for development on these platforms: HTML Angular CSS Jquery… 
- 
		32 votes2 answers1853 viewsQ: What is agent-oriented programming?We have some well-known programming paradigms, but I faced this paradigm and I had some doubts: Where it is applied? Is there any example of where it has been used successfully? What is the… paradigmsasked Wellington Avelino 2,844
- 
		12 votes5 answers7270 viewsA: What is the difference between a "branch" and a "tag"?Branch: A branch of its main "tree" of development, usually created to generate corrections or new implementations, when this branch arrives at the end we can make a Merge for the main branch of… 
- 
		0 votes6 answers8471 viewsA: Do not open keyboard automatically when on screen with EdittextUse these attributes in your XML where this Edittext is, I could only use putting these attributes inside a Linearlayout as below: <LinearLayout android:focusable="true"… androidanswered Wellington Avelino 2,844
- 
		3 votes3 answers458 viewsA: How do I list all the files not added (untracked files) in GIT?You can view the files that have been modified by the command: git status This command displays modified files and files that will be added to the repository. Untracked untracked shows only files… gitanswered Wellington Avelino 2,844
- 
		5 votes1 answer1579 viewsA: Problem with log4j configurationDuds Examples of log4j 1 and 2 configuration. There is the possibility to do only via Java code, if it is of interest to you. log4j1 must be in the file log4j.properties inside the briefcase WEB-INF… 
- 
		1 votes2 answers971 viewsA: Problems using the Edittext.setError() methodI changed my answer, according to your edition final EditText txtNome = (EditText) findViewById(R.id.txtHint); txtNome.setOnEditorActionListener(new EditText.OnEditorActionListener() { @Override… androidanswered Wellington Avelino 2,844
- 
		0 votes2 answers766 viewsA: Search randomly in listview through editext on android?Wilfer, I did something similar to this these days, it’s a filter that lets you search by typing inside an Edittext. This method you add inside your Adapter. public Filter getFilter() { Filter… 
- 
		7 votes3 answers533 viewsA: Pure Java and Android AppThe development Android, allows you to "drag" the components to the screen, I particularly do not like to do this,but the development of screens on android is very intuitive. How to use my knowledge… 
- 
		1 votes2 answers312 viewsA: Programming for Android with multiple screensGabriel We have some ways available to perform this manipulation of layouts on different devices. Drawable Offers the following sizes ldpi (low) ~120dpi mdpi (medium) ~160dpi hdpi (high) ~240dpi… 
- 
		2 votes2 answers810 viewsA: How to display attributes of an object passed in a list in a JSP pageGabriel Polo, passes the class of your controller on forEach <c:forEach var="analista" items="${"classe do seu model".listAnalistas}" varStatus="status"> <a>Nome do analista: <c:out… 
- 
		8 votes2 answers5827 viewsA: How to set up proxy in Android Studio?I was able to perform the configuration of proxy through the following steps: In Android Studio navigate to : File > Settings > System Settings > HTTP Proxy Inside this menu check the… 
- 
		6 votes2 answers5827 viewsQ: How to set up proxy in Android Studio?Company where I work adhered to the use of proxy and I’m having problems using the gradle. Gradle returns the following error : Error:Connection timed out: connect. If you are Behind an HTTP proxy,… 
- 
		4 votes2 answers450 viewsA: Error including CSS/JS in the head of a JSF pageYou can add CSS or Javascript like this: <link rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/resources/css/bootstrap.css" /> More about Facescontext Faces Context… 
- 
		7 votes2 answers1109 viewsA: Change the Label color of a chart in PrimefacesChanging the color of the colors We need to access the options of jqplot via Avascript, add to your page or screen Avascript: Note: Ground the X axis and the Y axis function alterarTextoLabel() {… 
- 
		7 votes2 answers599 viewsA: What are the names of the Tabs (Tabs) that are being used in the new apps?This is called TabLayout, after Google released the Android 5.0 as ActionBar remained deprecated follows below example of how to implement withdrawn from here. Tab Layout, need to add support… androidanswered Wellington Avelino 2,844
- 
		1 votes1 answer957 viewsA: How to put the default android Styles e.g. edittext spinner etcIf this image you posted is related to your project, possibly it should be overwriting your layout, you could create a file to define the Shape you want, follow example : <?xml version="1.0"… 
- 
		1 votes1 answer57 viewsA: Android Layout (Box Dialog)Caio Sanchez Christino, I had the same doubt that you follow my solution: Use the method setError() to assign this dialog, do not know how you want (click or auto), can the implementation is the… 
- 
		3 votes1 answer3167 viewsA: How to add an edge to a Textview per code?VIA . XML I created an . xml file <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid… 
- 
		1 votes3 answers2023 viewsA: Is there a nomenclature standard for enums?Using this as a basis reply soen: They must be in capital letters because they are constant public enum Cargo { GERENTE, PROGRAMADOR, DBA, ARQUITETO } To documentation does not cite a pattern all… 
- 
		3 votes1 answer203 viewsA: How to deploy a client to a webserviceEmanuella Gomes, I will answer your question, based on your comments(without specifying necessary technologies or rules) . As you already have a deployed webservice you will need the methods that… 
- 
		6 votes2 answers1522 viewsA: How to read data from txt files using Java?Poirot, you can do it this way: public class Testes { public static void main(String[] args) throws IOException { File arquivo = new File("E:\\teste.txt"); arquivo.createNewFile(); FileWriter fw =… 
- 
		3 votes1 answer278 viewsA: Addition of Chart label formatting mask in JasperreportDirect by Jasper add to your label property : new java.text.SimpleDateFormat("dd/MM/yyyy").format($F{sua data}) Via Java : SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy"); String… 
- 
		2 votes4 answers13756 viewsA: Sort List in javaI guess I’ve already set the attributes so I’ll just leave the method that does the ordering: compare accepts a @Override where you can implement your sorting. Your class needs to implement the… 
- 
		0 votes1 answer2348 viewsA: Enlarge image of imageView AndroidI’ll put "the cat jump" just because the example I made is too big: I was using a GridView to display all images but you can have a imageView normal. grid = (GridView) findViewById(R.id.gridview);… androidanswered Wellington Avelino 2,844
- 
		7 votes3 answers11756 viewsA: Change format of a date from yyyy-MM-dd to dd-mm-yyyyUse the Dateformat SimpleDateFormat formatoDesejado = new SimpleDateFormat("dd/MM/yyyy"); String dataFormatada = null; dataFormatada = formatoDesejado.format("sua data hora"); If you need to convert… 
- 
		0 votes2 answers390 viewsA: Use or not use "Backing Bean"/"Manage Bean" with JSF?Diego Santos, The ManagedBean would be your Controller of the application, our View .xhtml in case you get access to our properties in ManagedBean or in our BB as in the example below: Statement of… 
- 
		1 votes3 answers200 viewsA: Eclipse Project starts with errorDaniloalbergardi, If your project is being developed using the library appcompat, it is necessary that it is assigned to your project. By your image is missing the imports of that library. What good… 
- 
		1 votes1 answer3258 viewsA: How to access "data" folder in Android File Explorer using mobile phone as emulator?To access the Date folder where your database contains, you need to use a device with ROOT, otherwise it will not be possible. If you are using a device with ROOT follow the following steps to get… 
- 
		1 votes4 answers368 viewsA: Difficulty with CSS in a JSF2 projectYou can do it this way: On your page .xhtml apply that property <img src="#{facesContext.externalContext.requestContextPath}/images/papel_de_parede.png" alt="" /> Inside this attribute you can… 
- 
		1 votes2 answers303 viewsA: Backing bind with JSF componentsadrianosymphony, I will edit my answer as you edit the question Add the getters and setters for inputNome and boot;… 
- 
		1 votes1 answer66 viewsA: Access Virtual Machine file by Sqlite BrowserTo export your banco.db do the following steps: DDMS > File Explorer > date/date/your domain/Database After getting to where your file is banco.db select it and click on pull a file from the… 
- 
		1 votes2 answers602 viewsA: Does Eclipse Logcat for Android display Log messages?To circumvent this "intermittence" use as follows to print your logs via LogCat: System.out.println("Printa logCat - teste 1""+vendedor); System.out.println("Printa logCat - teste 2");… 
- 
		6 votes2 answers680 viewsQ: Real time update on Android appsLooking at the API from instagram and doing searches on the internet I came across a big question, how they do synchronization of data in Real Time without having to save "photos and videos" in… 
- 
		5 votes2 answers12679 viewsA: Where to find the android database path?To open this option in Android Studio follow the following steps: Tools > Android > Android Device Monitor Inside the path is the same as the traditional eclipse DDMS /data/data/"seu… 
- 
		2 votes1 answer1297 viewsA: How to put a web service in a hosting?If you already have a hosting, set up the environment for production: Server-side : Java installation Tom Cat installation/configuration Install your Database Deploy from your application… 
- 
		1 votes1 answer111 viewsA: Problems installing Activator in windows 8Add java to environment variables : My Computer > Properties > Advanced System Settings > Environment Variables > New: Variable value you add path to your JDK.… 
- 
		1 votes2 answers515 viewsA: How to open a Dialog on androidTo open a dialog box you can use the method setOnClickListener id of your ex button: btFinalizar.setOnClickListener(new View.OnClickListener() It would look something like this : //seu button…