quinta-feira, 6 de outubro de 2011

Mosaico

Imaginei esse programa após minha irmã pediu para eu fazer um mosaico para ela.

Quando abrir um diretório somente de fotos, aparecerá no topo do diretório o botão "Mosaico".

Ao clicar em "Mosaico->Gerar Mosaico", as fotos aparecem em forma de ícones redimensionáveis, em tamanhos:

- De 1 icone, 4 icones(2x2), 9 icones (3x3);

- Todos os nomes das fotos desaparecem;

- Ao passar com o mouse em volta da foto (borda de 5mm) aparece um menu para aplicar efeito na foto, por exemplo: foto original, preto e branco, grafite, correção de brilho.

Após terminar a criação do mosaico, ir em "Mosaico->Salvar Mosaico", o mosaico ficará salvo no diretório de mosaicos do sistema.

Se quiser reabrir o Mosaico, é só ir em "Mosaico->Lista de Mosaicos do Diretório ->Mosaico 1" e o mosaico será aberto.

Após abrir um mosaico, Você pode ainda ir em Mosaico-> Exportar Imagem e pronto, sua imagem para por no Orkut, facebook, multiply, picasa está pronta.

Jóia do Titanic

Aonde foi parar a jóia do Titanic que a Rose jogou no Oceano?

Aonde está Wally?



Notaram meu toque de Picasso no rosto?

Hehehehe

Unstarred All Gmail

[ENGLISH]

My first idea was the shadow label, with one click, all unstarred messages would go to the shadow label, but i found a practical solution: An easy way to clean your e-mail, delete all e-mails in a label that are not your favorite e-mails, after that, your favorite e-mails in the folder will lose the star and the process to elect favorite e-mails begin again.

First: Select Unstarred All;
Second: Select all conversations in "Label";
Third: Click on Delete.

Here is the prototype:



[PORTUGUESE]

Minha primeira idéia era fazer um label sombra, com um clique, todas as mensagens que não são favoritas vão para o label sombra, mas eu achei uma solução prática: Um jeito fácil de limpar seu e-mail, é deletar todos os e-mails em um label que não são seus e-mails favoritos, depois disso, seus e-mails favoritos vão perder a estrela de favorito e o processo de eleger favoritos reinicia-se.

Primeiro: Selecione Unstarred All;
Segundo: Selecione todas conversas no "Label";
Terceiro: Clique em Delete.

Uma Mão Lava a Outra







quarta-feira, 5 de outubro de 2011

Computer Science First Class

This is a general site, you will see what is computer science:

http://en.wikipedia.org/wiki/Computer_science

Every computer scientist is a programmer, every programmer write recipes that is interpretaded by computer to do some action. You build process or systems with recipes that make what you want.

The first concept to learn is an algorithm, look in the Wikipedia:

http://en.wikipedia.org/wiki/Algorithm

Every algorithm is a recipe, you can create a recipe to make a cake, you need input stuff, like milk, chocolate, etc... and create a system using a sequence of actions, the output is the cake.

The algorithm receives input data that pass through some conditions(sequence of actions) to create output data, you can display the outputdata in the monitor screen.

Every mathematical function is an algorithm.

When you solve a mathematical problem, it is an algorithm too, because you define a sequence of actions or steps, that you need to do to solve an algorithm.


You can encapsulate a recipe in a method, it is call black box function, for example, a black box function, is a system that you don´t see, for example when the cooker make the cake with a recipe, if you dont look to him making the cake, it is a black box function, what happens is:

Cake chocolateCake = makeCake(milk, chocolater, butter, etc...);

makeCake is the blackBox function that hide what happens from your eyes, chocolateCake is the food produced, the output data, and the type of the food is Cake. makeCake is called procedure in Computer Science.


To make a procedure, you need to learn logic first, the basis of logic is cause and consequence.

Logic

