quarta-feira, 10 de julho de 2013

Primeiras instalações no linux

Instalação de alguns aplicativos para desenvolvimento no Fedora


1- Instalação do Lazarus
yum install lazarus

2- Instalação do MariaDB
yum install MariaDB-server MariaDB-client

Iniciar o serviço
sudo /etc/init.d/mysql start

3- Instalação do apache
# yum install httpd
# service httpd start


4- Instalação do MySQL
# yum install mysql mysql-server

Iniciando o serviço
# /etc/init.d/mysqld start ou # service mysqld start

5- Instalação do PHP
# yum install php mysql-php





quarta-feira, 17 de agosto de 2011

Programador "Ah morre diabo"

sexta-feira, 12 de agosto de 2011

Validar cpf com pascal

Program Verifica_CPF ;

var cpf,aux:string ;

vet:array[1..11] of integer;

Soma1,Soma2,d1,d2,i,convaux,coderro:integer;

Begin

        write('digite seu cpf: ');

        read(cpf);

        for i:=1 to 11 do

        begin

                aux:=cpf[i];

                val(aux,convaux,coderro);

                vet[i]:=convaux;

        end;



        Soma1:= (Vet[1]*10)+(Vet[2]*9)+(vet[3]*8)+(vet[4]*7)+(vet[5]*6)+(vet[6]*5)+(vet[7]*4)+(vet[8]*3)+(vet[9]*2);

        d1:= 11 -( soma1 mod 11);

        If (d1 = 10) or (d1=11) then

        D1:=0;



        Soma2:= (Vet[1]*11)+(Vet[2]*10)+(vet[3]*9)+(vet[4]*8)+(vet[5]*7)+(vet[6]*6)+(vet[7]*5)+(vet[8]*4)+(vet[9]*3)+(D1*2);

        d2:= 11- (Soma2 mod 11);

        if (d2=10) or (d2=11) then

        d2:=0;



        If (Vet[10] =D1) and (Vet[11] = D2) Then

        Begin

                WriteLn('CPF VALIDO');

                WriteLn(Vet[1],Vet[2],Vet[3],'.',vet[4],vet[5],vet[6],'.',vet[7],vet[8],vet[9],'-',vet[10],vet[11]);

        End

        Else

        WriteLn('CPF INVALIDO');

End.

sexta-feira, 8 de julho de 2011

A luta nerd do Século

segunda-feira, 4 de julho de 2011

Fisl 2011

Estive no fisl 2011 e estou postando algumas fotos, em breve escreverei mais sobre o evento.






quarta-feira, 2 de setembro de 2009

pequena historia do delphi

What Happened to "Borland Delphi"? What is CodeGear? What is Embarcadero?


Question: What Happened to "Borland Delphi"? What is CodeGear? What is Embarcadero?

Take a quick look at the box where your Delphi installation CDs (DVDs) are. Does it say "Borland Delphi" or "CodeGear Delphi" or "Embarcadero Technologies Delphi"?

If your box states that Delphi is a product from Borland company or from CodeGear company you are probably holding an older version of Delphi in your hands!

If you are still searching the Internet for "Borland Delphi" related content or if you are still talking to your friends about your programming language as "Borland Delphi" ... if you are confused and you are asking yourself what happened to Delphi and Borland ... read on to find out.

Answer: Back in 1995, a company called Borland revived its version of Pascal when it introduced the rapid application development environment named Delphi - turning Pascal into a visual programming language.

11 years later, February 2006, at the time when Delphi was in version 11, Borland decided to seek out a buyer for their IDE product lines that include Delphi, C++Builder, C#Builder, JBuilder, InterBase, JDataStore, nDataStore, Kylix, and the older Borland products and tools.

Borland Delphi -> CodeGear Delphi

November 2006. Borland announced its decision to separate the Developer Tools Group into a wholly-owned subsidiary focused on maximizing developer productivity, named CodeGear.

CodeGear was a new company born of Borland - a company totally focused on developers, but operating as Borland's subsidiary. Creating two separate businesses should have allowed both CodeGear and Borland to be successful in two important, but very different markets.

CodeGear Delphi -> Embarcadero Technologies Delphi

May 2008. Embarcadero Technologies has signed a purchase agreement to purchase CodeGear from Borland. Embarcadero and CodeGear are expected to create the world’s largest, independent software provider of development and database tools.

Embarcadero, a privately-held company, delivers professional database tools that companies use to design, develop and manage databases. Products include: ER/Studio, DBArtisan, Rapid SQL and Change Manager.

With the acquisition of CodeGear, Embarcadero empowers software developers and database professionals with award-winning tools to design, build, optimize, and run software applications and databases across multiple platforms and programming languages.

The King (Borland Delphi) is dead, long live the King (CodeGear Delphi by Embarcadero Technologies)

Summary: Don't panic! Delphi is alive and kicking!

What happened with Borland? After the acquisition (and even before) Borland turned to application lifecycle management solutions.

quarta-feira, 19 de agosto de 2009

Novo vírus infecta a Lib do Delphi

Foi descoberto ontem um vírus que injeta código na unit Sysconst.dcu da LIB

do Delphi versões 4,5,6 e 7, chamado "Induc". Com isso, todas as

aplicações compiladas com o Delphi vão, obviamente, carregar o vírus. A

remoção do vírus é simples, apague a DCU e renomeie a Sysconst.bak para

Sysconst.dcu (sim, o vírus é tão esperto que faz backup do arquivo!).
 

(c)2009 Felipe Govoni.