Thursday, March 24, 2011

Examinando arquivo Thumbs.db com o vinetto

Para a analisar arquivos Thumbs.db  gerados pelo s.o Windows (desde a versão 2000)  existe também uma tool chamada vinetto .
Vou testar ela usando o Ubuntu 10.10   .Vamos lá!
- Você pode ver mais informações usando o man vinetto
jy@victory:~/Downloads$ vinetto
/usr/bin/vinetto:35: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Usage: vinetto [OPTIONS] [-o DIR] file
vinetto: error: incorrect number of arguments
jy@victory:~/Downloads$
Tenho um arquivo Thumbs.db e vamos analistar o conteúdo dele :
- Listando o conteúdo
jy@victory:~/Downloads$ vinetto Thumbs.db
/usr/bin/vinetto:35: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Root Entry modify timestamp : Sat Feb 21 18:22:36 2009
------------------------------------------------------
0001   Sun Feb  1 00:23:42 2009   Sydney Opera House, Australia.jpg
0002   Sun Feb  1 00:26:02 2009   Aerial of Heron Island, Great Barrier Reef Marine Park, Queensland, Australia.jpg
0003   Sun Feb  1 00:25:30 2009   Brisbane, Queensland, Australia.jpg
0004   Sun Feb  1 00:26:50 2009   Dove Lake at Cradle Mountain, Tasmania, Australia.jpg
- Para extrair o conteudo dele usando o vinetto e colocando  um diretorio chamado thumbx :
jy@victory:~/Downloads$ vinetto Thumbs.db -o thumbsx/
/usr/bin/vinetto:35: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Root Entry modify timestamp : Sat Feb 21 18:22:36 2009
------------------------------------------------------
0001   Sun Feb  1 00:23:42 2009   Sydney Opera House, Australia.jpg
0002   Sun Feb  1 00:26:02 2009   Aerial of Heron Island, Great Barrier Reef Marine Park, Queensland, Australia.jpg
0003   Sun Feb  1 00:25:30 2009   Brisbane, Queensland, Australia.jpg
0004   Sun Feb  1 00:26:50 2009   Dove Lake at Cradle Mountain, Tasmania, Australia.jpg
0005   Sun Feb  1 00:26:22 2009   Eroded Granite, Cheynes Beach, Australia.jpg
0006   Sun Feb  1 00:26:34 2009   Hopetoun Falls, Aire River, Otway National Park, Victoria, Australia.jpg
0007   Sun Feb  1 00:23:58 2009   Kangaroo Conversation, Australia.jpg
0008   Sun Feb  1 00:26:06 2009   Kata Tjuta (The Olgas) at Sunset, Uluru-Kata Tjuta National Park, Australia.jpg
0009   Sun Feb  1 00:23:00 2009   Loch Ard Gorge, Port Campbell National Park, Australia.jpg
0010   Sun Feb  1 00:26:16 2009   Lord Howe Island, Australia.jpg
0011   Sun Feb  1 00:26:28 2009   McArthur River, Northern Territory, Australia.jpg
0012   Sun Feb  1 00:23:36 2009   Morse's Creek, Bright, Victoria, Australia.jpg
0013   Sun Feb  1 00:26:56 2009   Murphy's Haystacks, Eyre Peninsula, South Australia.jpg
0014   Sun Feb  1 00:26:50 2009   Old Spinifex Rings, Little Sandy Desert, Australia.jpg
0015   Sun Feb  1 00:25:52 2009   Penny Royal Gunpowder Mill, Tasmania, Australia.jpg
0016   Sun Feb  1 00:26:22 2009   Pinnacles Desert, Nambung National Park, Australia.jpg
0017   Sun Feb  1 00:24:20 2009   Port Davey, Stephens Bay, Hannant Inlet and Mount Rugby, Tasmania, Australia.jpg
0018   Sun Feb  1 00:26:58 2009   Rainbow Valley, Northern Territory, Australia.jpg
0019   Sun Feb  1 00:25:20 2009   Red Kangaroo, Australia.jpg
0020   Sun Feb  1 00:25:10 2009   Remarkable Rocks, Flinders Chase National Park, Kangaroo Island, Australia.jpg
0021   Sun Feb  1 00:27:06 2009   Sandstone Tower, Chambers Pillar Historical Reserve, Northern Territory, Australia.jpg
0022   Sun Feb  1 00:26:08 2009   Scarlet Night, Sydney Opera House, Sydney, Australia.jpg
0023   Sun Feb  1 00:26:08 2009   Sun-Kissed Sydney, Australia.jpg
0024   Sun Feb  1 00:24:24 2009   Sunrise on Mount Feathertop, Alpine National Park, Victoria, Australia.jpg
0025   Sun Feb  1 00:24:24 2009   Sydney Harbor at Dusk, Australia.jpg
0026   Sat Feb 21 18:22:36 2009   {A42CD7B6-E9B9-4D02-B7A6-288B71AD28BA}
------------------------------------------------------
26 Type 2 thumbnails extracted to thumbsx//
jy@victory:~/Downloads$ vinetto Thumbs.db -o thumbsx/ /usr/bin/vinetto:35: DeprecationWarning: the md5 module is deprecated; use hashlib instead  import md5
Root Entry modify timestamp : Sat Feb 21 18:22:36 2009
------------------------------------------------------
0001   Sun Feb  1 00:23:42 2009   Sydney Opera House, Australia.jpg 0002   Sun Feb  1 00:26:02 2009   Aerial of Heron Island, Great Barrier Reef Marine Park, Queensland, Australia.jpg 0003   Sun Feb  1 00:25:30 2009   Brisbane, Queensland, Australia.jpg 0004   Sun Feb  1 00:26:50 2009   Dove Lake at Cradle Mountain, Tasmania, Australia.jpg 0005   Sun Feb  1 00:26:22 2009   Eroded Granite, Cheynes Beach, Australia.jpg 0006   Sun Feb  1 00:26:34 2009   Hopetoun Falls, Aire River, Otway National Park, Victoria, Australia.jpg 0007   Sun Feb  1 00:23:58 2009   Kangaroo Conversation, Australia.jpg 0008   Sun Feb  1 00:26:06 2009   Kata Tjuta (The Olgas) at Sunset, Uluru-Kata Tjuta National Park, Australia.jpg 0009   Sun Feb  1 00:23:00 2009   Loch Ard Gorge, Port Campbell National Park, Australia.jpg 0010   Sun Feb  1 00:26:16 2009   Lord Howe Island, Australia.jpg 0011   Sun Feb  1 00:26:28 2009   McArthur River, Northern Territory, Australia.jpg 0012   Sun Feb  1 00:23:36 2009   Morse's Creek, Bright, Victoria, Australia.jpg 0013   Sun Feb  1 00:26:56 2009   Murphy's Haystacks, Eyre Peninsula, South Australia.jpg 0014   Sun Feb  1 00:26:50 2009   Old Spinifex Rings, Little Sandy Desert, Australia.jpg 0015   Sun Feb  1 00:25:52 2009   Penny Royal Gunpowder Mill, Tasmania, Australia.jpg 0016   Sun Feb  1 00:26:22 2009   Pinnacles Desert, Nambung National Park, Australia.jpg 0017   Sun Feb  1 00:24:20 2009   Port Davey, Stephens Bay, Hannant Inlet and Mount Rugby, Tasmania, Australia.jpg 0018   Sun Feb  1 00:26:58 2009   Rainbow Valley, Northern Territory, Australia.jpg 0019   Sun Feb  1 00:25:20 2009   Red Kangaroo, Australia.jpg 0020   Sun Feb  1 00:25:10 2009   Remarkable Rocks, Flinders Chase National Park, Kangaroo Island, Australia.jpg 0021   Sun Feb  1 00:27:06 2009   Sandstone Tower, Chambers Pillar Historical Reserve, Northern Territory, Australia.jpg 0022   Sun Feb  1 00:26:08 2009   Scarlet Night, Sydney Opera House, Sydney, Australia.jpg 0023   Sun Feb  1 00:26:08 2009   Sun-Kissed Sydney, Australia.jpg 0024   Sun Feb  1 00:24:24 2009   Sunrise on Mount Feathertop, Alpine National Park, Victoria, Australia.jpg 0025   Sun Feb  1 00:24:24 2009   Sydney Harbor at Dusk, Australia.jpg 0026   Sat Feb 21 18:22:36 2009   {A42CD7B6-E9B9-4D02-B7A6-288B71AD28BA}
------------------------------------------------------
26 Type 2 thumbnails extracted to thumbsx//
Agora vamos ver o que veio com ele :
E é isso por hoje!
Att,
JC
jy@victory:~/Downloads$ vinetto /usr/bin/vinetto:35: DeprecationWarning: the md5 module is deprecated; use hashlib instead  import md5Usage: vinetto [OPTIONS] [-o DIR] filevinetto: error: incorrect number of argumentsjy@victory:~/Downloads$Tenho um arquivo Thumbs.db e vamos analistar o conteúdo dele :
- Listando o conteúdo
jy@victory:~/Downloads$ vinetto Thumbs.db/usr/bin/vinetto:35: DeprecationWarning: the md5 module is deprecated; use hashlib instead  import md5 Root Entry modify timestamp : Sat Feb 21 18:22:36 2009 ------------------------------------------------------ 0001   Sun Feb  1 00:23:42 2009   Sydney Opera House, Australia.jpg 0002   Sun Feb  1 00:26:02 2009   Aerial of Heron Island, Great Barrier Reef Marine Park, Queensland, Australia.jpg 0003   Sun Feb  1 00:25:30 2009   Brisbane, Queensland, Australia.jpg 0004   Sun Feb  1 00:26:50 2009   Dove Lake at Cradle Mountain, Tasmania, Australia.jpg
- Para extrair o conteudo dele usando o vinetto e colocando  um diretorio chamado thumbx :
jy@victory:~/Downloads$ vinetto Thumbs.db -o thumbsx/
/usr/bin/vinetto:35: DeprecationWarning: the md5 module is deprecated; use hashlib insteadimport md5Root Entry modify timestamp : Sat Feb 21 18:22:36 2009------------------------------------------------------0001   Sun Feb  1 00:23:42 2009   Sydney Opera House, Australia.jpg0002   Sun Feb  1 00:26:02 2009   Aerial of Heron Island, Great Barrier Reef Marine Park, Queensland, Australia.jpg0003   Sun Feb  1 00:25:30 2009   Brisbane, Queensland, Australia.jpg0004   Sun Feb  1 00:26:50 2009   Dove Lake at Cradle Mountain, Tasmania, Australia.jpg0005   Sun Feb  1 00:26:22 2009   Eroded Granite, Cheynes Beach, Australia.jpg0006   Sun Feb  1 00:26:34 2009   Hopetoun Falls, Aire River, Otway National Park, Victoria, Australia.jpg0007   Sun Feb  1 00:23:58 2009   Kangaroo Conversation, Australia.jpg0008   Sun Feb  1 00:26:06 2009   Kata Tjuta (The Olgas) at Sunset, Uluru-Kata Tjuta National Park, Australia.jpg0009   Sun Feb  1 00:23:00 2009   Loch Ard Gorge, Port Campbell National Park, Australia.jpg0010   Sun Feb  1 00:26:16 2009   Lord Howe Island, Australia.jpg0011   Sun Feb  1 00:26:28 2009   McArthur River, Northern Territory, Australia.jpg0012   Sun Feb  1 00:23:36 2009   Morse's Creek, Bright, Victoria, Australia.jpg0013   Sun Feb  1 00:26:56 2009   Murphy's Haystacks, Eyre Peninsula, South Australia.jpg0014   Sun Feb  1 00:26:50 2009   Old Spinifex Rings, Little Sandy Desert, Australia.jpg0015   Sun Feb  1 00:25:52 2009   Penny Royal Gunpowder Mill, Tasmania, Australia.jpg0016   Sun Feb  1 00:26:22 2009   Pinnacles Desert, Nambung National Park, Australia.jpg0017   Sun Feb  1 00:24:20 2009   Port Davey, Stephens Bay, Hannant Inlet and Mount Rugby, Tasmania, Australia.jpg0018   Sun Feb  1 00:26:58 2009   Rainbow Valley, Northern Territory, Australia.jpg0019   Sun Feb  1 00:25:20 2009   Red Kangaroo, Australia.jpg0020   Sun Feb  1 00:25:10 2009   Remarkable Rocks, Flinders Chase National Park, Kangaroo Island, Australia.jpg0021   Sun Feb  1 00:27:06 2009   Sandstone Tower, Chambers Pillar Historical Reserve, Northern Territory, Australia.jpg0022   Sun Feb  1 00:26:08 2009   Scarlet Night, Sydney Opera House, Sydney, Australia.jpg0023   Sun Feb  1 00:26:08 2009   Sun-Kissed Sydney, Australia.jpg0024   Sun Feb  1 00:24:24 2009   Sunrise on Mount Feathertop, Alpine National Park, Victoria, Australia.jpg0025   Sun Feb  1 00:24:24 2009   Sydney Harbor at Dusk, Australia.jpg0026   Sat Feb 21 18:22:36 2009   {A42CD7B6-E9B9-4D02-B7A6-288B71AD28BA}------------------------------------------------------26 Type 2 thumbnails extracted to thumbsx//jy@victory:~/Downloads$ vinetto Thumbs.db -o thumbsx/ /usr/bin/vinetto:35: DeprecationWarning: the md5 module is deprecated; use hashlib instead  import md5 Root Entry modify timestamp : Sat Feb 21 18:22:36 2009 ------------------------------------------------------ 0001   Sun Feb  1 00:23:42 2009   Sydney Opera House, Australia.jpg 0002   Sun Feb  1 00:26:02 2009   Aerial of Heron Island, Great Barrier Reef Marine Park, Queensland, Australia.jpg 0003   Sun Feb  1 00:25:30 2009   Brisbane, Queensland, Australia.jpg 0004   Sun Feb  1 00:26:50 2009   Dove Lake at Cradle Mountain, Tasmania, Australia.jpg 0005   Sun Feb  1 00:26:22 2009   Eroded Granite, Cheynes Beach, Australia.jpg 0006   Sun Feb  1 00:26:34 2009   Hopetoun Falls, Aire River, Otway National Park, Victoria, Australia.jpg 0007   Sun Feb  1 00:23:58 2009   Kangaroo Conversation, Australia.jpg 0008   Sun Feb  1 00:26:06 2009   Kata Tjuta (The Olgas) at Sunset, Uluru-Kata Tjuta National Park, Australia.jpg 0009   Sun Feb  1 00:23:00 2009   Loch Ard Gorge, Port Campbell National Park, Australia.jpg 0010   Sun Feb  1 00:26:16 2009   Lord Howe Island, Australia.jpg 0011   Sun Feb  1 00:26:28 2009   McArthur River, Northern Territory, Australia.jpg 0012   Sun Feb  1 00:23:36 2009   Morse's Creek, Bright, Victoria, Australia.jpg 0013   Sun Feb  1 00:26:56 2009   Murphy's Haystacks, Eyre Peninsula, South Australia.jpg 0014   Sun Feb  1 00:26:50 2009   Old Spinifex Rings, Little Sandy Desert, Australia.jpg 0015   Sun Feb  1 00:25:52 2009   Penny Royal Gunpowder Mill, Tasmania, Australia.jpg 0016   Sun Feb  1 00:26:22 2009   Pinnacles Desert, Nambung National Park, Australia.jpg 0017   Sun Feb  1 00:24:20 2009   Port Davey, Stephens Bay, Hannant Inlet and Mount Rugby, Tasmania, Australia.jpg 0018   Sun Feb  1 00:26:58 2009   Rainbow Valley, Northern Territory, Australia.jpg 0019   Sun Feb  1 00:25:20 2009   Red Kangaroo, Australia.jpg 0020   Sun Feb  1 00:25:10 2009   Remarkable Rocks, Flinders Chase National Park, Kangaroo Island, Australia.jpg 0021   Sun Feb  1 00:27:06 2009   Sandstone Tower, Chambers Pillar Historical Reserve, Northern Territory, Australia.jpg 0022   Sun Feb  1 00:26:08 2009   Scarlet Night, Sydney Opera House, Sydney, Australia.jpg 0023   Sun Feb  1 00:26:08 2009   Sun-Kissed Sydney, Australia.jpg 0024   Sun Feb  1 00:24:24 2009   Sunrise on Mount Feathertop, Alpine National Park, Victoria, Australia.jpg 0025   Sun Feb  1 00:24:24 2009   Sydney Harbor at Dusk, Australia.jpg 0026   Sat Feb 21 18:22:36 2009   {A42CD7B6-E9B9-4D02-B7A6-288B71AD28BA} ------------------------------------------------------26 Type 2 thumbnails extracted to thumbsx//Agora vamos ver o que veio com ele :
E é isso por hoje!
Att,
JC
 

