Menu

Category Archives: Uncategorized

In this blog,I will show you how to connect to Compose for MongoDB service on bluemix from our Node js application and then how to insert some data in to a collection.
First thing is that we need to create a new Compose for Mongo DB service On Bluemix.

In the credentials you will have uri which is important and you need only that to connect from your node application

Once you have these you can start with your Node js application.
You require mongodb npm package to connect to this.So you need to import this module other than the default modules.
We need to use MongoClient constructor to connect to mongodb

As I told earlier ,we need mongo uri to connect.We can directly hardcode that in our code or else we can bind a custom provided service(cups) to your bluemix application and access that value using VCAP_SERVICES.Second option is the best one as dont need any hardcoding.
So here we need to bind that service to our application on bluemix. In above code mongo is directly accessing that service. Now we need to capture the uri value from that and connect to mongo using the MongoClient which is done below

You can also directly hardcode your value for mongo.uri value if required.
So once you have your mongo connection,you don’t need to connect every time when you need to add some data or insert anything using rest call .You just need to use mongoDbConn .
In below example I will show you a POST call which will insert data in to a collection using mongoDbConn

So this way can easily connect to your MongoDB on bluemix service from your node js application.
Note:You can combine all the 3 code snippets in order and it will work.
If you face any issues in connecting you can comment here.
Hope it helps someone!

There are number of functional components in IBPM Iam going to tell the basics of those components.

Process Center:

It is the brain of BPM.We cannot work without a process center because that’s where development happens.The process center is called as a shared model.It means that,no matter what is being done with the over all solution,there is only one common repository and a single representation of that solution.Because of this, it is impossible to get two phases of the same solution out of synch with each other.

For example two people are working on same artifact at a time(eg:bpd).For one who works first will be editable and for the other it will be read only until the first person saves.Thus the data will always be in synch.

The process center is actually comprised of three components:

Process Center Server:

Enables you to run the processes as you build them.When your process is ready you can run that on test,production environments.Thus the process server will provide different run time environments where the developer can run the processes at different stages.

Process Center Repository: It is responsible for managing the solution’s artifacts.

Performance Data WareHouse:

It is responsible for collecting and managing the historical data of all the BPD’s and tasks that are run in the process server instances or the process center environment

Tributes have flown in from around the world for South Africa’s revered anti-apartheid icon Nelson Mandela, who has died aged 95.

Mr Mandela – who was often referred to in his home country by his clan name Madiba – passed away peacefully at his Johannesburg home.

South African president Jacob Zuma announced the news of Mandela’s death, saying in a nationally televised address: “Fellow South Africans, our beloved Nelson Rohlihla Mandela, the founding president of our democratic nation, has departed.”

He added: “Our people have lost a father. Although we knew this day was going to come, nothing can diminish our sense of a profound and enduring loss. His tireless struggle for freedom earned him the respect of the world. His humility, passion and humanity, earned him their love.”

Barack Obama

US president Barack Obama said he considered himself among the “countless millions who drew inspiration from Nelson Mandela’s life”, and the world was unlikely to see the likes of him again.

pic::obama stands in mandela’s old prison cell on Robben island near capetown

“He achieved more than could be expected of any man and today he’s gone home and we’ve lost one of the most influential, courageous and profoundly good human beings that any of us will share time with on this Earth. He no longer belongs to us, he belongs to the ages,” America’s first black president said in a televised White House address.

“Through his fierce dignity and unbending will to sacrifice his own freedom for the freedom of others, Madiba transformed South Africa and moved all of us. His journey from a prisoner to a president embodied the promise that human beings and countries can change for the better.

“His commitment to transfer power and reconcile with those who jailed him set an example that all humanity should aspire to, whether in the lives of nations or our own personal lives. The fact that he did it all with grace and good humour and an ability to acknowledge his own imperfections only makes the man that much more remarkable.”

David Cameron

British prime minister David Cameron said, “A great light has gone out in the world”, adding that flags at Number 10 Downing Street would be flown at half-mast in tribute to Mandela.

“Nelson Mandela was a towering figure in our time; a legend in life and now in death – a true global hero,” Mr Cameron said in a statement.

“Meeting him was one of the great honours of my life. My heart goes out to his family – and to all in South Africa and around the world whose lives were changed through his courage”

Tony Abbott

Prime Minister Tony Abbott paid tribute to Mandela during a radio interview on 3AW.

“Nelson Mandela was one of the great figures of Africa, arguably one of the great figures of the last century,” he said.

“A truly great man. And while I never met him, I did read that book A Long Walk To Freedom, and I guess the impression we get of Nelson Mandela is someone who suffered but was not embittered but ennobled through that suffering.”

Queen Elizabeth II and Prince Charles

Queen Elizabeth II said she was “deeply saddened” by the death of Mandela, adding that he had “worked tirelessly for the good of his country”.

“The Queen was deeply saddened to learn of the death of Nelson Mandela last night. He worked tirelessly for the good of his country, and his legacy is the peaceful South Africa we see today,” Buckingham Palace said in a statement.

Mr Mandela was the embodiment of courage and reconciliation.

Prince Charles

