sexta-feira, março 18, 2016
Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen.
“Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen.”
32 citações Albert Einstein que abrirão sua cabeça
Albert Einstein foi um físico teórico que teve um enorme impacto na ciência depois de ter desenvolvido suas teorias da relatividade. Ganhou o Prêmio Nobel em 1921 e solidificou-se como uma das figuras mais influentes na história da ciência.
Ao mesmo tempo em que ficou conhecido por suas realizações científicas, ele também se revelou por sua sabedoria, sagacidade, discernimento e filosofias de vida. Ele deixou a sua marca na humanidade, e até hoje suas citações são algumas das frases mais inspiradoras e encorajadoras de todos os tempos. Vale mencionar também seu grande senso de humor.
Aqui estão 32 citações Albert Einstein que abrirão sua cabeça:
1. “A imaginação é mais importante que o conhecimento. O conhecimento é limitado, enquanto a imaginação abraça o mundo inteiro, estimulando o progresso, e dando origem à evolução.”
2. “Grandes espíritos sempre encontraram violenta oposição de mentes medíocres. A mente medíocre é incapaz de compreender o homem que se recusa a se curvar cegamente aos preconceitos convencionais e escolhe expressar suas opiniões com coragem e honestidade. “
3. “Eu, de qualquer forma, estou convencido de que Deus não joga aos dados”.
4. “O importante é não parar de questionar; a curiosidade tem sua própria razão de existir “.
5. “A ciência sem religião é manca, e a religião sem a ciência é cega”.
6. “Duas coisas são infinitas: o universo e a estupidez humana; e eu não tenho certeza sobre o universo. “
7. “Se apaixonar não é a coisa mais estúpida que as pessoas podem fazer. E a gravidade não pode ser responsabilizada por isso.” (do inglês “fall in love”: cair no amor, se apaixonar – daí a referência com a lei da gravidade)
8. “A mais bela experiência que podemos ter é o mistério. É a emoção fundamental que está no berço da verdadeira arte e da verdadeira ciência “.
9. “Uma pessoa que nunca cometeu um erro, nunca tentou nada novo.”
10. “Em vez de se tornar um homem de sucesso, tente tornar-se um homem de valor”
11. “O segredo da criatividade é: saber como esconder suas fontes.”
12. “A diferença entre o gênio e o estúpido é que o gênio tem seus limites.”
13. “A fraqueza da atitude transforma-se em fraqueza de caráter.”
14. “matemática pura é, à sua maneira, a poesia de ideias lógicas. “
15.” A natureza nos mostra apenas a cauda do leão. Mas eu não tenho dúvida de que o leão exista, mesmo que ele não pode revelar-se de uma vez por causa de seu enorme tamanho. “
16.” Somente uma vida vivida para os outros é uma vida que vale a pena. “
17.” Não é que eu sou inteligente, é que eu fico com os problemas por mais tempo. “
18.” Minha religião consiste em uma humilde admiração ao espírito superior e ilimitado que se revela através dos leves detalhes que somos capazes de perceber com nossa mente frágil e débil. “
19. “A paz não pode ser mantida à força. Ela só pode ser alcançada através da compreensão. “
20.” Eu nunca penso no futuro. Ele vem em breve.”
21. “Não se preocupe com suas dificuldades em matemática, posso garantir que as minhas são maiores”
22. “A fim de formar um imaculado rebanho de carneiros um deve, acima de tudo, ser uma ovelha.”
23. “A coisa mais incompreensível sobre o mundo é que ele é compreensível.”
24. “A realidade é meramente uma ilusão, embora muito persistente.”
25. “A verdade é aquilo que resiste ao teste da experiência.”
26. “A vida é como andando de bicicleta. Para manter o seu equilíbrio você deve manter em movimento “
27. ” Insanidade é: fazer a mesma coisa várias vezes e esperar resultados diferentes “
28. “O conhecimento e as habilidades sozinhos não podem levar a humanidade a uma vida feliz e digna. A humanidade tem todas as razões para colocar os proclamadores de altos padrões e valores morais acima dos descobridores da verdade objetiva.”
29.” Poucas pessoas são capazes de expressar com equanimidade opiniões que diferem dos preconceitos do seu ambiente social. A maioria das pessoas são ainda incapazes de formar tais opiniões.”
30.” O bom senso não é nada mais do que um depósito de preconceitos estabelecidos pela mente antes de chegar aos dezoito anos”
31. “Todo mundo é um gênio. Mas, se você julgar um peixe por sua capacidade de subir em uma árvore, ela vai passar toda a sua vida acreditando que ele é estúpido.”
32. “Nenhum problema pode ser resolvido pelo mesmo grau de consciência que o gerou.”
Fonte:
30 Albert Einstein Quotes That Will Open Your Mind
This article was inspired by 2spare.com| Albert Einstein was a theoretical physicist who had a huge impact on science after developing his theory of general relativity and special relativity. After winning the Nobel Prize in 1921, Einstein solidified himself as one of the most influential figures in the history of science.
But just as much as he was known for his scientific accomplishments, he was also known for his wisdom, his wit, his insight, and his life philosophies. He well-rounded brilliance has left its mark on humanity, and to this day his quotes are some of the most inspiring, mind-opening, and encouraging of all time. Not to mention, he has a great sense of humour.
Here are 30 Albert Einstein quotes that will open your mind and make your day:
- “Imagination is more important than knowledge. For knowledge is limited, whereas imagination embraces the entire world, stimulating progress, giving birth to evolution.”
2. “Great spirits have always encountered violent opposition from mediocre minds. The mediocre mind is incapable of understanding the man who refuses to bow blindly to conventional prejudices and chooses instead to express his opinions courageously and honestly.”
3. “I, at any rate, am convinced that He (God) does not throw dice.”
4. “The important thing is not to stop questioning; curiosity has its own reason for existing.”
5. “Science without religion is lame, religion without science is blind.”
6. “Two things are infinite: the universe and human stupidity; and I’m not sure about the universe.”
7. “Falling in love is not at all the most stupid thing that people do— but gravitation cannot be held responsible for it.”
8. “The most beautiful experience we can have is the mysterious. It is the fundamental emotion that stands at the cradle of true art and true science.”
9. “Anyone who has never made a mistake has never tried anything new.”
10. “Try not to become a man of success, but rather try to become a man of value”
11. “The secret to creativity is knowing how to hide your sources.”
12. “The difference between genius and stupidity is that genius has its limits.”
13. “Weakness of attitude becomes weakness of character.”
14. “Pure mathematics is, in its way, the poetry of logical ideas.”
15. “Nature shows us only the tail of the lion. But I do not doubt that the lion belongs to it even though he cannot at once reveal himself because of his enormous size.”
16. “Only a life lived for others is a life worthwhile.”
17. “It’s not that I’m so smart, it’s just that I stay with problems longer.”
18. “My religion consists of a humble admiration of the illimitable superior spirit who reveals himself in the slight details we are able to perceive with our frail and feeble mind.”
19. “Peace cannot be kept by force. It can only be achieved by understanding.”
20. “I never think of the future. It comes soon enough.”
21. “Do not worry about your difficulties in mathematics, I can assure you that mine are all greater”
22. “In order to form an immaculate member of a flock of sheep one must, above all, be a sheep.”
23. “The most incomprehensible thing about the world is that it is comprehensible.”
24. “Reality is merely an illusion, albeit a very persistent one.”
25. “Truth is what stands the test of experience.”
26. “Life is like riding a bicycle. To keep your balance you must keep moving”
27. “Insanity: doing the same thing over and over again and expecting different results.”
28. “Human knowledge and skills alone cannot lead humanity to a happy and dignified life. Humanity has every reason to place the proclaimers of high moral standards and values above the discoverers of objective truth.”
29. “Few people are capable of expressing with equanimity opinions which differ from the prejudices of their social environment. Most people are even incapable of forming such opinions.”
30. “Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen.”
- See more at: http://www.spiritscienceandmetaphysics.com/30-albert-einstein-quotes-that-will-open-your-mind/#sthash.oVEPkmHi.dpuf
NOTHING MEANS EVERYTHING
NOTHING MEANS EVERYTHING
Do you want to learn something new today? These four words are quite similar and it can be complicated to understand which one you need to use.
Something means a thing that is unknown. It is often used in positive sentences.
Anything means a thing of any kind. Use it in questions and negative sentences. It can also be used to to mean I don't mind.
Nothing means no single thing. Used as subjects of a sentence or question.
Everything means all the things. Use in affirmative, negative and interrogative sentences when we want to be inclusive.
In the following sentences, can you decide which word is needed? Read the sentence carefully and think about the context. Remember to look out for double negatives! Good luck.
Lesson by Caroline Devane
Do you want to learn something new today? These four words are quite similar and it can be complicated to understand which one you need to use.
Something means a thing that is unknown. It is often used in positive sentences.
Anything means a thing of any kind. Use it in questions and negative sentences. It can also be used to to mean I don't mind.
Nothing means no single thing. Used as subjects of a sentence or question.
Everything means all the things. Use in affirmative, negative and interrogative sentences when we want to be inclusive.
In the following sentences, can you decide which word is needed? Read the sentence carefully and think about the context. Remember to look out for double negatives! Good luck.
Lesson by Caroline Devane
sábado, setembro 07, 2013
SQL Injection
Verifique se você está vulnerável.
Na página provavelmente deverá estar +- assim:
url.com/?variavel=1
Adicione ao final: +or+1=1
?variavel=1+or+1=1
Na página provavelmente deverá estar +- assim:
url.com/?variavel=1
Adicione ao final: +or+1=1
?variavel=1+or+1=1
Falha no Php pode tirar servidores do ar
O bug já é antigo, mas tem muitos servidores que ainda não conseguem passar no teste.
Loop infinito tentando converter a série de dígitos "2.2250738585072011e-308", de string para ponto flutuante.
Versões 32 bits.
terça-feira, setembro 18, 2012
Lógica de Programação
Curso básico de lógica de programação
http://www.siban.com.br/destaque/21_carta.pdf
Lógica de Programação: Conceitos iniciais, Tipos de dados, Variáveis
http://www.youtube.com/watch?v=kGzFwgrZUXA
Algoritmos - Introdução
http://www.youtube.com/watch?v=3hv5_hWPIeo&feature=related
Fluxogramas
http://www.youtube.com/watch?v=Z-c-gHY44sc&feature=related
Como elaborar Fluxogramas
http://www.youtube.com/watch?v=s4SKYUd1nRg&feature=related
Autor: Paulo Sérgio de Moraes
http://www.siban.com.br/destaque/21_carta.pdf
Lógica de Programação: Conceitos iniciais, Tipos de dados, Variáveis
http://www.youtube.com/watch?v=kGzFwgrZUXA
Algoritmos - Introdução
http://www.youtube.com/watch?v=3hv5_hWPIeo&feature=related
Fluxogramas
http://www.youtube.com/watch?v=Z-c-gHY44sc&feature=related
Como elaborar Fluxogramas
http://www.youtube.com/watch?v=s4SKYUd1nRg&feature=related
sexta-feira, maio 04, 2012
GRUB multi boot boot-loader
Como arrumar seu boot no windows 7 após remover as partições com Linux
Depois de ter passado uma situação assim, vamos publicar a solução que é muito simples:
1. Acesse o prompt de commando do windows
2. Digite: X:\windows\system32\bootrec.exe /FixMbr
3. Reinicie
4. Prepare o churrasco que está pronto!
Em computação, GNU GRUB (ou apenas GRUB) é um multi-carregador de um sistema operacional (multi boot boot-loader) criado pelo projeto GNU.
É utilizado, normalmente, quando se deseja que um computador tenha dual booting, ou seja, que o usuário possa escolher ao iniciar a máquina, um sistema operacional (SO) dentre dois ou mais sistemas instalados.
Em termos técnicos ele é um programa que pode carregar qualquer arquivo (ficheiro) executável com um cabeçalho multi boot nos seus primeiros 8 kB. Este cabeçalho consiste uma sequência de bits com: 32 bits de um "número mágico", 32 bits de flags mais 32 bits de um outro número mágico seguidos pela imagem do arquivo executável. O GNU GRUB foi desenvolvido a partir de um pacote chamado GRand Unified Bootloader, de onde deriva o acrônimo GRUB.
O sistema operacional GNU utiliza o GRUB, assim como muitas distribuições GNU/Linux. Enquanto os "carregadores" tradicionais mantém uma tabela de blocos no disco rígido, o GRUB pode rastrear o sistema de arquivos.
Na sua versão do ano 2005 ele suportava os seguintes sistemas de arquivos:
ext2/ext3.
JFS da IBM.
Iso9660.
O sistema de arquivos do MINIX.
NTFS.
ReiserFS.
SGI's
XFS.
UFS/UFS2.
VFAT, assim como os sistemas FAT16 e FAT32 utilizado pelo Microsoft Windows.
O sistema nativo VSTa.
O GRUB também suporta a instalação em disquetes. Outros carregadores populares incluem LILO e SYSLINUX. Atualmente em desenvolvimento, o GRUB 2 substituiu o GRUB que passou a se chamar GRUB Legacy (ou, em português, GRUB legado).
O desenvolvimento do GRUB 2 pretende fundir os fontes com o projeto PUPA para criar a próxima geração do GNU GRUB. O GRUB suporta a adição de 14 cores em substituição ao fundo de tela negro.
Algumas distribuições que incluem o GRUB utilizam fundos de tela customizados. Os usuários também podem incluir as suas próprias customizações. [editar]O processo de carregamento do sistema operacional O BIOS busca um dispositivo que faça o carregamento do SO (normalmente um disco rígido) e move o controle para o MBR ou Master Boot Record. O MBR é situado nos 512 primeiros bytes do disco.
O MBR contém o estágio 1 do GRUB. Dado o pequeno tamanho deste estágio, ele apenas carrega o próximo estágio do GRUB (que pode residir em qualquer locação do disco). O estágio 1 pode carregar o estágio 1.5 ou o estágio 2 diretamente. O estágio 1.5 é localizado nos 30 primeiros Kb do disco imediatamente após o MBR. O estágio 1.5 carrega o estágio 2. O estágio 2 recebe o controle, e mostra ao usuário o menu com as opções de sistemas operacionais instalados no sistema.
O GRUB carrega na memória o núcleo do SO escolhido (ou o padrão) e passa o controle a este núcleo. (Para sistemas operacionais não suportados totalmente pelo GRUB, o controle é passado para outro carregador que continua o processo até carregar o núcleo em memória)
GRUB2 O GRUB2 é a nova versão do GRUB. Apresenta algumas mudanças como o fim do arquivo menu.lst. tags: fixboot, fixmbr
terça-feira, janeiro 10, 2012
How to Delete All Unstarred Emails in Gmail
How to Delete All Unstarred Emails in Gmail
Gmail has several options for storing and categorizing your email, including a star system that allows you to mark important emails. You can search your email based on the different available categories, including which emails are starred and which are not. Once you have all the unstarred emails loaded on the screen, you can use a shortcut to delete all of them at once.
Instructions
1
Sign in to your Gmail account.
2
Type "-is:starred" in the search box near the top of the screen and click "Search Mail." The "is:starred" search operator displays all your starred emails. Placing a "-" in front of it reverses the search and displays all your unstarred emails.
3
Press the black, down-facing arrow next to the blank box, and select "All." The blank box is located to the left of the "Archive" button above your email listing. All the emails in the list are highlighted. Note that the message "All 20 conversations on this page are selected" appears above the first email in the list.
4
Click "Select all conversations that match this search" next to the "All 20 conversations on this page are selected" message. The message "All conversations in this search are selected" replaces the original message.
5
Select "Delete" from the row of buttons above the email list. The message "This action will affect all conversations in this search. Are you sure you want to continue?" appears on screen.
6
Click "OK" to delete all the messages.
By William Pullman, eHow Contributor
Read more: How to Delete All Unstarred Emails in Gmail | eHow.com http://www.ehow.com/how_8792156_delete-unstarred-emails-gmail.html#ixzz1j4fm42Ig
Gmail has several options for storing and categorizing your email, including a star system that allows you to mark important emails. You can search your email based on the different available categories, including which emails are starred and which are not. Once you have all the unstarred emails loaded on the screen, you can use a shortcut to delete all of them at once.
Instructions
1
Sign in to your Gmail account.
2
Type "-is:starred" in the search box near the top of the screen and click "Search Mail." The "is:starred" search operator displays all your starred emails. Placing a "-" in front of it reverses the search and displays all your unstarred emails.
3
Press the black, down-facing arrow next to the blank box, and select "All." The blank box is located to the left of the "Archive" button above your email listing. All the emails in the list are highlighted. Note that the message "All 20 conversations on this page are selected" appears above the first email in the list.
4
Click "Select all conversations that match this search" next to the "All 20 conversations on this page are selected" message. The message "All conversations in this search are selected" replaces the original message.
5
Select "Delete" from the row of buttons above the email list. The message "This action will affect all conversations in this search. Are you sure you want to continue?" appears on screen.
6
Click "OK" to delete all the messages.
By William Pullman, eHow Contributor
Read more: How to Delete All Unstarred Emails in Gmail | eHow.com http://www.ehow.com/how_8792156_delete-unstarred-emails-gmail.html#ixzz1j4fm42Ig
segunda-feira, dezembro 19, 2011
Rich Faces && IceFaces
Demo RICH FACES
http://livedemo.exadel.com/richfaces-demo/index.jsp
Demo ICEFACES
http://component-showcase.icefaces.org/component-showcase/showcase.iface
http://livedemo.exadel.com/richfaces-demo/index.jsp
Demo ICEFACES
http://component-showcase.icefaces.org/component-showcase/showcase.iface
terça-feira, agosto 30, 2011
Setting up eclipse, subclipse and Visual SVN Server
Setting up eclipse, subclipse and Visual SVN Server
If you are tired of the usual copy all, zip backup your application files then I suggest you try using SVN. But let me clarrify, SVN is
not a backup management tool. Instead it's a way of properly tagging each file, fix/update wherein you can put comment in each change.
This will help us track our changes and reverse to a stable code when our code failed. (There are many articles about SVN just try googling it).
This tutorial assumes that an eclipse IDE (regardless which: java, php, etc) is already installed in your computer (windows OS).
In case not you can try downloading eclipse-java here: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-java-galileo-SR1-win32.zip. It's a zip file and can be extracted in your root drive like c:.
After download update your eclipse installation by clickng Help->Install New Software->Add and in Location type: http://subclipse.tigris.org/update_1.6.x. Restart your eclipse.
You may ask why use svn when eclipse already have a built in cvs, well personally I find svn more user friendly.
Now that our client is setup we need an SVN Server that can be deployed on a windows environment. I found Visual SVN which you can download here: http://www.visualsvn.com/files/VisualSVN-Server-2.0.7.msi. Install and add user.
How to add user to Visual SVN:
1.) Run Visual SVN
2.) Right click users->Create user
3.) Enter a name and password and click ok
How to create a repository
1.) Run Visual SVN
2.) Right click Repositories->Create repository
3.) For this tutorial enter "test" in the Repository Name
4.) Check "Create default structure...". This will initialize to have branches, trunk and tags in the root directory.
Now that we have a test repository, let's try creating a project using eclipse:
1.) Open up the eclipse IDE
2.) Select File->New->Other, then select SVN->Checkout Projects from SVN
3.) In the "Checkout from SVN" window select "Create a new repository location" click next
4.) In the Url field enter the location of our newly created "test" repository,
in case you forgot - in the Visual SVN window under Repositories, right click "test" and select "Copy URL to Clipboard"
5.) Then in the select folder, usually we are developing in the trunk folder so select it
6.) In the "Checkout from SVN", select "Check out as project configured using the New Project Wizard"
7.) Select "Java Project" and enter a name
8.) The SVN based project created should now appear in the eclipse ide
Now our SVN client and server are setup.
How to add a file and commit:
1.) Under src directory create a new class, named Test.java
2.) Right click Test.java, then select Team->Add to Version Control
3.) Finally to commit select the file or you can select the whole project->Team->Commit
Fonte: http://czetsuya-tech.blogspot.com/2009/10/setting-up-eclipse-subclipse-and-visual.html
If you are tired of the usual copy all, zip backup your application files then I suggest you try using SVN. But let me clarrify, SVN is
not a backup management tool. Instead it's a way of properly tagging each file, fix/update wherein you can put comment in each change.
This will help us track our changes and reverse to a stable code when our code failed. (There are many articles about SVN just try googling it).
This tutorial assumes that an eclipse IDE (regardless which: java, php, etc) is already installed in your computer (windows OS).
In case not you can try downloading eclipse-java here: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-java-galileo-SR1-win32.zip. It's a zip file and can be extracted in your root drive like c:.
After download update your eclipse installation by clickng Help->Install New Software->Add and in Location type: http://subclipse.tigris.org/update_1.6.x. Restart your eclipse.
You may ask why use svn when eclipse already have a built in cvs, well personally I find svn more user friendly.
Now that our client is setup we need an SVN Server that can be deployed on a windows environment. I found Visual SVN which you can download here: http://www.visualsvn.com/files/VisualSVN-Server-2.0.7.msi. Install and add user.
How to add user to Visual SVN:
1.) Run Visual SVN
2.) Right click users->Create user
3.) Enter a name and password and click ok
How to create a repository
1.) Run Visual SVN
2.) Right click Repositories->Create repository
3.) For this tutorial enter "test" in the Repository Name
4.) Check "Create default structure...". This will initialize to have branches, trunk and tags in the root directory.
Now that we have a test repository, let's try creating a project using eclipse:
1.) Open up the eclipse IDE
2.) Select File->New->Other, then select SVN->Checkout Projects from SVN
3.) In the "Checkout from SVN" window select "Create a new repository location" click next
4.) In the Url field enter the location of our newly created "test" repository,
in case you forgot - in the Visual SVN window under Repositories, right click "test" and select "Copy URL to Clipboard"
5.) Then in the select folder, usually we are developing in the trunk folder so select it
6.) In the "Checkout from SVN", select "Check out as project configured using the New Project Wizard"
7.) Select "Java Project" and enter a name
8.) The SVN based project created should now appear in the eclipse ide
Now our SVN client and server are setup.
How to add a file and commit:
1.) Under src directory create a new class, named Test.java
2.) Right click Test.java, then select Team->Add to Version Control
3.) Finally to commit select the file or you can select the whole project->Team->Commit
Fonte: http://czetsuya-tech.blogspot.com/2009/10/setting-up-eclipse-subclipse-and-visual.html
Assinar:
Postagens (Atom)



