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
Em qualquer conteúdo do tipo Folderish (normalmente em pastas), acesse a página de edição e clique em "Configurações". | |
Depois, marque a opção "Habilitar navegação entre os itens (anterior/próximo)" para que na visão dos itens daquele conteúdo (por exemplo: páginas dentro de uma pasta) apareça os links para o item anterior e próximo. | |
Por padrão, os links são exibidos no final da página e com o título dos itens. |
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
É possível manter uma versão alternativa de determinado conteúdo e decidir quando e se esta versão substituirá a versão corrente. | |
Trata-se dos recursos: "check out" e "check in". | |
Na tela de visualização do conteúdo, clique em "Ações" > "Check out" para criar uma cópia do conteúdo. | |
A URL da cópia inicia com copy_of_... | |
Na visualização da cópia, é informado ao usuário que trata-se de uma cópia, juntamente com o link para o conteúdo original. |
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
As instruções abaixo foram elaboradas em um ambiente com Ubuntu 14, mas deve funcionar para a maioria das distribuições com pouca ou nenhuma adaptação. | |
Pré-requisitos: | |
- python 2.7 (normalmente já vem instalado nas principais distribuições Linux) | |
- python-dev (caso não esteja instalado, utilize "apt-get install python-dev") | |
- zlib1g-dev (caso não esteja instalado, utilize "apt-get install zlib1g-dev") | |
- libssl-dev (caso não esteja instalado, utilize "apt-get install libssl-dev") | |
Baixar o instalador do Plone |
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
sudo apt install fdupes | |
fdupes -r . |
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
# instalar o driver fornecido pelo fabricante | |
sudo sh install.sh | |
# criar o link simbolico e instalar a lib abaixo, para o scanner funcionar | |
cd /usr/lib/x86_64-linux-gnu/sane | |
sudo ln -s /opt/smfp-common/scanner/lib/libsane-smfp.so.1.0.1 /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1 | |
sudo apt install libusb-0.1-4 | |
# criar outra conexão para a impressora usando AppSocket/HP JetDirect |
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
drop index ECOMMERCE.IX_NO_CLIENTE_OT; | |
update ECOMMERCE.CLIENTE set NM_CLIENTE = NM_CLIENTE || ' JOÃO' where CD_CLIENTE = 4; | |
update ECOMMERCE.CLIENTE set NM_CLIENTE = NM_CLIENTE || ' JOAO' where CD_CLIENTE = 5; | |
update ECOMMERCE.CLIENTE set NM_CLIENTE = NM_CLIENTE || ' joão' where CD_CLIENTE = 6; | |
update ECOMMERCE.CLIENTE set NM_CLIENTE = NM_CLIENTE || ' joao' where CD_CLIENTE = 7; | |
commit; | |
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
package oracledownloadblob; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
import java.sql.Statement; | |
import java.util.zip.ZipEntry; |
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
-- first, update dbname string | |
SELECT sequence_name FROM ALL_SEQUENCES WHERE SEQUENCE_OWNER = | |
'dbname' and sequence_name like 'ISEQ$$_%' AND sequence_name not in ( | |
with xml as ( select dbms_xmlgen.getxmltype( 'select | |
column_name, data_default from all_tab_columns where owner=''dbname'' | |
AND DATA_DEFAULT IS NOT NULL ') x from dual), | |
col_defs as ( select extractValue(xt.object_value, | |
'/ROW/COLUMN_NAME') as col_name, extractValue(xt.object_value, | |
'/ROW/DATA_DEFAULT') as d_def from xml, |
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
Solução: remover "HP System Tray Service" nas preferências dos aplicativos iniciais de sessão |
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
# webconsole | |
java -jar ~/wso2am/3.0.0/repository/components/tools/forget-me/lib/h2-1.4.199.jar | |
# command line console | |
java -cp ~/wso2am/3.0.0/repository/components/tools/forget-me/lib/h2-1.4.199.jar org.h2.tools.Shell |