Last posts

Leaving the ship

At last, I can make this official.

Starting 30th of October I’ll leave Waterford Research Institute Romania. It was a pleasure to work and collaborate with Waterford Romania, but it is time to move forward to new challenges and new responsibilities.

So, the following steps will be to reboot (for the 3rd time) this blog, even there aren’t so much posts as expected, and redesign/rethink my whole online presence.

Thank you all!

CakePHP AMF /w Flex

After several hours of tests and deploys, I’ve managed to figure out a step-by-step guide to connect cakePHP to Flex3 through a AMF gateway. Please follow the steps closely, and if you have any questions, feel free to leave me a message. Good luck!

Update [May 20th, 2009] : This step-by-step guide is based on tools & tutorials made by Daniel from www.carrotplant.com

  1. Download flex example: http://carrotplant.com/en/blog/cpamf-flex-example
  2. Download php example: http://carrotplant.com/en/blog/cpamf-php-example
  3. Download CakePHP: http://cakephp.org
  4. Extract CakePHP in a folder ( lets say path_to_your_cakephp_folder )
  5. Edit hosts file ( /etc/hosts or C:\WINDOWS\system32\drivers\etc in most cases )
    1
    127.0.0.1       amf.local
  6. Edit httpd.conf ( Apache configuration file )
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    <VirtualHost *:80>  
        DocumentRoot C:/path_to_your_cakephp_folder/app/webroot
        ServerName amf.local

        <Directory "C:/path_to_your_cakephp_folder/app/webroot">
            Options Indexes FollowSymLinks Includes ExecCGI
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>  
    </VirtualHost>
  7. Setup Security.Salt in app/config/core.php and database settings in app/config/databases.php
  8. Execute cpamf.sql from cpamf-php-example
  9. Copy from cpamf-php-example into your path_to_your_cakephp_folder folder:
    • app/controllers/users_controller.php
    • app/models/user.php
    • app/plugins/cpamf/*
  10. Modify app/plugins/cpamf/vendors/amfphp/core/cakeamf/util/CakeMethodTable.php at line 74 with following:
    1
    2
    3
    $className = str_replace('\', '/', $className);
    $className = substr($className, strrpos($className, '
    /') + 1);
    $sourcePath = $servicePath . Inflector::underscore( $className ) . ".php";
  11. Access http://amf.local/cpamf/browser and set path of gateway to http://amf.local/cpamf/gateway (without .php at end)
  12. Create folder app/webroot/flex, and create a Flex 3 Project called amf.local with Flash Develop
  13. Download the latest version of Mate AS3 Flex Framework from http://code.google.com/p/mate-framework/ (eg.: Mate_08_7.swc)
  14. Put the Mate SWC file into the LIB folder of your Flex project ( app/webroot/flex/lib )
  15. Put content of cpamf-flex-example/src into the SRC folder of your Flex project ( app/webroot/flex/src )
  16. Put services-config.xml into the root of project ( app/webroot/flex )
  17. Edit services-config.xml at line 21, to point to the right gateway
    1
    2
    3
    <endpoint
        uri="http://amf.local/cpamf/gateway"
        class="flex.messaging.endpoints.AMFEndpoint" />
  18. Put the whole code of cpamf_test.mxml into Main.mxml, and keep cpamf_test.mxml for future uses
  19. Set properties for project ( right click on the project name, and then click on Properties )
    • Compiler Options » Additional Compiler Options » SET : -services=services-config.xml
    • Compiler Options » SWC Include Libraries » SET : lib/
    • Compiler Options » SWC Libraries » SET : lib/
  20. Test/Build the project and then you can access your swf at http://amf.local/flex/bin/amflocal.swf
  21. Enjoy! :)

“Justice for Poli” was officialy launched yesterday

After several months of pushing and pulling, Politehnica Timisoara fans and forumers have gathered and created a well documented site with all the information you need to know about their club’s records and colors scandal. This was the best way to inform the public opinion about the complicated situation of this club.

After presenting the official press release, the number of visitors has raised exponentially from 100/day to 800/day, and 2 days later from 800/day to 1950/day. Most visitors are from Romania (more than 85%), with the visitors from Germany coming closely (almost 5%). Visitors from France, USA, UK, Spain, Canada, Austria, Italy and Belgium (37 countries) were interested about the content of the site that was published in Romanian and 5 other world-wide-spread languages: English, German, French, Italian and Spanish. The average bounce rate for the moment is of 50%, and the average time on site is of 3 minutes, which means that visitors are interested about Politehnica’s situation.

Several key persons were instructed how to promote the site via email, and more then 600 mails were sent to newspaper specialists and football institutions from all over the world. The campaign has reached its goal, and now everybody in the team is waiting for the first days of April to see what TAS-CAF reserves them, as the decision upon the club’s records and colors will be taken.

Keep close, to find out more information. ;)
…or visit the site.

Update 2009.03.30: Here is the statistic for the week 2009.03.22-2009.03.29 and the geographical statistic for the same period.



Copyright © 2004–2009. All rights reserved.

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.