Friday, February 04, 2011

Nova base de dados no Stoq

##Task : apagar base de exemplos e criar uma base nova no Stoq
1º  Sair do estoque
2º entrar com o usuário postgres no postgresql

ex.

jy@centaurus:~$ sudo su postgres
postgres@centaurus:/home/jy$ psql
Senha:
psql (8.4.6)
Digite "help" para ajuda.

postgres=#


3º drop no database do stoq;depois drop no usuário do stoq(bd)

ex.

postgres-# select * from pg_database;

postgres=# drop database teste;
DROP DATABASE
postgres=# drop user stoq;
DROP ROLE
postgres=#

4º Tente executar o stoq.Deve aparecer a mensagem que é impossivel conectar a base de dados 'xx' .

5º Entrar novamente no postgresql e criar um novo usuário e um novo banco de dados e um .
 ex.

 postgres=# create user stoq with login;
CREATE ROLE
postgres=# alter user stoq password 'xyz' ;
ALTER ROLE
postgres=# alter role stoq with superuser;
ALTER ROLE
postgres=#
postgres=# create database stoq owner stoq;
CREATE DATABASE
postgres=#

OU

 criar o usuário com o comando :

create user xxx with password 'xxxx' ;

No site do Stoq a Async recomenda criar desta forma :

