CakePHP 3.0.0 released

Finally the wait is over! On 22nd March 2015 the CakePHP team announced the availability of version 3.0.0 stable. There are a host of new features in the latest version.

Over at SANIsoft website we already have a bunch of posts related to CakePHP 3.0 are the links to a few old posts that were written about CakePHP 3.0

Do I have a negative remark about the framework? Well if I stretch my mind I would say this version once again breaks backward compatibility. However CakePHP version changes should be seen like LTS (Long Term Support) releases and in it’s 10 year history they have only 3 LTS releases so this is certainly way better than most of the other frameworks out there.

Bald for a cause at MUWCI

Worldwide, 160,000 children are diagnosed with cancer each year and despite tremendous progress, it remains a top disease killer of children. Like last year 23 first year students of MUWCI went Bald for a Cause and donated over 1.5 kg of hair to Children’s Cancer Centre for Lebanon. Aasim was one of them and I am proud of that.

From the Hair Donation Page of Children’s Cancer Centre for Lebanon.

Many patients lose their hair due to their cancer treatment. When our little princesses lose their hair, they often lose some self-esteem too. That’s why donating your hair to create a wig for our dear patients will make a difference in their lives.

The students made a nice video, Aasim can be seen at 1:54.

Bald for a Cause Worldwide

There is a lot of interest for Bald for a Cause events all over the world as can be seen from the following Google search https://www.google.co.in/webhp?q=bald+for+a+cause

Mutton Biryani in a Pressure Cooker

Traditionally you cook Mutton Biryani over a slow wood fire. Modern urban life does not lend itself to such indulgences. Swati who just launched her kitchen blog has learned and perfected the art of making the complete Dum Mutton Biryani in pressure cooker. Apart from the marination which can be anything between 3 hours to overnight the cooking time is just 40 min!

Mutton Biryani Subtle taste with melt in mouth tender mutton pieces
Mutton Biryani Subtle taste with melt in mouth tender mutton pieces

Head over to her blog and get the complete recipe. http://swatisani.net/kitchen/recipe/mutton-dum-biryani/

Some interesting tidbits about Biryani

There are two basic types of biryani: pakki (“cooked”, also pukka) and kacchi (“raw”, also kutchi). In pakki biryani, the cooked meat and cooked rice are layered. In the kacchi biryani, raw marinated meat is layered with raw rice before being cooked together. It is also known as kacchi yeqni. It is cooked typically with goat meat (usually ‘khasi gosht’, which is meat from castrated goats and often simply referred to as mutton) or with lamb, and rarely with chicken or beef. The dish is cooked layered with the meat and the yogurt based marinade at the bottom of the cooking pot and the layer of rice (usually basmati rice) placed over it. Potatoes are often added before adding the rice layer. The pot is usually sealed (typically with wheat dough) to allow cooking in its own steam and not opened till ready to serve. A boiled egg and mixed salad often accompanies the dish. It is featured in wedding feasts in Bangladesh, usually served with borhani, a spicy drink.

The non-vegetarian biryani may include chicken, mutton and sea food among types of meat. Although originally cooked with meat, biryani is now also cooked with vegetables, especially in India, where a substantial number of people practice vegetarianism. The vegetable biryani is prepared with rice, masala and non-meat ingredients such as potatoes and cauliflowers. Egg Biryani is another type of biryani.

Ref: http://en.wikipedia.org/wiki/Biryani

48

Sahir Ludhianvi has written both the verses

Kal aur ayenge nagmon ki
Khilti kaliyan choonewale
Mujhese behetar kahenewale
Tumse behetar sunnewale
Kal koi mujhko yaad karhey
Kyon koi mujhko yaad karhey
Masruf zamana mere liye
Kyon waqt apna barbadh kare

Versus

Tujhko Mujhko Jeevan Amrit, Ab In Haathon Se Peena Hai
Inki Dhadkan Mein Basna Hai, Inki Saanson Mein Jeena Hai
Tu Apni Adaen Baksh Inhen Maein Apni Wafaen Deta Hoon
Jo Apne Liye Sochi Thi Kabhi, Woh Saari Duaen Deta Hoon
Main Har Ek Pal Ka Shaayar Hoon…

Contrary to popular opinion I find that the first verse is more liberating!

View Cells in CakePHP 3 – A quick start!

