There was an error in this gadget

Wednesday, October 6, 2010

Thank you for PHPMatsuri!

PHPMatsuri 2010 took place on October 2nd and 3rd in Japan.
I took part in this event so I wrote my impression about it with not only tweeting but writing my blog.

You can look at the pictures at flicker

This event let me give a lot of things for just two days.

Workshop with core developers
In this event, the workshops of CakePHP, Lithium and Symfony2 were held on the afternoon of the first day.
Each core developer was the teacher of the workshop!

I have just been able to join the Symfony2 workshop. In this workshop, Kris Wallsmith showed us how to create an application, which is like a twitter with Symfony2 and Doctrine2.
It's very awesome!

We had seen how to solve when errors had occurred on the way to write codes and how to use the filter function of Textmate when searching the Doctrine methods.
And I was surprised that his typing of namespaces was too fast!

This workshop was in English at first, but thanks for @mackstar interpreting, we could communicated with each other.
And I thought it great that all participants would make a noble effort to understand by English and @hidenorigoto tried to ask him in English.

English or Die

@hyoshiok told us that English is very important for Japanese developers. I think so too and I felt it in this event indeed.
I think my English is not enough to communicate with others.
At symfony meet up Tokyo last year, I could hardly told with Fabien in English.
So, when I would decide to participate this event, I started to study English on my way to my office and join an English speaking society.
At the results, I think my English is still poor now but I could communicate a little with core developers, Nate, Joel, Graham and Kris.

At this time, as I tried to use Lithium and MongoDB to create an web service, I was very happy that I could ask a question to Nate and Joel directly.

From now, I would try to participate the conference abroad and send much information in English :-)

Sukonv?

I am developing an web service, Sukonv. It is a project with @hidenorigoto and @cakephper. And in this event, we wrote codes about this.
It is far from complete but We could show this application demo at the Hack Demo in the second day.

Sukonv is a web service for developers with php frameworks. Anyone will be able to post the tips for each framework and share them or search them.
And I could get the prize at the Hack Demo! Thank you a lot!

I experienced and leaned a lot from PHPMatsuri and I have recognized that I make use of this experience.

At the last, Thanks for the staffs which use all their resources to PHPMatsuri!

Monday, August 2, 2010

Shinshu Yutanaka Onsen tour to translate documentations

Last week end, I took part in the event to translate PHP framework documentations to Japanese together at the resort, Shinshu Yutanaka Onsen!



I translated "Gentle Introduction of symfony" documentations with members of Symfony Users Group, others translated about CakePHP, Zend Framework.

for a switch, We soaked in the outdoor hot tub, Roten-buro.
So we talked about many things: symfony, Symfony2, CakePHP and ZendFramework.

We had such a productive week end.

Tuesday, June 1, 2010

Symfony Japan web site is released!

Symfony Japan web site is released.

http://www.symfony.gr.jp/  (Japanese only)

This site provides symfony information and tips for Japanese symfony users in Japanese.
So, this site helps the spread of symfony in Japan than ever before :-)

Tuesday, March 16, 2010

update sfSimplePagePlugin

Thanks to basos, I updated sfSimplePagePlugin, which is a part of symfony plugins.

The sfSimplePagePlugin allows you to manage like static pages with symfony.
If you are stranger and interested in this plugin, you can read the overview in my page .


This release allow you to use a new component which can be called from another module's template. now this plugin can be used in both sf 1.3 and sf 1.4. If you want to know about this release, please read a  sfSimplePagePlugin page.

Friday, February 19, 2010

Try to customize the console script in Symfony2

Yesterday, Symfony Reloaded 2.0 Preview was released.
I have tried to use this by symfony-demo.

Symfony 2 is in marked contrast to symfony 1.x, for example, the amount of the directories in Root is only three: "web", "src" and "cart"! How simple!

I found "console" script in the cart directory. when I ran it with the "--shell" option in my console, "Symfony 2" message was displayed like below:

 
So I tried to customize this "Symfony 2" message to change another one.

Symfony 2 is written in PHP 5.3, so each class has "namespace". I copied the files to change from the Symfony 2 core directory and replaced the namespace below:
// namespace Symfony\Framework\WebBundle\Console; // original
namespace Bundle\CartBundle\Console; // new
 and replaced the use path in the console script, too:
//use Symfony\Framework\WebBundle\Console\Application; // original
use Bundle\CartBundle\Console\Application; // new
 I added an ASCII Art, which is the unofficial charactor of symfony that was born in the Japanese symfony comunity and twitter. Her name is "Symfo-Nyan", she is cute!

You can see the original in this page


OK, after adding the ASCII Art to the message, I ran the console again:




  I saw it is easy to customize Symfony 2 but if you are not used to using "namespace" with PHP, you should learn about it.

Tuesday, February 16, 2010

symfony session storage with using MongoDB

MongoDB is  an open source, scalable, high-performance, schema-free, document-oriented database written in the C++ programming language.((via: wikipedia))

symfony has the file session storage class, PDO session storage class but has no MongoDB session storage class.

So I wrote the symfony session storage class with using MongoDB.
You can use below.
http://github.com/brtriver/sfMongoSessionStorage

As a matter of course I don't think MongoDB is the best solution for session storage but it's faster than MySQL session storage.

configuration

If you use sfMongoSessionStorage class, you configure the factories.yml.

storage:
     class: sfMongoSessionStorage
     param:
       host: localhost          #hostname
       port: 27017              #port number
       db_name: symfony         #DB name
       collection_name: session #collection name

bench mark results

This is the bench mark results on my local machine.
$ ab -n 5000 -c 100 http://localhost/index.php

MySQL   => Requests per second:    10.86 [#/sec] (mean)
MongoDB => Requests per second:    16.61 [#/sec] (mean)

Default => Requests per second:    17.58 [#/sec] (mean)
MongoDB session storage is much faster than MySQL one.

I start a new blog in English

My name is Masao Maeda and my online name is brtRiver.
I am a web developer in Japan.
I want to study English and to make friends all over the world.
So I start to write a new blog about the snippets of the web development in English.
Please feel free to follow me "brtriver" on twitter.

Mainly about PHP (symfony, CakePHP and so on..), I'll post :)