sudo -u postgres createuser stoq -drs -P

Explicações :

-d = criar implícito um banco de dados do mesmo nome ;
-r = concede o privilégio de criar novos usuários;
-s = concede privilégio de superusuário
-P = Solicita a nova senha no prompt de comando ;


Obs. Caso queira reiniciar o postgresql
jy@centaurus:~$ sudo su postgres /etc/init.d/postgresql restart


6ºentrar com o usuário do Ubuntu/Linux onde o stoq foi instalado e executar :
 stoq --wizard
O wizard será aberto para a instalação do stoq desde o inicio.

Saturday, January 29, 2011

Mudanças na hospedagem do blog

Pessoal,

Neste dias estou fazendo algumas mudanças nos domínios e sub-domínios.

O blog vai para o endereço http://blog.dbajccorrea.com ou  http://jccorrea.blogspot.com deverá funcionar o redirecionamento.

Abs,

JC

Monday, January 24, 2011

Equilíbrio entre a vida profissional e vida pessoal

O profissional de TI pode perguntar?Isso existe mesmo?rsrs.

Pois bem vamos a mais um trecho do livro "Pergunte ao Max" .

Pergunta do leitor :
Nunca ouvi falar  tanto em buscar equilíbrio entre vida profissional e vida pessoal.Trabalho 12 horas por dia e levo mais duas horas para ir ao trabalho e voltar para casa.
Além disse , sou "convidado" pelo meu chefe e trabalhar  aos sábados.Equilíbrio não é utopia?