Wrote about another new feature in CakePHP 3 – View Cells. In a short 4 step how to I explain how to create a Recent Posts Widget

The concept behind View Cells in CakePHP 3 has been around for a very long time. As per the book View cells are small mini-controllers that can invoke view logic and render out templates. Andy Dawson wrote about this in 2007. If I were to to summarise the use of View Cells I would say, “Think Widgets”

Read the blog post

Aasim in MUWCI – finally!

Aasim with his wada mates and wada parents

Aasim had been preparing for this day for almost an year! Finally today he is where he wanted to be – a first year at the Mahindra United World College of India abbriviated to MUWCI by almost everyone.

Several friends expressed concerns about us having to let go of Aasim. Thanks for that. Agreed, last 17 years our world revolved around Aasim. We changed directions when he was born, some even called it a U turn. (No! it was not) This is the day we have aspired for as a family. Nothing can sum up things better for me than what Khalil Gibran has written about parents in his poem “On Children

You are the bows from which your children
as living arrows are sent forth.
The archer sees the mark upon the path of the infinite,
and He bends you with His might
that His arrows may go swift and far.
Let your bending in the archer’s hand be for gladness;
For even as He loves the arrow that flies,
so He loves also the bow that is stable.

So yes my dear friends we are not just OK with Aasim flying. We are immensely proud and happy to see him fly. Thanks for being so concerned

Twitter bootstrap forms in CakePHP 3

Wrote about how to get Twitter bootstrap forms in CakePHP 3. Twitter bootstrap is probably the most popular of the CSS frameworks, getting to know how to manipulate the CakePHP 3 forms to use it is a useful thing to know.

So what are the thumb rules for using custom templates, Widgets and form helpers? For me

– Only markup changes – change just templates
– Conditional markup, amalgamation of input fields (think datetime inputs) – create widgets
– Additional processing of data, change in defaults like no label, no HTML 5 require checks by default – mess with custom form helper

Read the blog post

Change markup for pagination in CakePHP 3

Wrote about pagination in CakePHP 3 at the SANIsoft blog. Lots of things are changing in CakePHP 3, so decided to write a series about it.

CakePHP 3 introduces an elegant solution to this problem in the form of PaginatorHelper templates. PaginatorHelper templates allow you to easily separate the markup from your code and keep your code DRY. Let us try and use them. In this very short HowTo we will change the Pagination section to look from this

Read the blog post

Lycaon pictus, the African Wild dog.

Lycaon pictus

An endangered species, Lycaon pictus is a canid found only in Africa, especially in savannas and lightly wooded areas. It is variously called the African wild dog, African hunting dog, Cape hunting dog, African painted dog, painted wolf, painted hunting dog, spotted dog, or ornate wolf. I had an excellent opportunity to see these magnificent creatures for a long time when we were in Botswana. Spending almost 4 hours with the pack as they went about their business.

I got a whole lot of photos but this particular one of young adults galavanting around after a meal has a dynamic quality which i particularly loved. Unfortunately the species in under a threat due to various reasons. Continue reading Lycaon pictus, the African Wild dog.

Live forever Atul!

Sometime 1998/99: “Sweetheart Mr. Atul Chitnis himself replied to your email. You are going to write a review of GIMP for PCQuest!!”

This was our first contact with Atul, Swati was very unsure as to what will she write but another email from Atul and she was fine. Atul himself had edited the first draft of that review and had said it was good to go!

Atul, in his own words did not hack code – he hacked people. How he did it cannot be explained in words. It was something which was meant to be experienced.

The ITCom 2000: Aasim was 3 years old, could barely talk in Hindi and he would go up to Atul and just look up at him sitting in the corner chair, in turn Atul would look at him equally at loss as to what to talk. Aasim kept returning to him for next 12 years.

2001: An idea before its time – he trusted us to build it. SugarTrade did not take off but that taught us to think big!

He was a demigod for me, who became a friend. His style was brutally honest, no mincing of words but it always made sense if you heard him out. He would hear you out too if you had it in you! I have flamed and trolled Atul publicly at least 3 times but I can confess that on a personal level things never changed.

Atul trusted me, not only as a coder but as a doctor. That was a burden I gladly took upon…. that was the least I could do…

Atul they tell me you are no more!? WTF they are talking about, Yeah your physical self is not there with us anymore – you abused that kit too much for too long, something had to give way but no more? crazy people these – you will live forever Atul!!