Hacking life

"You cannot connect the dots by looking forward"

Castle of the Moors(Castelo dos Mouros) - Hill top Medieval Castle

Oct 3, 2014 · life · 3 minute read · Comments

This is another weekend trip as last one. It seems there are plenty of places to be covered in Portugal which is an amazing country with lots of beautiful people and places. So all the EMDC students got together for a weekend out. We decided to pay a visit to Sintra without knowing what exactly we would we be going to explore or it would offer. We knew that it had lots of attractions and that was all what we needed to know.

Read On →

Want to learn anything faster ?

Sep 19, 2014 · life · 2 minute read · Comments

 We are in a world with lot of learning opportunities. But how many stuff do we really learn ? What holds us back in learning new things faster? Learning how to learn is the greatest learning of all. I happened to read interesting reading from this blog [1] which had an amazing link mentioning about a guy who learned MIT 4 year course within 1 year. It starts with "My friend Scott Young recently finished an astounding feat: he completed all 33 courses in MIT’s fabled computer science curriculum, from Linear Algebra to Theory of Computation, in less than one year.

Read On →

Cabo Da Roca - Western Most Cape of Europe

Sep 17, 2014 · life · 2 minute read · Comments

 It is a new country for me and it is full of new places to travel. Luckily we have one friend at the apartment who knows the area pretty well. So we did not have much trouble in locating the places to visit but if you travel by public transport following information would be useful for you.   If you are near IST you need to travel from Alameda Metro station to Cais do Sodré station which is at the end of Green line.

Read On →

New window just opened ...!

Sep 17, 2014 · life · 1 minute read · Comments

  It has been a week since i have became a student once more in my life. I like the experience of recreating the feelings that i had when i was a student ago two years back. Since now this blog is full of technical content and i did not have much time to blog much about my other experiences. But now this is a new life so thought of doing the same to my blog.

Read On →

Error Recovery Mechanisms in WSO2 ESB with Store and Forward

Apr 8, 2014 · tech · 1 minute read · Comments

 You may be in a situation where you need to send messages reliably to an endpoint. There are couple of ways you can achieve that. WSO2 ESB provides store/forward pattern with a higher level of reliability and error recovery mechanisms. This post aggregate some of the comprehensive articles into a single piece.

Read On →

How to get a user profile for OAuth Token using JWT headers

Jul 18, 2013 · · 2 minute read · Comments

In this blog post lets discuss how you can retrieve user profile and view attributes of a user using only the OAuth token in WSO2 Identity server. I assume that reader is familiar with WSO2 identity server and if you need more help you can follow the documentation at Change the CARBON_HOME/repository/conf/identity.xml and make following attribute true. Then start the WSO2 Identity server. <AuthorizationContextTokenGeneration> <Enabled>true</Enabled> <TokenGeneratorImplClass>org.wso2.carbon.identity.oauth2.authcontext.JWTTokenGenerator</TokenGeneratorImplClass> <ClaimsRetrieverImplClass>org.wso2.carbon.identity.oauth2.authcontext.DefaultClaimsRetriever</ClaimsRetrieverImplClass> <ConsumerDialectURI></ConsumerDialectURI>

Read On →

How to disable automatic service creation with WSDL upload

Apr 22, 2013 · tech · 1 minute read · Comments

When you upload a WSDL to WSO2 Governance Registry it will create a Service Artifact automatically for that WSDL. But in case you do not want that to be automated and need to add services differently this is how to disable that feature. 1) Open GREG_HOME/repository/conf/registry.xml 2) Search for  <property name="createService">false</property>and uncomment them. There will be two locations generally for normal WSDL handler and for ZIP or archive based upload handler (Where you upload multiple WSDL files together).

Read On →

How to send CDATA inside your SOAP message payload

Mar 26, 2013 · tech · 1 minute read · Comments

(Please note this a temporary workaround and this will be addressed properly in future releases) If you need to send a SOAP message payload ever and if it resulted something like this. &lt;task:customerSchema>&lt;ext:value>&amp;lt;maxStops>2&amp;lt;/maxStops>&lt;/ext:value>&lt;/task:customerSchema> Because by default, a StAX parser must be in non coalescing mode (It overrides the default settings mandated by the StAX specification) and as a side effect of that parser coaelsce CDATA sections. [1]You need to add the XMLInputFactory.

Read On →

Make a Torrent downloader with Raspberry Pi in 3 steps :)

Feb 16, 2013 · · 1 minute read · Comments

If you are downloading torrents heavily with your highly capable machine, You are wasting a lot of resources. Why do not you use your Raspberry Pi to do it ;) I recieved a Raspberry Pi @ wso2con 2013. I was really happy after seeing this as i was planning to get down a one anyway. This is my first project out of it. Need some time to go for a real big project.

Read On →

Application Governance with WSO2 GReg and Jenkins

Feb 3, 2013 · tech · 5 minute read · Comments

This tutorial will show how you can automate the application Governance using WSO2 Governance Registry and Jenkins (for Build Automation). Pre-Requisites  WSO2 Governance Registry 4.5.1JenkinsA svn location to store build artifacts. Things to noteJenkins or similar build automation tool should be used to build the artifact and deploy it to the specific Dev SVN location. There are three SVN locations required for Dev , QA and Production artifact deployment. User needs to specify the exact name of the artifact (without the extension) as Application Name when adding the application to WSO2 Governance Registry.

Read On →