Resposta do Max :

Essa não é uma dúvida nova.Existe há milênios. E a resposta está na  Bíblia.Mais exatamente  no final do capítulo 3 do Livro do Eclesiastes.O autor pergunta : " O que uma pessoa obtém na vida com todo o seu esforço?" . E dá a resposta : " Não há nada melhor que ser feliz e gozar a vida,tanto quanto se puder." Mas não espere que sua empresa lhe ofereça uma solução. Você é que deve encontrá-la . O maior mérito de um profissional é dedicar a uma empresa  seu talento, seu conhecimento, seu tempo. O maior pecado é não achar  tempo para dedicar a si mesmo.

Mais uma do Max,ótima reposta!!

Abs,

JC

Dicionário atualizado de carreira - Business

Olá pessoal,

Vou compartilhar um trecho do livro Pergunte ao Max,do Max Gehringer.Olhando os livros na minha caixa,peguei alguns para folhear novamente.Ele descreve uma parte do livro como "Dicionário atualizado de carreira".

Business


Palavra que virou sinônimo universal de negócio.Veio de busy - ocupado,em inglês.Mas seu sentido original ( o anlgo-saxão bisigian) era estado de preocupação,fadiga,ansiedade e mal-estar.Mil anos depois, a definição continua atualíssima !

