SfCropper Plugin…
March 25, 2008
Today, I wrote a simple plugin for Symfony, my favorite PHP MVC framework. It uses scriptaculous.js and Cropper.js (developed by David Spurr ) to crop images and create cropped images using PHP GD library.
![]()

You can download it by clicking here! Installation process is as simple as other Symfony plugins:
1.Unpack and Copy plugin files to your project plugin folder.
2. Enable module in your `settings.yml`:
{{{
all:
.settings:
enabled_modules: [default, sfCropper]
}}}
3. Put sfCropper web folder into your project web folder.
4. Clear you cache:
{{{
symfony cc
}}}
5.Use it:
<?php
use_helper(‘cropper’);
//cropper_image($image_name,$image_id=’crop1′,$default_crop=1)
cropper_image(‘test.jpg’);
?>
A City on the Hill…
March 25, 2008
These days, we are in celebration of Nowruz, beginning of the Iranian year. During the Nowruz holidays people are expected to visit one another (mostly limited to families, friends and neighbors) in the form of short house visits, which are usually reciprocated. Most people in Iran believe that whatever a person does on Nowruz will affect the rest of the year. So, if a person is warm and kind to their relatives, friends and neighbors on Nowruz, then the New Year will be a good one.
Today, I had this opportunity to visit a historical place called Uzbak Hill. Before this, I had tried so much for visiting this place but I couldn’t get authorization to enter the place! It was wonderful but with very regret! Uzbak Hill is 3500 years old and was the center of power for first Aryan governments. It is located in a small village in Nazarabad city near Tehran (85KM west). The first brick (adobe) that was built by human being was found in this region. Mr. Khatami in his presidency donated a brick from this place to United Nation as a symbol for world cultural communications. When I saw the place I felt that it is a forgotten sign of our culture that is abandoned and damaged! It needs more attention! I took some photograph from Uzbak Hill:
Spring is coming…
March 8, 2008
“We must become the change we want to see in the world.“- Mahatma Gandhi
+ We are living in a world that is facing many risks and Risks are of vital part of our lives, Risks that we feel explicitly or implicitly. Global Risks are increasing and seriously affect our lives. If we are looking to a better future, it is inevitable to consider risks and their side effects. In our decisions, each element should be properly organized to make risk mitigation as much as possible. Today, I was browsing World Economic Forum website and looked at its global risk program. It was good information about different types of risks around us: Economic Risks, Environmental Risks, Technological Risks and Geopolitical Risks. Noticeable point was that Middle East and especially Iran plays an important role in many Geopolitical Risks. Stability of this region can affect world economics,but in recent years we see many conflicts in this region .These conflicts stem from hyper power governments that are seeking their benefits in this region.I hope to see face of peace in Middle East!
+Today i had this chance to go to Tochal with my good friends,Tochal is a beautiful mountain at north of Tehran. Weather was very cool and i enjoyed talking with my friends about everything from Tech to Life. I saw an old man with high degree of power and hope for life, stronger that many modern young boys!
We are near Norooz(Celebration of new year in Iran),and Today was a good time for me to think about past year , activities and progress that i made.I hope to improve my knowledge in new year and make a good strategic plan for my life!Life is not only life!
+Today I received good news; it was acceptance of my paper in CIT2008! My paper was about a semantic web service oriented model for project management. As my first experience, it was hopeful and promising event.





