Português Português English English

Buscador de disciplinas UnB 2009/1

Caros estudantes da UnB, a notícia abaixo estava no ponto para ser lançada, mas até agora nada da UnB disponibilizar a oferta para download do primeiro período de 2009. Com isso o buscador de disciplinas não tem como funcionar. Continuo aguardando a oferta 01/2009 ser disponibilizada no endereço abaixo:

http://ftp.unb.br/pub/lista_de_oferta/

Também estou na torcida para que a oferta seja disponibilizada a tempo pela UnB.

Com nova interface, o buscador de disciplinas da UnB por horário oferta 01/2009 está no ar. Para acessá-lo clique no link abaixo e boa sorte.

http://www.renandelima.com/buscador/2009/1

Tive um pouquinho mais de tempo e, portanto, outra novidade é que há a possibilidade de buscar por disciplinas obrigatórias e optativas do curso de biologia noturno. Caso alguém tenha interesse em evoluir essa ferramenta, como Igor Moreno já me prometeu :-P , por favor, fique a vontade em entrar em contato comigo.

Posted in Uncategorized | 1 Comment

Zend Framework vs PEAR, class loading war

I want to show you (PHP developer) that you must to be care about class loading when using Zend Framework with PEAR. Why don’t I suggest you to use Zend Framework with PEAR in PHP applications?

Zend Framework: Zend_Loader is the system classes loader, when it doesn’t find the class, an exception is throw.

PEAR: This library have some packages that tries load some classes (SOAP for example), but if these classes don’t exists, no problem, the application must be running yet.

We saw we have a ideology problem to solve. Sometimes class loader have to throw an exception, sometimes else not. I haven’t found a easy solution for that. I’ve had to do a cut corner for PEAR classes in my class loader.

That’s all folks. Good luck!

Posted in Development, PHP | No comments

I Encontro PHP-Paraíba

Saturday, November 29, 2008 the 1st PHP-Paraíba Meeting will happen. If you can’t be there (just like me) you can see it through the internet. The streaming broadcast will start at 10am (Brasília time) and url is http://php-pb.net enjoy!

Posted in Uncategorized | No comments

BackTrace 0.2

Before the end of this year, I did a good thing to get a nice cristhimas gift.

After hear to André Bacci for months about security problems in BackTrace library I have changed a default value and to create a new constant. Do not be afraid at this time, whole code and argument values are hidden by default.

The new release has came, see more at http://code.google.com/p/backtrace

Posted in Uncategorized | 1 Comment

all you need is love…

follow the song

Posted in Uncategorized | No comments

Ascending and Descending Order and Pagination with LDAP

LDAP hasn’t a good documentation. Users of wonderful database API’s may feel no good when using this technology in PHP.

I had one of these problems when I needed to paginate LDAP entries. The ldap_sort function sorts in ascending order only. Result: I had to do pagination and ordering in two direction using ldap_count_entries, ldap_sort, ldap_first_entry, ldap_next_entry, ldap_get_attributes, array_reverse and a bit of voodoo :-P . The result is in a post left in the ldap_search documentation.

see the solution here

Posted in Development, PHP | No comments

Projects at Google Code

Hello all. Usually I post releases, documentation and everything related of some my libraries in this blog.

I opted to create some projects at GoogleCode because I don’t want to post about it here. I think this will be better for all of us.

I announce too that the WSDLDocument 0.2 was relasead at http://code.google.com/p/wsdldocument. There is a wiki with changelog and usage tips.

The BackTrace library don’t have news, but you can see it at http://code.google.com/p/backtrace.

Posted in Development, PHP | No comments

Buscador de disciplinas UnB 2008/2

O buscador de disciplinas da UnB por horário oferta 02/2008 está no ar. Para acessá-lo clique no link abaixo e boa sorte.

http://www.renandelima.com/buscador/2008/2

Posted in Misc | No comments

WSDL + PHP = WSDLDocument

This post was made to release the WSDLDocument, a WSDL generator in PHP to webservices.

The way how some subjects are saying about TI hides the expert developer that exists inside a lot of professionals from our area. One of these subjects is webservices. It’s easy to do a client in PHP. But to do a server it’s necessary more work because the WSDL generation. Of course there are others things to look at during the development with webservices.

WSDLDocument

Why is to make WSDL in PHP difficult? A variable in PHP change its type during the script running. The webservices needs you declare the returns’ and arguments’ type.

The goal is look out it to generate the WSDL. To do this isn’t easy, but this isn’t as hard as find mustache on Elephant. So dear, the WSDL generation may be made with two steps:

  1. Find out the type of the parameters and returns of the services;
  2. Generate the XML.

The developer who implemented each service must to describe any where the types information. No more magic, ok? We’re not mage, we’re TI professionals. A good place to put it is the method documentation. The notations help us to solve this problem and keep our code well documented. With the types information we can generate the WSDL. The WSDL generation must to follow W3C stardards.

I release today the WSDLDocument!

This library isn’t a new thing. I did it - only - to improve my knowledges and to understand the WSDL structure. Some another libraries:

As someone may see the WSDLDocument extends DOMDocument. You create a instance of this and… go planet! You have a XML in your hand. You may - for example - link a XSLT file to show a bit beautiful on the browser. I didn’t want to be intrusive and oblige you change your framework. This have to be saw as a library to be put inside your application.

Above a sample how to use this library.

<?php

// generating the wsdl
$class "MyWebserviceClass";
$url "http://mydomain.com/?class=" $class;
$wsdl = new WSDLDocument$class$url );

// showing the wsdl
echo $wsdl->saveXml();

<?php

class MyWebserviceClass
{
    
    
/**
     * Transfering complex type.
     *
     * @param Person
     * @return integer
     */
    
public function anyMethodPerson $type )
    {
        
// ...
        
return 100;
    }
    
    
/**
     * Transfering array of complex type.
     *
     * @param integer
     * @return Person[]
     */
    
public function another$quantity )
    {
        
$list = array();
        for ( 
$i 0$i $quantity$i++ )
        {
            
array_push$list, new Person() );
        }
        return 
$list;
    }
    
}

class 
Person
{
    
    
/**
     *
     * @var string
     */
    
public $name "";
    
    
/**
     *
     * @var integer
     */
    
public $children "";
    
}

I will try keep this library updated. I’m busiest this time, because this I don’t know what it’ll happen.

download the WSDLDocument here

Posted in Development, PHP | 7 Comments

“hello world” denovo

I’m very happy to announce I’m going to write some things in English here.

My friends know I’m studying English. But nobody have to read my tries, the posts will still be written in Portuguese too. I would be happy if you want to give me some tips, fell free to do so!

Thank you Vitor Choi for showing me the Babel plugin. The posts have an icon to change the language easily.

News are coming…

Posted in Misc | 5 Comments
BrasilMato GrossoRondôniaDistrito Federal