Boa Max,todos os créditos a você!

Abs,

JC

Ei você ? Compartilhar informação também traz felicidade!!

Olá pessoal,

Hoje recebi um comentário no blog,na verdade é a cópia deste blog no wordpress.Pois,bem é muito gratificante ver que um post pôde ajudar alguém mesmo depois de um tempo passado.Eu mesmo visito vários blogs e acho muita coisa útil pra mim.As vezes não dá tempo de comentar,ou esqueço.Mas quando olho no Analytics vejo que o conteúdo está sendo aproveitado de uma forma ou de outra!!

Abs,

JC

Friday, December 24, 2010

Oracle Database 11g: Interactive Quick Reference

Confiram no link abaixo :


http://goo.gl/rQejT


" Oracle Database 11g Release 2 Enterprise Edition provides comprehensive features to easily manage the most demanding transaction processing, business intelligence, and content management applications.

Now you have easy access to information that you need to administer your Oracle Database with our downloadable Interactive Quick Reference. We have taken our traditional printed poster for Database Administrators, and created an electronic format packed with even more information.

Use this helpful reference as a cheat sheet for writing custom data dictionary scripts, locating views pertinent to a specific database component, and more. "

Tuesday, December 14, 2010

Anúncio de emprego - dá pra entender?

Encontrei este anuncio em um site especializado em vagas para TI.
Estes anúncios esquisitos me dão medo!