“Her Majesty remembers with great warmth her meetings with Mr Mandela and sends her sincere condolences to his family and the people of South Africa at this very sad time.”

Prince Charles also paid tribute to the iconic anti-apartheid fighter, describing him as an “inspired leader and a great man”.

“Mr Mandela was the embodiment of courage and reconciliation. He was also a man of great humour and had a real zest for life,” he said.

“With his passing, there will be an immense void not only in his family’s lives, but also in those of all South Africans and the many others whose lives have been changed through his fight for peace, justice and freedom.

“The world has lost an inspired leader and a great man. My family and I are profoundly saddened and our thoughts and prayers are with his family.”

ANC

South Africa’s ruling party, the African National Congress, said that in its one-time leader South Africa had lost “a colossus, an epitome of humility, equality, justice, peace and hope of millions”.

“His life gives us the courage to push forward for development and progress towards ending hunger and poverty,” the party said in a statement.

F.W. de Klerk

South Africa’s last white president, F.W. de Klerk, said Mandela’s greatest accomplishment was to unify the country and push for reconciliation between blacks and whites in the post-apartheid era.

“He was a great unifier and a very, very special man in this regard beyond everything else he did. This emphasis on reconciliation was his biggest legacy,” Mr de Klerk said in an interview with CNN.

Mr De Klerk, who released Mandela from prison in 1990 and then negotiated the end of apartheid, called Mandela a “humane” and “compassionate” man who was able to understand the fears of South Africa’s white minority in the transition to democracy.

Mandela and Mr de Klerk shared the 1993 Nobel Peace Prize for ending minority white rule and laying the foundations of democracy, with Mr De Klerk going on to serve as one of two deputy presidents in Mandela’s government after the ANC won the 1994 elections.

Desmond Tutu

South Africa’s archbishop emeritus Desmond Tutu lauded his compatriot and fellow Nobel peace laureate as the man who taught a deeply divided nation how to come together.

Angela Merkel

German Chancellor Angela Merkel said Mandela’s name would always be associated with the fight against the oppression.

“Not even years in prison could break Nelson Mandela or make him bitter – a new, better South Africa eventually emerged out of his message of reconciliation,” she said.

“Nelson Mandela’s shining example and his political legacy of non-violence and the condemnation of all forms of racism will continue to inspire people around the world for many years to come.”

Francois Hollande

French president Francois Hollande said in a statement that: “Nelson Mandela made history. That of South Africa and the whole world. Nelson Mandela’s message will not disappear. It will continue to inspire fighters for freedom, and to give confidence to peoples in the defence of just causes and universal rights.”

Benjamin Netanyahu

Israeli prime minister Benjamin Netanyahu described Mandela as “one of the most honorable figures of our time”.

He was the father of his people, a man of vision, a freedom fighter who rejected violence.

Benjamin Netanyahu

“He was the father of his people, a man of vision, a freedom fighter who rejected violence,” he said.

“He set a personal example for his people in the long years he spent in prison. He was never arrogant. He worked to mend the tears in South African society and with his character managed to prevent outbursts of racial hatred.”

Aung San Suu Kyi

Myanmar veteran democracy advocate Aung San Suu Kyi described Mandela as a “great human being who raised the standard of humanity”.

“I would like to express my extreme grief at the passing away of a man who stood for human rights and equality,” she said.

“He made us all understand that nobody should be penalised for the colour of their skin or for the circumstances in which he is born.

“He also made us understand we can change the world by changing attitudes, by changing perceptions.”

Enda Kenny

The boy from the Transkei has finished his long walk.

Enda Kenny

Irish prime minister Enda Kenny said Mandela transformed not only South Africa, but humanity itself.

“The name Mandela stirred our conscience and our hearts. It became synonymous with the pursuit of dignity and freedom across the globe,” he said.

“Today, a great light has been extinguished. The boy from the Transkei has finished his long walk. His journey transformed not just South Africa, but humanity itself.”

Bill Clinton

Former US president Bill Clinton, who was in office when Nelson Mandela took power in South Africa, mourned the death of a “champion for human dignity and freedom”.

“Today the world has lost one of its most important leaders and one of its finest human beings,” Mr Clinton said in a statement.

“History will remember Nelson Mandela as a champion for human dignity and freedom, for peace and reconciliation.

The Clinton and Mandela families became close, with the former US president visiting Mandela on the eve of his 94th birthday.

“Hillary, Chelsea and I have lost a true friend,” Mr Clinton said.

“All of us are living in a better world because of the life that Madiba lived. He proved that there is freedom in forgiving, that a big heart is better than a closed mind, and that life’s real victories must be shared.”

George H.W. Bush

Former US president George H.W. Bush said Mandela changed the course of history.

“As president, I watched in wonder as Nelson Mandela had the remarkable capacity to forgive his jailers following 26 years of wrongful imprisonment – setting a powerful example of redemption and grace for us all,” he said.

“He was a man of tremendous moral courage, who changed the course of history in his country.”

Tony Blair

He made racism everywhere not just immoral but stupid.

Tony Blair