First thing you need to learn is Logic, the World we live (Earth) is a logical place, there is no magic, it is cause and consequence, The plants grow, because they have the necessary input data: land, water, CO2, the procedure is called photosynthesis, the output data is a bigger plant or a surviving plant, more O2, fruits.

Boolean Logic

The boolean logic is based in true and false, you check if a condition is valid (cause) and produces a consequence.

You probabilly have heard, that computers is all about binary code, binary code is a sequence of 0 or 1. Binary code is the basis of Boolean Logic,
because zero represents false and one represents true.

http://en.wikipedia.org/wiki/Boolean_logic

When you work with boolean Logic there is a table called Truth Table, that represents the axiom of an boolean operation, for example, when you say: "a line is a sequence of dots", it is an axiom, an axiom is something basic that is truth by definition and you cannot prove, it is used to build systems.


boolean variables: a, b
operation: and

Truth table

abresultwhat happens
000if a is false and b is false, so the result (intersection) between them is false.
0 1 0 if a is false and b is true, so the result (intersection) between then is false, if they are not equal, there is no intersection.
1 0 0 if a is true and b is false, so the result (intersection) between then is false, if they are not equal, there is no intersection.
1 1 1 if a is true and b is true, so the result (intersection between them is true).


Now i will program what it means for example:

for comparition we use the == signal for equal, we use != for not equal, to give a value for a variable, we use =, the type of variable is in the left side, Comment is /////

//// Begin of Code //////

////// Declaration of variables //////

boolean beautifulFace = false;
boolean beautifulBody = true;
boolean beautifulPerson;

////// Block of Code One ///////

///////// Cause///////////////////////////////////////////////////// ////////////// Consequence ///////
if( beautifulFace == true and beautifulBody ==true) { beautifulPerson = true; }
else if( beautifulFace == false and beatifulBody == true) { beautifulPerson = false; }
else if(beautifulFace == true and beatifulBody == false) { beautifulPerson = false; }
else if(beautifulFace == false and beatifulBody == false) { beautifulPerson = false; }

////// End of Block of Code One ///////

/// Now we will write the same block in a smaller way, the negative of (1,1,1) in the table, is the rest of the table {(1,0,0), (0,1,0), (1,1,0)}, this is represented by the else alone symbol:

if( beautifulFace == true and beautifulBody ==true) { beautifulPerson = true; }
else {beautifulPerson = false;}

////////// End of Code ////////////

input data of the recipe is beautifulFace, beautifulBody.
output data of the recipe is beautifulPerson.

Novo Conceito de Desktop

Aos 7 anos de idade eu mexi num computador chamado MSX, era uma tela azul com letras brancas e era baseado em linha de comando, nem tinha interface gráfica.
Aos 9 anos de idade se não estou enganado, comecei a mexer com Windows 3.1, não existia Desktop (área de trabalho), era só janelas que abriam e fechavam.

Pois muito bem, essa semana tive uma idéia simples, acredito que o futuro é voltar ao conceito do Windows 3.1, com uma diferença, agora todos os diretórios serão áreas de trabalho, sempre apareceram do lado esquerdo o meu computador, a rede e a lixeira, e do lado direito o diretório em si, ambos em um fundo de imagem, cada diretório, poderá ter uma imagem diferente associada a ele, imagem essa totalmente configurável que poderá mudar.

Eu poderia ter patenteado isso, mas acho que quem merece ganhar dinheiro é quem faz!

Além disso, tudo que eu fiz foi unir a ideia do Windows 3.1 com a idéia do desktop Windows 95, foi simples assim, como diria Lavoisier:

"Nada se cria, nada se perde, tudo se transforma."

Boa sorte programadores!

Eu fiz um protótipo, olha que lindo, acho que a idéia vai pegar:

Palestra sobre o Mercado de Computação

O Palestrante foi meu colega de trabalho a alguns anos atrás:

Palestra sobre o mercado de Computação por Felipe Zampa

Comparação do mercado de linguagens:

http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

http://langpop.com/