DBA ORACLE

Perfil: Desenvolvimento de aplicações utilizando Oracle10/11g, MS SQL 2000/2008 com grandes(500GB +) e médio (1100GB) bancos de dados J2EE para apoiar as 3 aplicações web escritas em nível frameworks de desenvolvimento Java,como Hibernate,Spring e Struts. Um forte conhecimento para apoiar, desenvolver aplicações web Java EE usando peixes de vidro, Tomcat e servidores de aplicação Websphere é necessária Oracle em uma plataforma de aplicações web-based 02/01 anos experiência em desenvolvimento de aplicações de servidores padrão usando java padrão (vidro peixe, Tomcat e Websphere) Banco de dados Application (DBA), Application Developer(AP)/Quality Assurance (QA)
Inglês fluente
Enviar currículo com pretensão salarial e disponibilidade para início.

Alguém topa?

Tuesday, October 26, 2010

unable to see package body on sqldeveloper - SOLVED

Solução :

grants :

GRANT EXECUTE ON  DBMS_METADATA TO user_unable_to_see ;
GRANT CREATE ANY PROCEDURE TO  user_unable_to_see;

Cabe analisar a segurança ao conceder os privilégios acima.

Oks?!!

Julio Cesar Correa

Friday, October 08, 2010

How to use Oracle db service_name in jdbc connection string

simple like that:

using only SID :
jdbc:oracle:thin:@10.1.1.5:1521:mydb
using sid or  service_name :



Change " : " to " / " .