This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Oracle | |
Compilar TODOS os objetos | |
EXEC DBMS_UTILITY.compile_schema(schema => 'MY_SCHEMA'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Oracle | |
Listar colunas das tabelas | |
SELECT * FROM ALL_TAB_COLUMNS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JSF | |
Ocultar comentários em páginas .xhtml | |
Adicionar ao web.xml. | |
<context-param> | |
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name> | |
<param-value>true</param-value> | |
</context-param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Android | |
Criar projeto Android com Maven | |
mvn archetype:generate -DarchetypeArtifactId=android-quickstart -DarchetypeGroupId=de.akquinet.android.archetypes -DarchetypeVersion=1.0.4 -DgroupId=com.android -DartifactId=my-app-android -Dversion=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JSF | |
Importar CSS | |
<link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/style.css" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Eclipse | |
Alterar o tempo do auto complete | |
- Window > Preferences | |
- Java > Editor > Content Assist | |
Alterar o valor do campo "Auto activation delay (ms)" para o valor desejado. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JBoss | |
Configurar ports para várias instancias | |
run.bat -c MY_CONTEXT -Djboss.service.binding.set=PORTS | |
Onde MY_CONTEXT é o contexto que deseja startar e PORTS são os service binding configurados. | |
Por padrão existem 3 ports, ports-01, ports-02 e ports-03. | |
Para configurar mais basta editar o arquivo bindings-jboss-beans.xml que fica na pasta JBOSS_HOME\server\CONTEXT\conf\bindingservice.beans\META-INF (JBoss 5.1 EAP), para outras versões estão em pastas diferentes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Selenium | |
Aguardar até que o componente desejado seja localizado. | |
private static final long TIMEOUT_SECONDS = 30; | |
driver.manage().timeouts().implicitlyWait(TIMEOUT_SECONDS, TimeUnit.SECONDS); | |
Reference | |
http://docs.seleniumhq.org/docs/appendix_migrating_from_rc_to_webdriver.jsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Oracle | |
Quantidade de Rows em uma Table | |
set serveroutput on | |
declare | |
numrows integer; | |
cursor c1 is select table_name from user_tables order by table_name; | |
function rowcount(tablename in user_tables.table_name%type) | |
return integer is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JQuery | |
Marcar todos CheckBoxes | |
$('#checkAll').click( | |
function() { | |
$(this).parents('table:eq(0)').find(':checkbox').attr('checked', this.checked); | |
} | |
); |