Skip to main content

Posts

Showing posts from 2016

President - Association of Computer Engineering Students

I was selected to be the president of ACES, Association of Computer Engineering Students, the official student body of the Department of Computer Engineering Students. ACES Site :  aces.ce.pdn.ac.lk  It was a great opportunity to work with fellow undergraduates, lecturers, senior graduates, and industry. Until now We were able to organize few events in University of Peradeniya and Colombo. This event was organized by ACES Council, a group of 14 undergraduates. The events are, ACES Hackathon - This is an inner hackathon for undergraduates in the University of Peradeniya. ACES Hackathon, held annually for the last 5 years was held from the 29th of April to the 1st of May 2016 at the Faculty of Engineering, University of Peradeniya. The Hackathon brings together undergraduates from the Faculty of Engineering and Science for 3 days to develop their creative skills to provide innovative IT solutions. This year there were 150+ participants.   www.readme.lk/saw-ac...

Twitter login for web site - Tutorial

Youtube tutorial  https://www.youtube.com/playlist?list=PLfdtiltiRHWHRMnQjPn9G2c1_mbdST9Ao https://dev.twitter.com/web/sign-in https://dev.twitter.com/web/sign-in/implementing Twitter with angular js. http://www.sitepoint.com/building-twitter-app-using-angularjs/ http://devcenter.kinvey.com/angular/tutorials/how-to-implement-safe-signin-via-oauth http://code.tutsplus.com/tutorials/how-to-authenticate-users-with-twitter-oauth--net-13595 http://tech-read.com/2011/09/17/intergrating-twitter-oauth-using-javaspringtwitter4j/ http://twitter4j.org/en/code-examples.html

Google Summer of Code 2016

This year also I worked on Google Summer of code 2016. This year there were lot of changes from google side. First thing was that   Carol Smith from gsoc and new manager for gsoc is  Stephanie Taylor. After new manager, they left the old melange site and migrated to new site    summerofcode.withgoogle.com developers.google.com/open-source/gsoc/ This time I worked on proposal to create an rest api and ui for JBoss Unified KIE Server. Idea details KIE Management Application (with REST api and UI) Status:  Final Summary of idea:  Build management extension and UI for KIE Server The project is about creating management extension to KIE Server (lightweight embeddable rule, process execution server) to manage it remotely. Typical management operations are: - manage containers (deploy/undeploy, upgrade etc) - view process instances and perform administration actions on them like cancelling, migrating etc - view tasks as admin - delegate, f...

Reverse nested - ElasticSearch

https://www.elastic.co/guide/en/elasticsearch/reference/1.4/search-aggregations-bucket-reverse-nested-aggregation.html GET app_default/review/_search {   "query": {     "bool": {       "must": [         {           "match": {             "entityId": "CitizenMLondonBankside"           }         },         {           "match": {             "entityType": "Hotel"           }         },         {           "nested": {             "path": "details",             "query": {               "range": {               ...

REST VS SOAP

SOAP and REST both allow you to create your own API. API stands for Application Programming Interface. It makes it possible to transfer data from an application to other applications. An API receives requests and sends back responses through internet protocols such as HTTP, SMTP, and others.  Many popular websites provide public APIs for their users, for example, Google Maps has a  public REST API  that lets you customize Google Maps with your own content. There are also many APIs that have been created by companies for internal use. There are significant differences between SOAP and RESTful web services. The bullets below break down the features of each web service based on personal experience. REST RESTful web services are stateless. You can test this condition by restarting the server and checking if interactions survive. For most servers, RESTful web services provide a good caching infrastructure over an HTTP GET method. This can improve the performance...

Multiple controllers with AngularJS in single page app

base URL  :  http://stackoverflow.com/questions/24316355/multiple-controllers-with-angularjs-in-single-page-app down vote I think you are missing the "single page app" meaning. That doesn't mean you will physically have one .html, instead, you will have one main index.html and several NESTED .html file. So why single page app? Because this way you do not load pages the standard way (i.e. browser call that completely refreshes the full page) but you just load the content part using Angular/Ajax. Since you do not see the flickering between page changes, you have the impression that you didn't move from the page. Thus, you feel like you are staying on a single page. Now, I'm assuming that you want to have MULTIPLE contents for your SINGLE PAGE app: (e.g.) home, contacts, portfolio and store. Your single page/multiple content app (the angular way) will be organized this way: index.html: contains header,  <ng-view>  and footer contacts.html:...

@Autowired and @Service - Spring

First, and most important - all Spring beans are managed - they "live" inside a container, called "application context". Second, each application has an entry point to that context. Web applications have a Servlet,  JSF uses a el-resolver, etc. Also, there is a place where the application context is bootstrapped and all beans - autowired. In web applications this can be a startup listener. Autowiring happens by placing an instance of one bean into the desired field in an instance of another bean. Both classes should be beans, i.e. they should be defined to live in the application context. What is "living" in the application context? This means that the context  instantiates  the objects, not you. I.e. - you never make  new UserServiceImpl()  - the container finds each injection point and sets an instance there. In your controllers, you just have the following: @Controller // Defines that this class is a spring bean @RequestMapping ( "/use...