Archive for the ‘Tangra Framework for PHP’ Category

MySQL “Create table” to ADODB XML Schema (AXMLS) converter

Tuesday, September 23rd, 2008

During the development of Tangra CMS installer I found that it is really annoying when you have to convert multiple tables from MySQL CREATE TABLE to Adodb’s XML schema format by hand. I had to convert more than 20 tables and I decided to write simple converter that will automate this task. The result is MySQL “Create table” to ADODB XML Schema (AXMLS) converter

Generally speaking it takes something like:

CREATE TABLE `users` (
  `id` int(10) unsigned NOT NULL,
  `username` varchar(50) NOT NULL,
  `password` varchar(50) NOT NULL,
  `disabled` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `i_username` (`username`),
  KEY `i_check_login` (`username`,`password`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

as an input and as output generates: (more…)

New site launched: MLB baseball tickets mlbticketsstore.com

Sunday, August 31st, 2008

Few days ago I finally got done with last enhancements on new site commisioned by US SEO guys. It is about MLB baseball tickets. Main features:

  • harvests baseball tickets data from several sources. Harvest tooks about 3,5 hours which is kind of too much but I hope that when new dedicated server is up and running we will lower the harvest time (altough tickets count is reached 600K+ and soon we will have to switch to more powerful RDBMS like PostgreSQL);
  • detects visitors’ country and state by IP and shows appropriate content targeted at that area (i.e. shows events and tickets for teams from that state);
  • have “special” treatment toward googlebot - it is more friendly, i.e. for usual visitors content on index.php is changing each time (if bot is detected). For googlebot we made friendly 1 hour cache, so it will not see changed content all the time (but once per hour);
  • it has extensive control panel that allows import from different CSV files with venues, events, genres, etc items maintaning in the same time DB integrity and eliminating duplicate data;
  • sitemap.xml is generated automatically for all semidynamic pages;
  • site is built using Tangra PHP framework;

We still have a lot of work to do on this site but State 1 is completed and site is now released and online.

Да напишеш насила captcha модул

Friday, July 11th, 2008

В последните дни за занимавах да направя user registration модул за моя Tangra Framework for PHP. Както и се очакваше - грандоманията в мен отново надделя и вместо на спретна набързо едно модулче с проста формичка за user details, аз се отплеснах и направих чудовищна форма с всички възможни полета за които се сетих, че е конфигурируема отгоре на това (т.е. може да се избере като се настройва сайта кои полета да се показват и кои да са задължителни).

Както и да е, направих регистрацията, админа и т.н. но в един момент покрай правенето на страница за “Resend activation email” е усетих, че злонамерени келеши могат да я използват за много успешна DOS атака. Налагаше се да сложа captcha.

Разрових се из интерсвинщината, (more…)

Нов release на Tangra framework - 2.0.0dev5

Friday, June 27th, 2008

tangra.jpgДнес беше хубав ден за публикуване на новата версия на Танграта.

От няколко дни се глася да я пусна, но все не оставаше време покрай други задачи.  Добре, че се появи един разработчик, който постна 2 бъг доклада в тракера, та се присетих и общо взето цял ден се занимавах с подготвянето на release пакета, обновяване на wiki-то и най-вече поправка на някакви глупави проблеми, които сам си създадох покрай прочистването на Control Center-а - бях забърсал директорията, която съдържа страниците за първоначална инсталация.

Имаше едно правило, че е добре да се публикуват нови версии по-начестичко, нищо, че не предлагат кой знай какво ново. Това е много добра идея най-малко по две причини: (more…)