Former prime minister Tony Blair recalled Mandela as “a wonderful man to be around, with a sharp wit, extraordinary political savvy and a lovely way of charming everyone in a building”.

“Through his dignity, grace and the quality of his forgiveness, he made racism everywhere not just immoral but stupid; something not only to be disagreed with, but to be despised. In its place he put the inalienable right of all humankind to be free and to be equal,” Mr Blair added.

Mohamed ElBaradei

Mandela’s fellow Nobel laureates were among those paying tribute, including the Egyptian former head of the IAEA nuclear watchdog Mohamed ElBaradei, who declared: “Let freedom reign. Humanity has lost its greatest son”.

Malcolm Fraser

He wasn’t one of the great men of the last century, or of this. He was head and shoulders above anyone else from the last century.

Malcolm Fraser

Former Australian prime minister Malcolm Fraser described Mandela as a towering figure of the last century.

“It’s very hard to find the words to do justice to Mandela, because he wasn’t one of the great men of the last century, or of this,” he said.

“He was head and shoulders above anyone else from the last century.”

Goodluck Jonathan

Nigerian president Goodluck Jonathan said Mandela’s death “will create a huge vacuum that will be difficult to fill in our continent.”

“He will be sorely missed by all who cherish love, peace and freedom the world over…”

Xi Jinping

Chinese president Xi Jinping described Mandela as an “active champion of bilateral friendship and cooperation” and “one of the founders of China-South Africa relations”.

“Mr Mandela was a world-renowned statesman, who during the long years led the South African people through arduous struggles to the anti-apartheid victory, making a historic contribution to the establishment and development of the new South Africa,” he said.

Oprah Winfrey

Being in his presence was like sitting with grace and majesty at the same time.

Oprah Winfrey

American talk show host Oprah Winfrey added her voice to the tributes, saying Mandela “will always be my hero”.

“One of the great honours of my life was to be invited to Nelson Mandela’s home, spend private time and get to know him,” she said.

“He was everything you’ve ever heard and more – humble and unscathed by bitterness. And he always loved to tell a good joke.

“Being in his presence was like sitting with grace and majesty at the same time. His life was a gift to us all.”

Morgan Freeman

Actor Morgan Freeman played Mandela in Clint Eastwood’s 2009 film Invictus about the events surrounding the World Cup.

“Today, the world lost one of the true giants of the past century… a saint to many, a hero to all who treasure liberty, freedom and the dignity of human kind,” he said.

Nicolas Maduro

Venezuelan president Nicolas Maduro declared three days of national mourning.

“Nine months since the passing of our comandante [Hugo Chavez], another giant of the people of the world passed away today. Madiba, you will live forever!” Maduro said on Twitter.

Jimmy Carter

The people of South Africa and human rights advocates around the world have lost a great leader.

Jimmy Carter

Former US president Jimmy Carter said that Mandela’s death meant that people “around the world have lost a great leader”.

“His passion for freedom and justice created new hope for generations of oppressed people worldwide, and because of him, South Africa is today one of the world’s leading democracies,” he said.

Shinzo Abe

Japanese prime minister Shinzo Abe said Mandela “fought for the abolition of apartheid with strong will”.

“On nation building, he made a major achievement with focus on the reconciliation of the people. He was a great leader,” he said.

pic::Apple, Microsoft and BlackBerry have been offering online utilities, namely Find My iPhone, BlackBerry Protect, and Find My Phone, respectively, that let owners of phones track the location of their handsets, lock them, trigger an alarm and wipe data remotely, for a long time.

Soon after a Kiwi entrepreneur developed a novel smartphone app that can monitor users’ outdoor activities and ensure they get home safe, Google has come out with a new tool that will let users track their lost Android phones on a map. Not just track, the user can even ring and remotely erase all the data on the phone.

Apple, Microsoft and BlackBerry have been offering online utilities, namely Find My iPhone, BlackBerry Protect, and Find My Phone, respectively, that let owners of phones track the location of their handsets, lock them, trigger an alarm and wipe data remotely, for a long time. Google is late to the party. However, making the utility a part of Android would benefit a large number of users. Handset makers like Samsung and HTC already offer similar tools with their Android phones – yes, Google did not offer the same on its own phones! Sony had also started rolling out its remote security service “my Xperia,” in July.

While third-party services offered by companies like McAfee, Norton, Quickheal and Kaspersky, among others also offer mobile security services, they charge users for the service.

In a post on the official Google blog, Benjamin Poiesz, an Android project manager, wrote, “Android Device Manager can help (you)… keep your device and the data you store inside your phone safe and secure.”

Android Device Manager will allow users to make their misplaced phone ring at its loudest volume even if it is in silent mode. However, users will be able to do this through Android Device Manager, website though Google said that it would also offer an Android app for the service at a later date.

In case you have lost your phone outside your house you will be able to see the device on a map if it is switched on and follow it in real-time. It may help you recover the phone. But in case it can’t be recovered, Android Device Manager will allow users to wipe it securely so that the private data doesn’t fall in wrong hands.

“While losing your phone can be stressful, Android Device Manager can help you keep your data from ending up in the wrong hands,” wrote Poiesz.