Login system is finally on the way

October 8th, 2008

Just to let everyone know that the first stage of the PHPBridges Login system is finally in the launchpad repository that was opened for it.

So finally, after 6 months wait, the PHPBridges login system (one of the features asked BEFORE the script was even written) is on the way. I’m sorry to have taken so long but I wanted to make sure the system was secure and simple enough and I thinks this one covers it.

During it’s development I’ve been making the PHPBridges database connection a bit more modular and the changes should be dropping into the trunk as soon as I test the latest commit.

The concept is to have a small class that manages the connection to the database (probably keep the connection in a static variable if it’s possible) and have other smaller classes that extend the Database class and perform only specific functions (similar to what we have now for the admin database calls but script-wide). The purpose of this idea is to eventually allow some sort of module system to add features to the system.

But for now all this is an idea and the Login system is the most important bit I have to work on so I got to get cranking. Stay tunned.

How to fetch code [on Windows]

May 11th, 2008

I’ve been meaning to write this for quite some time now so here it goes: a step by step guide on the recommended way to get the code from the phpBridges project.
Read the rest of this entry »

New Layout

April 22nd, 2008

The Open-Source version of PHPBridges now has a new default layout, check it out:

PHP Bridges New Layout

The layout is a very simple design based arround the amazing Blueprint CSS Framework. It’s currently on the trunk along with some encoding/line-break fixes.

Name Chosen

March 23rd, 2008

And the name is chosen for the script: PHPBridges is the name (thank you Bruno).

You can find the code at the PHPBridges Launchpad Page.

Going Open Source

March 21st, 2008

Posts on this blog will be written in English from this point forward with the primary objective of reaching the widest possible audience.

With the development of the necessary functionality for a working TekPT Planet I have decided to license the script under the GNU Lesser General Public License v2.1 and release it to the wild since the only other good alternative for such a script is written in python (Planet Planet).

Still I’ll need some help for this: the script doesn’t have a name yet!

Sure “TekPT Custom Script” worked out great while it was used by a single website but now with the objective of releasing it to the wild it will need a better name. That’s why I’m asking you to tell me in the comments your thoughts on a good name for the script.

Pesquisa

March 16th, 2008

Finalmente, depois de bastante tempo sem perceber o que se passava, consegui colocar a pesquisa do TekPT a funcionar de forma aceitável… O código não está bonito, nem nada que se pareça, mas ao menos funciona e não obriga o servidor a uma paragem cardio-respiratória enquanto tenta fazer uma simples pesquisa.

O problema residia na implementação das Sub-Queries no MySQL: ela está inacabada e consequentemente levava minutos a resolver a simples subquery que eu utilizava… A solução rápida passou por pedir apenas os IDs dos posts e consequentemente chama-los um por um no php. O numero de queries feitas aumentou mas o resultado é uma pesquisa muito mais rápida.

O código será reescrito eventualmente mas para já serve. A questão do OR em vez do AND no entanto é outra questão ainda por resolver.

EDIT: Afinal parece que não vai demorar assim tanto. A pesquisa AND está concluida se bem que ainda precisa de muitos testes. Basicamente a solução passou por uma funcionalidade disponível na OracleDB chamada de INTERSECT.

Ao fazer a intersecção entre os resultados de dois SELECT tem-se uma pesquisa AND. Infelizmente este comando não existe no MySQL mas usando INNER JOIN chega-se ao mesmo resultado.

Agora falta mesmo é testar.

Feed transferida

February 11th, 2008

Depois de algum tempo de testes sem problemas de maior a feed do TekPT foi finalmente transferida para a versão de desenvolvimento, o resto do site no entanto mantém-se no sistema actual.

Isto sucede-se uma vez que a feed já se encontra, a meu ver, devidamente testada para justificar a transição enquanto o resto do sistema precisa ainda de mais maturação e da implementação de mais funcionalidades pelo que vos peço para me ajudarem a testa-lo.

A transição deve ser transparente cortesia do serviço de gestão de feeds do feedburner.

Mal começa…

February 1st, 2008

Mal começa arranja logo sarilhos o novo TekPT. Então não é que o titulo das feeds não apareçe quando são adicionadas ao Google Reader? Não faço ideia porque é que isto aconteçe já que as feeds validam perfeitamente na ferramenta da w3c, alguém sabe o que se pode estar aqui a passar?

Atrasado

February 1st, 2008

Bem, foi com uma hora de atraso em relação á minha prespectiva inicial mas aqui fica ela, a versão alpha do TekPT 2.0!

Podem já dirigir-se a http://dev.tekpt.net para acederem á mesma mas fiquem avisados que o icon do feedburner do lado direito ainda aponta para o rss antigo.

Qualquer bug ou problema que encontrem por favor avisem-me o mais rapidamente possivel. Eu não tive tempo de experimentar tudo e estou a tremer que nem varas verdes devido a este ser o meu primeiro website completamente feito de raiz.

PS: Quanto ao layout não se assustem, quando o site sair de alpha apresento algo novo.

Promessa

January 31st, 2008

Prometi colocar algo online sobre o novo TekPT ainda durante Janeiro mesmo que seja em estado Alpha e apesar de não saber se o vou poder cumprir já que só voltei ao código ontem vou dar o meu melhor.

Entretanto fiquem com o Kikkoman para recordar velhos tempos.

EDIT @ 23:18: Já falta muito pouco mesmo, estamos na recta da meta.

EDIT @ 00:26: Parece que não consegui ser rapido o suficiente… mas mesmo assim a v2.0 alpha está pronta para ser lançada, só mais uns minutos.