[Dev] Running unit test form IDE error - Input file does not exist: maven-resources

2016-03-23 Thread Manuranga Perera
I can't run unit tests form Intellij 16 in repositories that depends on C5
parent. It gives an error [1]. But it works if I modify the parent pom. As
far as I have tested this change have no other effect. I have sent it as a
PR [2]

Does this issue happen to anyone else?

[1] "Error:osgi: [] Input file does not exist: maven-resources"
[2] https://github.com/wso2/carbon-parent/pull/18
-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DAS - How to change the schema of a table

2016-03-23 Thread Damith Wickramasinghe
Hi Sachith ,

Thanks. I missed it .

Regards,
Damith.

On Thu, Mar 24, 2016 at 12:13 PM, Sachith Withana  wrote:

> Hi Damith,
>
> You can find it here :
> https://docs.wso2.com/display/DAS301/Spark+Query+Language
>
> Thanks,
> Sachith
>
> On Thu, Mar 24, 2016 at 12:07 PM, Damith Wickramasinghe 
> wrote:
>
>> Great Thanks a lot. :) @Niranda does your method mentioned in DAS docs.
>> If not shall we add it. Its a helpful function.
>>
>> Regards,
>> Damith.
>>
>> On Thu, Mar 24, 2016 at 11:48 AM, Niranda Perera 
>> wrote:
>>
>>> Hi Damith,
>>>
>>> you can set the schema again from Spark script also. you can write a
>>> query llike this
>>>
>>> create temporary table  using CarbonAnalytics options (tableName
>>> "", schema "", mergeSchema "false");
>>>
>>> On Thu, Mar 24, 2016 at 11:31 AM, Gimantha Bandara 
>>> wrote:
>>>
 Hi Damith,

 You can set update the existing schema using the REST APIs directly as
 mentioned here [1]. The table name cannot be removed from DAS.

 [1] https://docs.wso2.com/pages/viewpage.action?pageId=50505976

 On Thu, Mar 24, 2016 at 9:37 AM, Damith Wickramasinghe <
 dami...@wso2.com> wrote:

> Hi all,
>
> I have already created a table with some columns using spark queries
> and inserted some data. But I need to add another column to it. Is there a
> way to directly achieve this ? Or do I have to drop the table and
> reinitialize it ? Also I cannot seems to find a way to remove the table
> also ? I have purged all data in said table.
>
> Regards,
> Damith.
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


 --
 Gimantha Bandara
 Software Engineer
 WSO2. Inc : http://wso2.com
 Mobile : +94714961919

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>
>>
>>
>> --
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315 <%2B94728671315>*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sachith Withana
> Software Engineer; WSO2 Inc.; http://wso2.com
> E-mail: sachith AT wso2.com
> M: +94715518127
> Linked-In: 
> https://lk.linkedin.com/in/sachithwithana
>



-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

mobile: *+94728671315*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [REST APIs][Analytics] GET request with a payload

2016-03-23 Thread Ayoma Wijethunga
Agreed. Then again, if user needs to include more columns than he needs to
exclude we can introduce something like below and use the most suitable
depending on the length.

service?*include*=column1,column2*- only include columns specified by
user*
service?*exclude*=column1,column2   *- include all columns, excluding what
is provided by user*

Then again, there are even lower level limitations such as InnoDB limit on
maximum 1000 columns [2].

If we really have such as use case where this list can grow more than 2000
characters, maybe it is best to use POST only for such abnormal scenarios.

[1]
http://stackoverflow.com/questions/15090220/maximum-length-for-url-in-chrome-browser
[2] http://dev.mysql.com/doc/refman/5.7/en/column-count-limit.html

On Thu, Mar 24, 2016 at 12:03 PM, Udara Liyanage  wrote:

> Hi,
>
> IMO by using POST to do a GET  we are violating REST principals and may
> confuse users. You can see a query type API in [1] used by StackOverflow
> API. According to [2], it seems  about 2000 characters are allowed  most
> browsers which is a pretty large number where a normal GET request is
> highly unlikely to exceed in practical situation regardless of the number
> of fields exist.
>
>
> [1] https://api.stackexchange.com/docs/users
> [2]
> http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers
>
> On Thu, Mar 24, 2016 at 11:38 AM, Gimantha Bandara 
> wrote:
>
>> Thank you for your suggestions.
>> We cannot exactly say that the number of columns/fields user will need.
>> It depends on how many fields a table has and how many the user want to get
>> from that table. So the url length might exceed. If so, we will have to go
>> with a new method with POST as it seems the only option.
>>
>> On Wed, Mar 23, 2016 at 9:34 PM, Lahiru Sandaruwan 
>> wrote:
>>
>>> Yes, if it is possible to put the columns names in the url as Ayoma
>>> mentioned, we must use that(First i thought it is a complex payload you
>>> want to send).
>>>
>>> Unless there are limitations, like column list doesn't exceed the url
>>> length limits, we should use GET.
>>>
>>> Thanks.
>>>
>>> On Wed, Mar 23, 2016 at 3:54 PM, Ayoma Wijethunga 
>>> wrote:
>>>
 Hi,

 It is true that using GET request with a payload is not the best
 option. Even though it is not strictly prohibited in specs, it can be
 confusing [1]. REST architecture is very open about how we use HTTP
 methods, but thinking in terms of REST architecture, I do not think using
 POST is also the correct approach here [2] (maybe it is just the personal
 preference).

 Let me summaries few examples on how others have addressed the same
 requirement with GET requests.

 Facebook Graph API is using "field" query parameter for this [3]. For
 example :

 Following Graph API call 
 *https://graph.facebook.com/bgolub?fields=id,name,picture
> * will only
> return the id, name, and picture in Ben's profile
>

 SharePoint syntax is not very eye candy [4][5], but it goes like :


> http://server/siteurl/_vti_bin/listdata.svc/DocumentsOne?$select=MyDocumentType,Title,Id&$expand=MyDocumentType
>

 YouTube API has the same in below form [6] :

 Example 1: Retrieve number of items in feed, index of
> first item in result set, and all entries in the feed:
> fields=openSearch:totalResults,openSearch:startIndex,entry
>

 LinkedIn has the same [7]


> https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,positions:(id,title,summary,start-date,end-date,is-current,company:(id,name,type,size,industry,ticker))
>

 IMO Facebook Graph API has the cleanest mechanism.

 I believe that if we use a similar format we will not have to introduce
 new resource paths. Instead we'll be able to provide all the columns,
 unless user specifically request limited set of fields with a query
 parameter. WDYT?

 [1]
 http://stackoverflow.com/questions/5216567/is-this-statement-correct-http-get-method-always-has-no-message-body
 [2] https://spring.io/understanding/REST
 [3]
 https://developers.facebook.com/docs/graph-api/using-graph-api#fieldexpansion
 [4]
 http://sharepoint.stackexchange.com/questions/118633/how-to-select-and-filter-list-items-lookup-column-with-sharepoint-2013-rest-feat
 [5]
 http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
 [6]
 https://developers.google.com/youtube/2.0/developers_guide_protocol_partial#Fields_Formatting_Rules
 [7] https://developer.linkedin.com/docs/fields?u=0

 Best Regards,
 Ayoma.

 On Wed, Mar 23, 2016 at 8:13 PM, Lahiru Sandaruwan 
 wrote:

> Hi,
>
> I think using a POST with a body, for retrieving information is fine
> considering the requ

Re: [Dev] DAS - How to change the schema of a table

2016-03-23 Thread Sachith Withana
Hi Damith,

You can find it here :
https://docs.wso2.com/display/DAS301/Spark+Query+Language

Thanks,
Sachith

On Thu, Mar 24, 2016 at 12:07 PM, Damith Wickramasinghe 
wrote:

> Great Thanks a lot. :) @Niranda does your method mentioned in DAS docs. If
> not shall we add it. Its a helpful function.
>
> Regards,
> Damith.
>
> On Thu, Mar 24, 2016 at 11:48 AM, Niranda Perera  wrote:
>
>> Hi Damith,
>>
>> you can set the schema again from Spark script also. you can write a
>> query llike this
>>
>> create temporary table  using CarbonAnalytics options (tableName
>> "", schema "", mergeSchema "false");
>>
>> On Thu, Mar 24, 2016 at 11:31 AM, Gimantha Bandara 
>> wrote:
>>
>>> Hi Damith,
>>>
>>> You can set update the existing schema using the REST APIs directly as
>>> mentioned here [1]. The table name cannot be removed from DAS.
>>>
>>> [1] https://docs.wso2.com/pages/viewpage.action?pageId=50505976
>>>
>>> On Thu, Mar 24, 2016 at 9:37 AM, Damith Wickramasinghe >> > wrote:
>>>
 Hi all,

 I have already created a table with some columns using spark queries
 and inserted some data. But I need to add another column to it. Is there a
 way to directly achieve this ? Or do I have to drop the table and
 reinitialize it ? Also I cannot seems to find a way to remove the table
 also ? I have purged all data in said table.

 Regards,
 Damith.


 --
 Software Engineer
 WSO2 Inc.; http://wso2.com
 
 lean.enterprise.middleware

 mobile: *+94728671315 <%2B94728671315>*


>>>
>>>
>>> --
>>> Gimantha Bandara
>>> Software Engineer
>>> WSO2. Inc : http://wso2.com
>>> Mobile : +94714961919
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sachith Withana
Software Engineer; WSO2 Inc.; http://wso2.com
E-mail: sachith AT wso2.com
M: +94715518127
Linked-In: https://lk.linkedin.com/in/sachithwithana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC '16 - Proposal 16: Contact Development Team feature in DevStudio

2016-03-23 Thread Chanuka Wijayakoon
Hello everyone,

I went through the DevStudio kernel and have a few questions. I'd be ever
so grateful for your answers.

1. The DeveloperStudioLog class doesn't include any control scheme to limit
reporting multiple cases of the same error in short time periods.
Reporting all cases seems like a nuisance, especially if it's an intended
error.
Would limiting such successive reports cause any harm? One way would be to
pause/ stop reporting the same error after, say, 10 close occurrences.

2. Should the error report be fully automated and not interact with the
developer at all?
It seems better to allow the developer to attach a message along with the
report. That way the internal devs can get contextual info as well.

3.  Developers would be interested in getting feedback for what they report
and want to track the progress on issues. This could be implemented as an
opt-in feature, along with anonymization.
Thoughts?

Best regards

On 24 March 2016 at 09:11, Chanuka Wijayakoon 
wrote:

> Great, I'll get back to you with a draft proposal today.
>
> Thank you.
>
> On 24 March 2016 at 08:12, Awanthika Senarath  wrote:
>
>> Hello Chanuka,
>>
>> What we expect is something similar to eclipse mars implementation.
>>
>> The latest released developer studio is on Eclipse Luna, and the next
>> release would be on Eclipse Mars which would be release within this
>> quarter.You can checkout the Developer Studio kernel code and get a basic
>> understanding on the code level.
>>
>> You can go ahead and start creating your proposal.
>>
>> Regards
>> Awanthika
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Tue, Mar 22, 2016 at 8:01 PM, Chanuka Wijayakoon <
>> cl.workplac...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am Chanuka Wijayakoon, a 2nd year undergraduate at the Department of
>>> Computer Science & Engineering in University of Moratuwa. I'm interested in
>>> building a semi-automated error reporting extension for DevStudio as a GSoC
>>> 2016 intern.
>>>
>>> I have selected this proposal after carefully considering my skills and
>>> past experience in working with Java and related technologies. I have a
>>> special interest towards building Eclipse plugins.
>>>
>>> So far I have researched on existing solutions for automated error
>>> reporting and came across the AERI of Eclipse Mars as a model solution. It
>>> provides developers with a rich set of features to report errors in Eclipse
>>> to a central server with relevant metadata. It integrates with the Eclipse
>>> RCP as part of the EPP.
>>>
>>> As I understand, a viable solution for proposal 16 would be of similar
>>> design tailored for DevStudio users. Currently I'm studying how DevStudio
>>> (based on Eclipse Luna 4.4) differs from Eclipse Mars 4.5, implementation
>>> details of EPP & JIRA usage.
>>>
>>> I'd be grateful if you could tell me whether I'm headed in the right
>>> direction and suggest anything to further read or work on to familiarize
>>> with your system.
>>>
>>> Best regards,
>>>
>>>
>>> Chanuka Wijayakoon
>>> Mobile: +94 779 089 737
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Chanuka Wijayakoon
> Mobile: +94 779 089 737
> 
>



-- 
Chanuka Wijayakoon
Mobile: +94 779 089 737

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DAS - How to change the schema of a table

2016-03-23 Thread Damith Wickramasinghe
Great Thanks a lot. :) @Niranda does your method mentioned in DAS docs. If
not shall we add it. Its a helpful function.

Regards,
Damith.

On Thu, Mar 24, 2016 at 11:48 AM, Niranda Perera  wrote:

> Hi Damith,
>
> you can set the schema again from Spark script also. you can write a query
> llike this
>
> create temporary table  using CarbonAnalytics options (tableName
> "", schema "", mergeSchema "false");
>
> On Thu, Mar 24, 2016 at 11:31 AM, Gimantha Bandara 
> wrote:
>
>> Hi Damith,
>>
>> You can set update the existing schema using the REST APIs directly as
>> mentioned here [1]. The table name cannot be removed from DAS.
>>
>> [1] https://docs.wso2.com/pages/viewpage.action?pageId=50505976
>>
>> On Thu, Mar 24, 2016 at 9:37 AM, Damith Wickramasinghe 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have already created a table with some columns using spark queries and
>>> inserted some data. But I need to add another column to it. Is there a way
>>> to directly achieve this ? Or do I have to drop the table and reinitialize
>>> it ? Also I cannot seems to find a way to remove the table also ? I have
>>> purged all data in said table.
>>>
>>> Regards,
>>> Damith.
>>>
>>>
>>> --
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> 
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94728671315 <%2B94728671315>*
>>>
>>>
>>
>>
>> --
>> Gimantha Bandara
>> Software Engineer
>> WSO2. Inc : http://wso2.com
>> Mobile : +94714961919
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>



-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

mobile: *+94728671315*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in representing an array which contains non identical elements

2016-03-23 Thread Sohani Weerasinghe
Hi All,

If we consider the generated json schema is a valid one, then when
generating the tree from that schema we have to treat "urn:sObjects" as two
arrays. i.e before creating the tree nodes we have to iterate through the
items section and then check for the objects inside that and then create
two tree nodes ( two arrays) containing the elements.

- urn:sObjects (array)
 - AccountId
 - FirstName
 - LastName

- urn:sObjects (array)
 - Name

When we are saving the editor we read the tree and then serialize the
values to a file. In that case, we treat these nodes and two arrays. As a
result the created json schema will be different that the initial schema.

How are we going to handle this situation?

Thanks,
Sohani



Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Wed, Mar 23, 2016 at 9:55 PM, Susinda Perera  wrote:

> Online xsd generators[1] generate xsd as one object having all four
> elements as child elements of urn:sObjects, without considering xsi:type.
> https://devutilsonline.com/xsd-xml/generate-xsd-from-xml
>
> On Wed, Mar 23, 2016 at 9:47 PM, Susinda Perera  wrote:
>
>>
>>
>> On Wed, Mar 23, 2016 at 7:51 PM, Awanthika Senarath 
>> wrote:
>>
>>> Even though these arrays are identical, AFAIS they may occur independent,
>>>
>>> as in we may have 5 of the first array with the three items and 3 of the
>>> other array which is completely unrelated to the first array,
>>>
>>>
>>> In that case is it okey to represent them as a single array?
>>>
>>> according to [1] it seems like the xsi:type attribute is not just any
>>> attribute but something similar to a key word in XML. in that case IMO it
>>> is not correct to represent these two arrays as a merged array instance.
>>>
>> The xsi:type attribute is used to identify derived complex types[1]. In
>> this example we have 2  objects which have different
>> xsi:types. (i.e one does not have a xsi:type but other one
>> having xsi:type="urn1:Contact") Therefore these two are different
>> objects even though it has same name.
>> However by looking at the given xml we can not say that it's xsd would
>> have  array or single element because in this example we
>> have only one object from each. Shall we add and object of 
>> and check?
>>
>> [1] -
>> http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.wst.xmleditor.doc.user%2Ftopics%2Ftxsityp.html
>>
>>
>>>
>>> We need to consider xsi:type attribute as a keyword. I dont know how
>>> viable this is though.
>>>
>>>
>>>
>>>
>>>
>>> [1]
>>> http://stackoverflow.com/questions/21216778/how-to-define-xsitype-as-an-attribute-in-xml-schema
>>>
>>> Regards
>>> Awanthika
>>>
>>>
>>>
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>> On Wed, Mar 23, 2016 at 7:17 PM, Sohani Weerasinghe 
>>> wrote:
>>>
 Hi All,

 If we consider the below xml, "urn:sObjects" is an array which contains
 elements which are not identical.

 First array contains AccountId, FirstName, LastName and the other array
 contains Name.

  >>> xmlns:urn1="urn:sobject.enterprise.soap.sforce.com"  xmlns:xsi="
 http://www.w3.org/2001/XMLSchema-instance";>
  

001D00HRzKD
Jane
Doe
 
 
Acme Rockets, Inc.
 
  

 The generated json schema would be as follows

 {
"$Schema":"http://json-schema.org/draft-04/schema#";,
"title":"urn:create",
"id":"http://jsonschema.net";,
"type":"object",
"properties":{
   "urn:create":{
  "id":"http://jsonschema.net/urn:create";,
  "type":"object",
  "properties":{
 "urn:sObjects":{
"id":"http://jsonschema.net/urn:create/urn:sObjects";,
"type":"array",
"items":[
   {
  "id":"
 http://jsonschema.net/urn:create/urn:sObjects/0";,
  "type":"object",
  "properties":{
 "AccountId":{
"id":"
 http://jsonschema.net/urn:create/urn:sObjects/0/AccountId";,
"type":"string"
 },
 "@type":{
"id":"
 http://jsonschema.net/urn:create/urn:sObjects/0/@type";,
"type":"string"
 },
 "FirstName":{
"id":"
 http://jsonschema.net/urn:create/urn:sObjects/0/FirstName";,
"type":"string"
 },
 "LastName":{
  

Re: [Dev] [Architecture] [REST APIs][Analytics] GET request with a payload

2016-03-23 Thread Udara Liyanage
Hi,

IMO by using POST to do a GET  we are violating REST principals and may
confuse users. You can see a query type API in [1] used by StackOverflow
API. According to [2], it seems  about 2000 characters are allowed  most
browsers which is a pretty large number where a normal GET request is
highly unlikely to exceed in practical situation regardless of the number
of fields exist.


[1] https://api.stackexchange.com/docs/users
[2]
http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers

On Thu, Mar 24, 2016 at 11:38 AM, Gimantha Bandara 
wrote:

> Thank you for your suggestions.
> We cannot exactly say that the number of columns/fields user will need. It
> depends on how many fields a table has and how many the user want to get
> from that table. So the url length might exceed. If so, we will have to go
> with a new method with POST as it seems the only option.
>
> On Wed, Mar 23, 2016 at 9:34 PM, Lahiru Sandaruwan 
> wrote:
>
>> Yes, if it is possible to put the columns names in the url as Ayoma
>> mentioned, we must use that(First i thought it is a complex payload you
>> want to send).
>>
>> Unless there are limitations, like column list doesn't exceed the url
>> length limits, we should use GET.
>>
>> Thanks.
>>
>> On Wed, Mar 23, 2016 at 3:54 PM, Ayoma Wijethunga  wrote:
>>
>>> Hi,
>>>
>>> It is true that using GET request with a payload is not the best option.
>>> Even though it is not strictly prohibited in specs, it can be confusing
>>> [1]. REST architecture is very open about how we use HTTP methods, but
>>> thinking in terms of REST architecture, I do not think using POST is also
>>> the correct approach here [2] (maybe it is just the personal preference).
>>>
>>> Let me summaries few examples on how others have addressed the same
>>> requirement with GET requests.
>>>
>>> Facebook Graph API is using "field" query parameter for this [3]. For
>>> example :
>>>
>>> Following Graph API call 
>>> *https://graph.facebook.com/bgolub?fields=id,name,picture
 * will only
 return the id, name, and picture in Ben's profile

>>>
>>> SharePoint syntax is not very eye candy [4][5], but it goes like :
>>>
>>>
 http://server/siteurl/_vti_bin/listdata.svc/DocumentsOne?$select=MyDocumentType,Title,Id&$expand=MyDocumentType

>>>
>>> YouTube API has the same in below form [6] :
>>>
>>> Example 1: Retrieve number of items in feed, index of
 first item in result set, and all entries in the feed:
 fields=openSearch:totalResults,openSearch:startIndex,entry

>>>
>>> LinkedIn has the same [7]
>>>
>>>
 https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,positions:(id,title,summary,start-date,end-date,is-current,company:(id,name,type,size,industry,ticker))

>>>
>>> IMO Facebook Graph API has the cleanest mechanism.
>>>
>>> I believe that if we use a similar format we will not have to introduce
>>> new resource paths. Instead we'll be able to provide all the columns,
>>> unless user specifically request limited set of fields with a query
>>> parameter. WDYT?
>>>
>>> [1]
>>> http://stackoverflow.com/questions/5216567/is-this-statement-correct-http-get-method-always-has-no-message-body
>>> [2] https://spring.io/understanding/REST
>>> [3]
>>> https://developers.facebook.com/docs/graph-api/using-graph-api#fieldexpansion
>>> [4]
>>> http://sharepoint.stackexchange.com/questions/118633/how-to-select-and-filter-list-items-lookup-column-with-sharepoint-2013-rest-feat
>>> [5]
>>> http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
>>> [6]
>>> https://developers.google.com/youtube/2.0/developers_guide_protocol_partial#Fields_Formatting_Rules
>>> [7] https://developer.linkedin.com/docs/fields?u=0
>>>
>>> Best Regards,
>>> Ayoma.
>>>
>>> On Wed, Mar 23, 2016 at 8:13 PM, Lahiru Sandaruwan 
>>> wrote:
>>>
 Hi,

 I think using a POST with a body, for retrieving information is fine
 considering the requirement. GET with body is not recommended.

 Thanks.

 On Wed, Mar 23, 2016 at 2:31 PM, Gimantha Bandara 
 wrote:

> Hi all,
>
>
> We have a REST API in DAS to retrieve records in a specific table. It
> supports GET method with the following url format.
>
> /analytics/tables/{tableName}/{from}/{to}/{start}/{count}
>
> Sending a GET request to above url will give the records between given
> "from", "to" time range starting from index "start" with  "count"  page
> size.
>
> Now we need to change the API, so that the user can define the record
> columns/fields he wants. Current API will return the records with all the
> values/columns. To do that, we can allow the user to define the columns he
> needs, in the payload. But it seems that having a payload with a GET is 
> not
> the convention/the best practice.
>
> POST can be used to 

Re: [Dev] DAS Lucene query AllowLeadingWildcard

2016-03-23 Thread Damith Wickramasinghe
Hi Gimantha,

Great. One question. Does it can be any special character. ?

Regards,
Damith.

On Thu, Mar 24, 2016 at 11:49 AM, Gimantha Bandara 
wrote:

> Hi Damith,
>
> If the "roles" field contains comma separated values, you can simply
> search for the specific role using the following query
>
> "roles : role1"
>
>
> Lucene has an analysis process which takes place before indexing. So the
> field values will be tokenized into terms(Text fields are split removing
> special characters) , stop words.. etc. In your case, the whole string
> "role1, role2, role3" will be tokenized into "role1", "role2" and "role3".
> So you can perform a usual search query as I mentioned above.
>
> On Thu, Mar 24, 2016 at 11:35 AM, Damith Wickramasinghe 
> wrote:
>
>> Hi all,
>>
>> I have a column which contains roles as a comma separated string. eg:-
>> role1,role2,role3
>>
>> I need to find records which matches to specific role. As I checked
>> theres no String contains function. But there is wildcard support[1]. To be
>> able to work for my usecase wildcard should be of type *role1*. But leading
>> wild cards are not supported. But as per the [2] Lucene 2.1, they can be
>> enabled by calling QueryParser.setAllowLeadingWildcard( true ). May I
>> know whether there is a configuration in DAS to enable this. Also even this
>> can be achieved I think this will be an expensive operation. If so is there
>> a best way to achieve this? eg:-custom UDF
>>
>> [1]http://www.lucenetutorial.com/lucene-query-syntax.html
>> [2]https://wiki.apache.org/lucene-java/LuceneFAQ
>>
>> Thanks,
>> Damith.
>>
>> --
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315 <%2B94728671315>*
>>
>>
>
>
> --
> Gimantha Bandara
> Software Engineer
> WSO2. Inc : http://wso2.com
> Mobile : +94714961919
>



-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

mobile: *+94728671315*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Applying for GSoC 2016 ----> Visual (Deep) Neural Network Builder

2016-03-23 Thread Upul Bandara
I have added few comments.
Overall, your proposal looks good to me.

Thanks,
Upul

On Thu, Mar 24, 2016 at 11:47 AM, Upul Bandara  wrote:

> Noted
>
> On Thu, Mar 24, 2016 at 11:44 AM, Vishma Senadhi Dias <
> vishma...@cse.mrt.ac.lk> wrote:
>
>> I have submitted a draft proposal on GSoC program site. Please do review
>> and any feedback on the proposal is highly appreciated.
>>
>> Thanks.
>>
>>
>> On 3/24/2016 9:13 AM, Upul Bandara wrote:
>>
>> Yes, you are correct.
>>
>> Actually, w don't need to implement anything on top of the DL4J library
>> in order to support Spark. It is already available in DL4J.
>>
>> Thanks,
>> Upul
>>
>> On Thu, Mar 24, 2016 at 9:07 AM, Vishma Senadhi Dias <
>> vishma...@cse.mrt.ac.lk> wrote:
>>
>>> Hi Upul,
>>>
>>> I am working on the proposal and I will be able to submit a draft on
>>> today. I will let you know when I complete the draft.
>>>
>>> Meanwhile am I correct to interpret that Visual neural network needs,
>>>
>>>1. JavaScript front end
>>>2. Neural network build from DL4J using front end configurations
>>>3. Apache spark for data parallelism ( can implemented internally on
>>>dl4j)
>>>4. Integration of the module to WSO2 machine learner so that it
>>>could work as an internal implementation which is able to use WSO2 Data
>>>Analytic Servers
>>>
>>> Please do correct me if I am wrong.
>>>
>>> Thanks,
>>> Vishma.
>>>
>>>
>>> On 3/23/2016 7:56 AM, Upul Bandara wrote:
>>>
>>> Hi Vishma,
>>>
>>> WSO2 Machine Learner: Best place to get started with our server is its
>>> documentation page [1].
>>> DL4J also has a very good documentation and tutorials.
>>>
>>> But at the initial stage, high-level understanding of our product and
>>> other libraries would be enough. Later you can go through
>>> documentation/tutorials to get more information about required libraries.
>>>
>>> So please try to come up with a proposal and share it with us. If you
>>> could do this before this Friday, we can easily give us some feedback
>>> before submitting it.
>>>
>>> Thanks,
>>> Upul
>>>
>>> [1].  
>>> https://docs.wso2.com/display/ML110/Introducing+Machine+Learner
>>>
>>> On Mon, Mar 21, 2016 at 8:55 PM, Vishma Dias < 
>>> vishma...@cse.mrt.ac.lk> wrote:
>>>
 Hi Upul,

 I am working on the proposal at the moment. To be honest I have not
 used DL4J before. I have a little trouble with deciding on the required
 knowledge scope to this project.

 Can you help me with some instructions on the expected level of skills
 on,

1. WSO2 Machine Learner
2. DL4J

 I am familiar with Apache Spark Libraries. Is there any other concerns
 on this project?

 Best Regards,
 Vishma.

 On 3/21/2016 1:33 PM, Upul Bandara wrote:

 Hi Vishma,

 Please note that deadline for the project proposal is this Friday and
 send your proposal to dev@wso2.org and project mentor(s).

 Thanks,
 Upul

 On Wed, Mar 9, 2016 at 1:24 PM, Upul Bandara < 
 u...@wso2.com> wrote:

> Hi Vishma,
>
> First you have to create a project proposal. In order to get an idea
> about the proposal I would like to point, Nirmal's proposal submitted to
> 2011 GSOC
>
>
> 
> http://nirmalfdo.blogspot.com/2011/04/apache-tuscany-develop-simple-tool-that.html
>
> If you need further help, please let us know.
>
> Thanks,
> Upul
>
> On Wed, Mar 9, 2016 at 9:32 AM, Vishma Senadhi Dias <
> vishma...@cse.mrt.ac.lk> wrote:
>
>> Hi all,
>>
>> I am Vishma, a third year undergraduate from Department of Computer
>> Science and Engineering, University of Moratuwa, Sri Lanka. I would like 
>> to
>> apply for the Visual (Deep) Neural Network Builder project. It would be
>> very helpful if I could get any instructions on starting things up.
>>
>> Thanks in advance,
>> Vishma.
>>
>
>
>
> --
> Upul Bandara,
> Associate Technical Lead, WSO2, Inc.,
> Mob: +94 715 468 345 <%2B94%20715%20468%20345>.
>



 --
 Upul Bandara,
 Associate Technical Lead, WSO2, Inc.,
 Mob: +94 715 468 345 <%2B94%20715%20468%20345>.



>>>
>>>
>>> --
>>> Upul Bandara,
>>> Associate Technical Lead, WSO2, Inc.,
>>> Mob: +94 715 468 345 <%2B94%20715%20468%20345>.
>>>
>>>
>>>
>>
>>
>> --
>> Upul Bandara,
>> Associate Technical Lead, WSO2, Inc.,
>> Mob: +94 715 468 345.
>>
>>
>>
>
>
> --
> Upul Bandara,
> Associate Technical Lead, WSO2, Inc.,
> Mob: +94 715 468 345.
>



-- 
Upul Bandara,
Associate Technical Lead, WSO2, Inc.,
Mob: +94 715 468 345.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DAS Lucene query AllowLeadingWildcard

2016-03-23 Thread Gimantha Bandara
Hi Damith,

If the "roles" field contains comma separated values, you can simply search
for the specific role using the following query

"roles : role1"


Lucene has an analysis process which takes place before indexing. So the
field values will be tokenized into terms(Text fields are split removing
special characters) , stop words.. etc. In your case, the whole string
"role1, role2, role3" will be tokenized into "role1", "role2" and "role3".
So you can perform a usual search query as I mentioned above.

On Thu, Mar 24, 2016 at 11:35 AM, Damith Wickramasinghe 
wrote:

> Hi all,
>
> I have a column which contains roles as a comma separated string. eg:-
> role1,role2,role3
>
> I need to find records which matches to specific role. As I checked theres
> no String contains function. But there is wildcard support[1]. To be able
> to work for my usecase wildcard should be of type *role1*. But leading wild
> cards are not supported. But as per the [2] Lucene 2.1, they can be
> enabled by calling QueryParser.setAllowLeadingWildcard( true ). May I
> know whether there is a configuration in DAS to enable this. Also even this
> can be achieved I think this will be an expensive operation. If so is there
> a best way to achieve this? eg:-custom UDF
>
> [1]http://www.lucenetutorial.com/lucene-query-syntax.html
> [2]https://wiki.apache.org/lucene-java/LuceneFAQ
>
> Thanks,
> Damith.
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


-- 
Gimantha Bandara
Software Engineer
WSO2. Inc : http://wso2.com
Mobile : +94714961919
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DAS - How to change the schema of a table

2016-03-23 Thread Niranda Perera
Hi Damith,

you can set the schema again from Spark script also. you can write a query
llike this

create temporary table  using CarbonAnalytics options (tableName
"", schema "", mergeSchema "false");

On Thu, Mar 24, 2016 at 11:31 AM, Gimantha Bandara 
wrote:

> Hi Damith,
>
> You can set update the existing schema using the REST APIs directly as
> mentioned here [1]. The table name cannot be removed from DAS.
>
> [1] https://docs.wso2.com/pages/viewpage.action?pageId=50505976
>
> On Thu, Mar 24, 2016 at 9:37 AM, Damith Wickramasinghe 
> wrote:
>
>> Hi all,
>>
>> I have already created a table with some columns using spark queries and
>> inserted some data. But I need to add another column to it. Is there a way
>> to directly achieve this ? Or do I have to drop the table and reinitialize
>> it ? Also I cannot seems to find a way to remove the table also ? I have
>> purged all data in said table.
>>
>> Regards,
>> Damith.
>>
>>
>> --
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315 <%2B94728671315>*
>>
>>
>
>
> --
> Gimantha Bandara
> Software Engineer
> WSO2. Inc : http://wso2.com
> Mobile : +94714961919
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
https://pythagoreanscript.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Applying for GSoC 2016 ----> Visual (Deep) Neural Network Builder

2016-03-23 Thread Upul Bandara
Noted

On Thu, Mar 24, 2016 at 11:44 AM, Vishma Senadhi Dias <
vishma...@cse.mrt.ac.lk> wrote:

> I have submitted a draft proposal on GSoC program site. Please do review
> and any feedback on the proposal is highly appreciated.
>
> Thanks.
>
>
> On 3/24/2016 9:13 AM, Upul Bandara wrote:
>
> Yes, you are correct.
>
> Actually, w don't need to implement anything on top of the DL4J library in
> order to support Spark. It is already available in DL4J.
>
> Thanks,
> Upul
>
> On Thu, Mar 24, 2016 at 9:07 AM, Vishma Senadhi Dias <
> vishma...@cse.mrt.ac.lk> wrote:
>
>> Hi Upul,
>>
>> I am working on the proposal and I will be able to submit a draft on
>> today. I will let you know when I complete the draft.
>>
>> Meanwhile am I correct to interpret that Visual neural network needs,
>>
>>1. JavaScript front end
>>2. Neural network build from DL4J using front end configurations
>>3. Apache spark for data parallelism ( can implemented internally on
>>dl4j)
>>4. Integration of the module to WSO2 machine learner so that it could
>>work as an internal implementation which is able to use WSO2 Data Analytic
>>Servers
>>
>> Please do correct me if I am wrong.
>>
>> Thanks,
>> Vishma.
>>
>>
>> On 3/23/2016 7:56 AM, Upul Bandara wrote:
>>
>> Hi Vishma,
>>
>> WSO2 Machine Learner: Best place to get started with our server is its
>> documentation page [1].
>> DL4J also has a very good documentation and tutorials.
>>
>> But at the initial stage, high-level understanding of our product and
>> other libraries would be enough. Later you can go through
>> documentation/tutorials to get more information about required libraries.
>>
>> So please try to come up with a proposal and share it with us. If you
>> could do this before this Friday, we can easily give us some feedback
>> before submitting it.
>>
>> Thanks,
>> Upul
>>
>> [1].  
>> https://docs.wso2.com/display/ML110/Introducing+Machine+Learner
>>
>> On Mon, Mar 21, 2016 at 8:55 PM, Vishma Dias < 
>> vishma...@cse.mrt.ac.lk> wrote:
>>
>>> Hi Upul,
>>>
>>> I am working on the proposal at the moment. To be honest I have not used
>>> DL4J before. I have a little trouble with deciding on the required
>>> knowledge scope to this project.
>>>
>>> Can you help me with some instructions on the expected level of skills
>>> on,
>>>
>>>1. WSO2 Machine Learner
>>>2. DL4J
>>>
>>> I am familiar with Apache Spark Libraries. Is there any other concerns
>>> on this project?
>>>
>>> Best Regards,
>>> Vishma.
>>>
>>> On 3/21/2016 1:33 PM, Upul Bandara wrote:
>>>
>>> Hi Vishma,
>>>
>>> Please note that deadline for the project proposal is this Friday and
>>> send your proposal to dev@wso2.org and project mentor(s).
>>>
>>> Thanks,
>>> Upul
>>>
>>> On Wed, Mar 9, 2016 at 1:24 PM, Upul Bandara < 
>>> u...@wso2.com> wrote:
>>>
 Hi Vishma,

 First you have to create a project proposal. In order to get an idea
 about the proposal I would like to point, Nirmal's proposal submitted to
 2011 GSOC


 
 http://nirmalfdo.blogspot.com/2011/04/apache-tuscany-develop-simple-tool-that.html

 If you need further help, please let us know.

 Thanks,
 Upul

 On Wed, Mar 9, 2016 at 9:32 AM, Vishma Senadhi Dias <
 vishma...@cse.mrt.ac.lk> wrote:

> Hi all,
>
> I am Vishma, a third year undergraduate from Department of Computer
> Science and Engineering, University of Moratuwa, Sri Lanka. I would like 
> to
> apply for the Visual (Deep) Neural Network Builder project. It would be
> very helpful if I could get any instructions on starting things up.
>
> Thanks in advance,
> Vishma.
>



 --
 Upul Bandara,
 Associate Technical Lead, WSO2, Inc.,
 Mob: +94 715 468 345 <%2B94%20715%20468%20345>.

>>>
>>>
>>>
>>> --
>>> Upul Bandara,
>>> Associate Technical Lead, WSO2, Inc.,
>>> Mob: +94 715 468 345 <%2B94%20715%20468%20345>.
>>>
>>>
>>>
>>
>>
>> --
>> Upul Bandara,
>> Associate Technical Lead, WSO2, Inc.,
>> Mob: +94 715 468 345 <%2B94%20715%20468%20345>.
>>
>>
>>
>
>
> --
> Upul Bandara,
> Associate Technical Lead, WSO2, Inc.,
> Mob: +94 715 468 345.
>
>
>


-- 
Upul Bandara,
Associate Technical Lead, WSO2, Inc.,
Mob: +94 715 468 345.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [REST APIs][Analytics] GET request with a payload

2016-03-23 Thread Gimantha Bandara
Thank you for your suggestions.
We cannot exactly say that the number of columns/fields user will need. It
depends on how many fields a table has and how many the user want to get
from that table. So the url length might exceed. If so, we will have to go
with a new method with POST as it seems the only option.

On Wed, Mar 23, 2016 at 9:34 PM, Lahiru Sandaruwan  wrote:

> Yes, if it is possible to put the columns names in the url as Ayoma
> mentioned, we must use that(First i thought it is a complex payload you
> want to send).
>
> Unless there are limitations, like column list doesn't exceed the url
> length limits, we should use GET.
>
> Thanks.
>
> On Wed, Mar 23, 2016 at 3:54 PM, Ayoma Wijethunga  wrote:
>
>> Hi,
>>
>> It is true that using GET request with a payload is not the best option.
>> Even though it is not strictly prohibited in specs, it can be confusing
>> [1]. REST architecture is very open about how we use HTTP methods, but
>> thinking in terms of REST architecture, I do not think using POST is also
>> the correct approach here [2] (maybe it is just the personal preference).
>>
>> Let me summaries few examples on how others have addressed the same
>> requirement with GET requests.
>>
>> Facebook Graph API is using "field" query parameter for this [3]. For
>> example :
>>
>> Following Graph API call 
>> *https://graph.facebook.com/bgolub?fields=id,name,picture
>>> * will only
>>> return the id, name, and picture in Ben's profile
>>>
>>
>> SharePoint syntax is not very eye candy [4][5], but it goes like :
>>
>>
>>> http://server/siteurl/_vti_bin/listdata.svc/DocumentsOne?$select=MyDocumentType,Title,Id&$expand=MyDocumentType
>>>
>>
>> YouTube API has the same in below form [6] :
>>
>> Example 1: Retrieve number of items in feed, index of
>>> first item in result set, and all entries in the feed:
>>> fields=openSearch:totalResults,openSearch:startIndex,entry
>>>
>>
>> LinkedIn has the same [7]
>>
>>
>>> https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,positions:(id,title,summary,start-date,end-date,is-current,company:(id,name,type,size,industry,ticker))
>>>
>>
>> IMO Facebook Graph API has the cleanest mechanism.
>>
>> I believe that if we use a similar format we will not have to introduce
>> new resource paths. Instead we'll be able to provide all the columns,
>> unless user specifically request limited set of fields with a query
>> parameter. WDYT?
>>
>> [1]
>> http://stackoverflow.com/questions/5216567/is-this-statement-correct-http-get-method-always-has-no-message-body
>> [2] https://spring.io/understanding/REST
>> [3]
>> https://developers.facebook.com/docs/graph-api/using-graph-api#fieldexpansion
>> [4]
>> http://sharepoint.stackexchange.com/questions/118633/how-to-select-and-filter-list-items-lookup-column-with-sharepoint-2013-rest-feat
>> [5]
>> http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
>> [6]
>> https://developers.google.com/youtube/2.0/developers_guide_protocol_partial#Fields_Formatting_Rules
>> [7] https://developer.linkedin.com/docs/fields?u=0
>>
>> Best Regards,
>> Ayoma.
>>
>> On Wed, Mar 23, 2016 at 8:13 PM, Lahiru Sandaruwan 
>> wrote:
>>
>>> Hi,
>>>
>>> I think using a POST with a body, for retrieving information is fine
>>> considering the requirement. GET with body is not recommended.
>>>
>>> Thanks.
>>>
>>> On Wed, Mar 23, 2016 at 2:31 PM, Gimantha Bandara 
>>> wrote:
>>>
 Hi all,


 We have a REST API in DAS to retrieve records in a specific table. It
 supports GET method with the following url format.

 /analytics/tables/{tableName}/{from}/{to}/{start}/{count}

 Sending a GET request to above url will give the records between given
 "from", "to" time range starting from index "start" with  "count"  page
 size.

 Now we need to change the API, so that the user can define the record
 columns/fields he wants. Current API will return the records with all the
 values/columns. To do that, we can allow the user to define the columns he
 needs, in the payload. But it seems that having a payload with a GET is not
 the convention/the best practice.

 POST can be used to send the column names as a payload, but here we are
 not making any updates to {tableName} resource. We will be just retrieving
 records using a POST. So it also seems not the convention/the best 
 practice.

 The only solution I can think of is, having a different resource path
 to get the records with only specified fields/columns. Are there any other
 solutions?

 Thanks,
 Gimantha


 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Committer and PMC member, Apache Stratos,
>>> Senior

[Dev] DAS Lucene query AllowLeadingWildcard

2016-03-23 Thread Damith Wickramasinghe
Hi all,

I have a column which contains roles as a comma separated string. eg:-
role1,role2,role3

I need to find records which matches to specific role. As I checked theres
no String contains function. But there is wildcard support[1]. To be able
to work for my usecase wildcard should be of type *role1*. But leading wild
cards are not supported. But as per the [2] Lucene 2.1, they can be enabled
by calling QueryParser.setAllowLeadingWildcard( true ). May I know whether
there is a configuration in DAS to enable this. Also even this can be
achieved I think this will be an expensive operation. If so is there a best
way to achieve this? eg:-custom UDF

[1]http://www.lucenetutorial.com/lucene-query-syntax.html
[2]https://wiki.apache.org/lucene-java/LuceneFAQ

Thanks,
Damith.

-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

mobile: *+94728671315*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DAS - How to change the schema of a table

2016-03-23 Thread Gimantha Bandara
Hi Damith,

You can set update the existing schema using the REST APIs directly as
mentioned here [1]. The table name cannot be removed from DAS.

[1] https://docs.wso2.com/pages/viewpage.action?pageId=50505976

On Thu, Mar 24, 2016 at 9:37 AM, Damith Wickramasinghe 
wrote:

> Hi all,
>
> I have already created a table with some columns using spark queries and
> inserted some data. But I need to add another column to it. Is there a way
> to directly achieve this ? Or do I have to drop the table and reinitialize
> it ? Also I cannot seems to find a way to remove the table also ? I have
> purged all data in said table.
>
> Regards,
> Damith.
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


-- 
Gimantha Bandara
Software Engineer
WSO2. Inc : http://wso2.com
Mobile : +94714961919
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CDMF] [IOT] IOT SDK for creating Device Agents-GSoC2016

2016-03-23 Thread Shabir Mohamed
Hi Harshani,

*What is expected off this project is as follows - *

Like you have correctly understood when a new device needs to be added to
the WSO2 IoT Server, a new Device Plugin has to be created. This plugin
goes into the IoTServer. When the IoT Server is started it will recognise
all the available "Device Plugins" and register the device-type specific to
the Device Plugin as a new device in the IoT Server.

So if you want a "connected-cup" installed into the server you will have to
write a "Device Plugin" for the connected-cup and install it into the
IoTServer.

*The Device-Plugin (specific to a device-type) has several components to
it: *

   - Plugin component that gets registered to the CDMF via OSGI
   - Device Management & Controlling APIs written as JAX-RS webapps
   - UI Components as to how the device-type is listed
   - Analytics Component
   - *Device Agent*
   - etc...

Whilst all the above components of the plugin are Java code that goes into
the server the "*Device Agent*" is some code written to be
*burned/installed/uploaded* into the device hardware in order for it to
communicate with the IoT-Server using the proper API's that you have
written in the other components. This agent can be in different languages
according to the device.

Ex:
*Arduino - Arduino C (an abstraction on top of C/C++)*
*RaspberryPi - Python, Java, C*
*ESP8266  - Lua*

So what we basically expect off this project is to specifically focus on
making the experience of writing the "*Device Agent*", of the plugin easy
for an end user. So the SDK should ideally have implementations of the
complex bits of communicating to the server (using languages such as C,
C++, java, python) which can be utilised by the Device-Agent writer.

Hope this helps.

Regards
-
*Shabir Mohamed*
*Software Engineer*
WSO2 Inc.; http://wso2.com
Email: sha...@wso2.com 
Mobile: +94 77 3516019 | +94 71 6583393


>
> Hi all,
> I successfully build carbon-apimgt, uuf-template-app,
> carbon-device-mgt, carbon-device-mgt-plugins and all the repositories are
> in correct branch. But when I try to build the product-iot-server I got the
> error "The command line is too long". When I searched for the error I
> realized this error may be because I'm using Windows 10. I decided to build
> the WSO2 IoT Server after installing Linux.
>
>  Since I'm getting errors and there's only few more days for
> the deadline for proposals, I started  working on my project proposal. For
> this I need to get confirm whether my understanding on this project is
> correct and I also need to know the scope of the project.
> As I understood I should build an SDK for IOT - Device
> specific agents to connect to the IoT Server using languages such as C,
> C++, java, python. That SDK should have special feature such as  hide the
> complexities of communicating  authentication, encryption with the IoT
> Server, abstract the protocol complexities and should be easily portable
> for different hardware.
>when I went through the documentation on WSO2 IoT Server
>  I realized that
> when a new device is connected to the IoT Server, need to write device
> plugins for each device as each device type requires their own device
> plugin in WSO2 IoT Server. As I understood the IoT SDK that I'm going to
> build, should perform all these tasks when a new device is connected to the
> IoT Server.
>I would be grateful if you could provide me the necessary
> details.
>
> Thank you.
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-03-23 Thread Supun Sethunga
Hi Deng,

Looks good!. Please go ahead and submit to GSoC.

Regards,
Supun

On Thu, Mar 24, 2016 at 10:47 AM, tbc.dengwe...@outlook.com <
tbc.dengwe...@outlook.com> wrote:

> Hi Supun,
>
> Thansk for advise. I have added some figures. Have a look.
>
> https://drive.google.com/file/d/0BwujRZWY9rKPemVkbVYwTmd6bGM/view?usp=sharing
> thanks
> Deng
>
> --
> tbc.dengwe...@outlook.com
>
>
> *From:* Supun Sethunga 
> *Date:* 2016-03-23 22:11
> *To:* tbc.dengwe...@outlook.com
> *CC:* WSO2 Developers' List 
> *Subject:* Re: Re: [GSOC2016]Proposal 4: [ML] Ensemble Methods Support
> for WSO2 Machine Learner
> Hi Deng,
>
> Couple of comments:
>
>- Can you add sort of an architecture diagram, explaining your
>solution? (which visually explains implementation in a higher level)
>-
>- In the Road map, It makes more sense to mention the starting-date
>and end-date for each of the phases (instead of the duration). Also you can
>add time-slots for other steps (like doing the background research, code
>cleanup,  documenting and etc..) too, to the same timeline.
>
> Rest of the proposal looks good to me. :)
>
> Thanks,
> Supun
>
>
> On Wed, Mar 23, 2016 at 6:57 PM, tbc.dengwe...@outlook.com <
> tbc.dengwe...@outlook.com> wrote:
>
>> Hello supuns,
>> I have modified my modified my proposal. Please check it. The link is
>> below:
>> https://drive.google.com/open?id=0BwujRZWY9rKPemVkbVYwTmd6bGM
>> thanks
>> Deng.
>>
>> --
>> tbc.dengwe...@outlook.com
>>
>>
>> *From:* Supun Sethunga 
>> *Date:* 2016-03-23 02:35
>> *To:* tbcTobeContinued 
>> *CC:* Nirmal Fernando ; WSO2 Developers' List
>> 
>> *Subject:* Re: [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for
>> WSO2 Machine Learner
>> Hi,
>>
>> Thanks for your interest and the proposal. In the "Proposal 4: [ML]
>> Ensemble Methods Support for WSO2 Machine Learner", we are focusing on the
>> three methods: Bagging, Boosting and Stacking. You may not need to
>> implement several techniques for Boosting, but rather one technique for
>> each of the above three methods.
>>
>> Can you update the proposal accordingly?
>>
>> Thanks,
>> Supun
>>
>> On Tue, Mar 22, 2016 at 8:30 PM, Nirmal Fernando  wrote:
>>
>>> Thanks
>>>
>>> On Tue, Mar 22, 2016 at 8:22 PM, tbcTobeContinued <
>>> tbc.dengwe...@outlook.com> wrote:
>>>
 Sorry,here is the link:

 https://drive.google.com/file/d/0BwujRZWY9rKPemVkbVYwTmd6bGM/view?usp=sharing

 在 2016年3月22日,下午10:40,Nirmal Fernando  写道:

 Thanks for the proposal Deng, we'll check and provide feedback. It'll
 be easier, if you could share a google document with us, with comment
 rights.

 On Tue, Mar 22, 2016 at 7:42 PM, tbc.dengwe...@outlook.com <
 tbc.dengwe...@outlook.com> wrote:

> Hi,all
> I want to implemet AbaBoost for WSO2 Machine Leaner. here is my
> proposal, please give some feedback to improve it.
> Thanks
> wicky
>
> --
> tbc.dengwe...@outlook.com
>



 --

 Thanks & regards,
 Nirmal

 Team Lead - WSO2 Machine Learner
 Associate Technical Lead - Data Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/



>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> http://wso2.com/
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>>
>
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>
>


-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Need More elaboration on max_open_connections

2016-03-23 Thread Vanjikumaran Sivajothy
Hi Devs,

Currently the expiation for max_open_connections the explain available in
[1], However, it does not explain about the client side consequences. IMO,
doc should explain about it too.


[1]https://docs.wso2.com/display/ESB490/HTTP+PassThrough+Transport

-- 
Vanjikumaran Sivajothy
*Associate Technical Lead*
*WSO2 Inc. http://wso2.com *
 *+1-925-464-6816*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2016]Proposal 03:[ML] Visual (Deep) Neural Network Builder

2016-03-23 Thread Lakini Senanayaka
Thank you for the comments.
Yes.I'll change my proposal and I'll send it soon.

On Thu, Mar 24, 2016 at 9:59 AM, Upul Bandara  wrote:

> We have added few comments.
> Can you please address those comments?
>
> Thanks,
> Upul
>
> On Thu, Mar 24, 2016 at 9:04 AM, Upul Bandara  wrote:
>
>> Please grant us comment rights.
>>
>> On Thu, Mar 24, 2016 at 9:02 AM, Upul Bandara  wrote:
>>
>>> Yes, just started to read it and will provide feedback ASAP
>>>
>>> On Thu, Mar 24, 2016 at 8:55 AM, Lakini Senanayaka <
>>> lakinisenanayak...@gmail.com> wrote:
>>>
 Hi,

 Hope you got my mail about the proposal.

 On Wed, Mar 23, 2016 at 5:18 PM, Lakini Senanayaka <
 lakinisenanayak...@gmail.com> wrote:

> Hi,
>
> Could you please check my proposal[1] for [ML] Visual (Deep) Neural
> Network Builder.I kindly request your feedback and comments on it.
>
> [1]Proposal 03:[ML] Visual (Deep) Neural Network Builder
> 
>
>
> --
> Thank you.
>
> Sincerely,
> *Lakini Senanayaka.*
>
>


 --
 Thank you.

 Sincerely,
 *Lakini Senanayaka.*


>>>
>>>
>>> --
>>> Upul Bandara,
>>> Mob: +94 715 468 345.
>>>
>>
>>
>>
>> --
>> Upul Bandara,
>> Associate Technical Lead, WSO2, Inc.,
>> Mob: +94 715 468 345.
>>
>
>
>
> --
> Upul Bandara,
> Associate Technical Lead, WSO2, Inc.,
> Mob: +94 715 468 345.
>



-- 
Thank you.

Sincerely,
*Lakini Senanayaka.*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2016]Proposal 03:[ML] Visual (Deep) Neural Network Builder

2016-03-23 Thread Upul Bandara
We have added few comments.
Can you please address those comments?

Thanks,
Upul

On Thu, Mar 24, 2016 at 9:04 AM, Upul Bandara  wrote:

> Please grant us comment rights.
>
> On Thu, Mar 24, 2016 at 9:02 AM, Upul Bandara  wrote:
>
>> Yes, just started to read it and will provide feedback ASAP
>>
>> On Thu, Mar 24, 2016 at 8:55 AM, Lakini Senanayaka <
>> lakinisenanayak...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Hope you got my mail about the proposal.
>>>
>>> On Wed, Mar 23, 2016 at 5:18 PM, Lakini Senanayaka <
>>> lakinisenanayak...@gmail.com> wrote:
>>>
 Hi,

 Could you please check my proposal[1] for [ML] Visual (Deep) Neural
 Network Builder.I kindly request your feedback and comments on it.

 [1]Proposal 03:[ML] Visual (Deep) Neural Network Builder
 


 --
 Thank you.

 Sincerely,
 *Lakini Senanayaka.*


>>>
>>>
>>> --
>>> Thank you.
>>>
>>> Sincerely,
>>> *Lakini Senanayaka.*
>>>
>>>
>>
>>
>> --
>> Upul Bandara,
>> Mob: +94 715 468 345.
>>
>
>
>
> --
> Upul Bandara,
> Associate Technical Lead, WSO2, Inc.,
> Mob: +94 715 468 345.
>



-- 
Upul Bandara,
Associate Technical Lead, WSO2, Inc.,
Mob: +94 715 468 345.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC Proposal 3: [ML] Visual (Deep) Neural Network Builder

2016-03-23 Thread Upul Bandara
Hi Asela,

Could you please include following sections to your project proposal?

1. Estimated Schedule ( Using a Gantt chart)
2. Deliverables
3. Just highlight your previous experience and technical skills and put
more weight on "Visual (Deep) Neural Network Builder" project.
  1. introduction to the project.
  2. What are the advantages of having such a tool in WSO2 Machine
Learner?
  3. Similar tools currently available and their strength and
weaknesses.
  4. etc.

Thanks,
Upul

On Thu, Mar 24, 2016 at 9:32 AM, Nirmal Fernando  wrote:

> [Looping dev@]
>
> Thanks for your interest in this project Asela! We'll go through the
> proposal and try to give you feedback. Please go ahead and upload to GSoC
> site too, meanwhile.
>
> On Thu, Mar 24, 2016 at 6:08 AM, Asela Damian Perera <
> mail.damian.per...@gmail.com> wrote:
>
>> Hello,
>>
>>   I would like to engage in this project in this summer. I am
>> currently a third year (internship year) undergraduate student at
>> Informatics Institute of Technology, following BEng(Hons) in Software
>> Engineering course by University of Westminster UK. In the second year I
>> have achieved an average of 77.1% (Batch Top) and in the first year, 80.4%
>> (September Intake Batch Top). I am a programming enthusiast from senior
>> school days and interested in coding software programs.
>>
>>   My GSOC Proposal:
>> https://drive.google.com/open?id=0B-veGGuXGh76cENmZ1UydVZoT2M, I have
>> also uploaded it to https://summerofcode.withgoogle.com/
>>
>>   I went through the following Apache Projects:
>>
>>  DeepLearning4J. (tried out the samples)
>>
>>
>>  Spark
>>
>>
>>  Batik
>>
>>
>>  I went through the code of the following WSO2 Products:
>>
>>  product-ml
>>
>>
>>  carbon-ml
>>
>>
>> I have also gone through the code of the following WSO2 Products as well
>> previously:
>>
>>
>>  carbon-kernel
>>
>>
>>  jaggery
>>
>>
>>  product-as
>>
>>  product-af
>>
>>  product-emm
>>
>>
>> I have written a simple JAVA CLI for App Factory too (WSO2-AppFactory CLI
>> )
>>
>> I checked-out master branch of product ml, after building product-ml, I
>> extracted the distribution and ran the server, I can access the carbon
>> management console at https://localhost:9443/carbon/admin/login.jsp and
>> login as admin, but https://localhost:9443/ml gives "405 - HTTP method
>> GET is not supported by this URL". There is also a log "Could not
>> instantiate appender named CARBON_MEMORY".
>>
>> Am I missing any configuration?
>>
>> Thank you & Kind Regards,
>> Damian Perera
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Upul Bandara,
Associate Technical Lead, WSO2, Inc.,
Mob: +94 715 468 345.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] DAS - How to change the schema of a table

2016-03-23 Thread Damith Wickramasinghe
Hi all,

I have already created a table with some columns using spark queries and
inserted some data. But I need to add another column to it. Is there a way
to directly achieve this ? Or do I have to drop the table and reinitialize
it ? Also I cannot seems to find a way to remove the table also ? I have
purged all data in said table.

Regards,
Damith.


-- 
Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

mobile: *+94728671315*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC Proposal 3: [ML] Visual (Deep) Neural Network Builder

2016-03-23 Thread Nirmal Fernando
[Looping dev@]

Thanks for your interest in this project Asela! We'll go through the
proposal and try to give you feedback. Please go ahead and upload to GSoC
site too, meanwhile.

On Thu, Mar 24, 2016 at 6:08 AM, Asela Damian Perera <
mail.damian.per...@gmail.com> wrote:

> Hello,
>
>   I would like to engage in this project in this summer. I am
> currently a third year (internship year) undergraduate student at
> Informatics Institute of Technology, following BEng(Hons) in Software
> Engineering course by University of Westminster UK. In the second year I
> have achieved an average of 77.1% (Batch Top) and in the first year, 80.4%
> (September Intake Batch Top). I am a programming enthusiast from senior
> school days and interested in coding software programs.
>
>   My GSOC Proposal:
> https://drive.google.com/open?id=0B-veGGuXGh76cENmZ1UydVZoT2M, I have
> also uploaded it to https://summerofcode.withgoogle.com/
>
>   I went through the following Apache Projects:
>
>  DeepLearning4J. (tried out the samples)
>
>
>  Spark
>
>
>  Batik
>
>
>  I went through the code of the following WSO2 Products:
>
>  product-ml
>
>
>  carbon-ml
>
>
> I have also gone through the code of the following WSO2 Products as well
> previously:
>
>
>  carbon-kernel
>
>
>  jaggery
>
>
>  product-as
>
>  product-af
>
>  product-emm
>
>
> I have written a simple JAVA CLI for App Factory too (WSO2-AppFactory CLI
> )
>
> I checked-out master branch of product ml, after building product-ml, I
> extracted the distribution and ran the server, I can access the carbon
> management console at https://localhost:9443/carbon/admin/login.jsp and
> login as admin, but https://localhost:9443/ml gives "405 - HTTP method
> GET is not supported by this URL". There is also a log "Could not
> instantiate appender named CARBON_MEMORY".
>
> Am I missing any configuration?
>
> Thank you & Kind Regards,
> Damian Perera
>



-- 

Thanks & regards,
Nirmal

Team Lead - WSO2 Machine Learner
Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-23 Thread Asantha Thilina
Hi all,

Thanks a lot for your valuable comments and feedback i done all the changes
as you suggested in feedback and submitted the final document to google
,modified google doc is in here[1]

[1]
https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing

Thanks,
Asantha

On Wed, Mar 23, 2016 at 8:08 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> thanks for the comment, sure i  do the modifications as suggested,
>
> Thanks,
> Asantha
>
> On Wed, Mar 23, 2016 at 6:54 PM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> I've done some minor modifications to the doc. For the methods exposed
>> through the API, can you add them in a table to improve the readability.
>> (Chamila has suggested this already as a comment in the doc). You can have
>> some columns for Method Name, Return type, parameters, description.
>>
>> Once you do this, submit it to google because the deadline is tomorrow
>> for proposal submission.
>>
>> Thanks,
>> TharinduE
>>
>> On Wed, Mar 23, 2016 at 9:08 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> I modified my project proposal[1] in google doc, as you suggested i
>>> added function list which i am going to exposed to apis after modified the
>>> content  i shared the doc to summer of code.
>>> waiting for your feedback
>>> [1]
>>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Tue, Mar 22, 2016 at 8:16 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 thanks a lot for the feedbacks, sure i will modify the content of the
 proposal as suggested  and submit to google within today

 Thanks,
 Asantha


 On Wed, Mar 23, 2016 at 7:45 AM, Tharindu Edirisinghe <
 tharin...@wso2.com> wrote:

> Hi Asantha,
>
> I've added the latest proposal you've sent to google docs in [1]. As
> Chamila suggested, can you list down the methods that you expose in the 
> API
> (public methods in the userstore manager) in the proposal so that it is
> easy to understand the functionality of the userstore manager. Also it is
> better to submit the proposal to google now and update later if any
> modification is needed.
>
> [1]
> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>
> Thanks,
> TharinduE
>
> On Mon, Mar 21, 2016 at 9:58 PM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Chamila,
>>
>> Thanks a lot for the feedback, sure i will update my proposal as you
>> suggested
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Mar 21, 2016 at 9:18 AM, Chamila Wijayarathna <
>> cham...@wso2.com> wrote:
>>
>>> Hi Asantha,
>>>
>>> Looks good, please talk with Tharindu also before submitting the
>>> proposal. Even you submit your proposal, you can improve it until 25th.
>>>
>>> So if time permits, I would like to suggest you to add some details
>>> about what are the APIs and functions you are going to expose after
>>> developing this new user store manager, if you have already decided on
>>> them. Since you may have went through the codes of existing user store
>>> managers, you may already have an idea about what are the functions you
>>> need to exposed to outside. So if can add at least few functions you are
>>> going to expose with some details, it would make your proposal more
>>> attractive. Also I would like to suggest you to add link of github repo
>>> where you have started development. Also if you have written any blogs
>>> related to the project, mongoDB, etc. please mention them also in your
>>> proposal.
>>>
>>> Also I see some formatting issues and some dates has got repeated in
>>> your timeline, hope you will correct the when submitting proposal at 
>>> GSoC
>>> site.
>>>
>>> Cheers!
>>>
>>> On Mon, Mar 21, 2016 at 9:18 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Chamila,

 Thanks a lot for your valuable feedback as you suggested i
 corrected my project proposal and here i attached my finalize project
 proposal

 expecting your feedback

 Thanks,
 Asantha

 On Mon, Mar 21, 2016 at 5:44 AM, Chamila Wijayarathna <
 cham...@wso2.com> wrote:

> Hi Asantha,
>
> Thanks for sending your proposal. It seems to be in good shape,
> but I would like to suggest few more improvements.
>
>1.  You have mentioned you are implementing Custom User Store
>Manager by extending JDBCUserStoreManager. But actually you have 
> to extend
>AbstractUserStoreManager. I think you have done this corre

Re: [Dev] Applying for GSoC 2016 ----> Visual (Deep) Neural Network Builder

2016-03-23 Thread Upul Bandara
Yes, you are correct.

Actually, w don't need to implement anything on top of the DL4J library in
order to support Spark. It is already available in DL4J.

Thanks,
Upul

On Thu, Mar 24, 2016 at 9:07 AM, Vishma Senadhi Dias <
vishma...@cse.mrt.ac.lk> wrote:

> Hi Upul,
>
> I am working on the proposal and I will be able to submit a draft on
> today. I will let you know when I complete the draft.
>
> Meanwhile am I correct to interpret that Visual neural network needs,
>
>1. JavaScript front end
>2. Neural network build from DL4J using front end configurations
>3. Apache spark for data parallelism ( can implemented internally on
>dl4j)
>4. Integration of the module to WSO2 machine learner so that it could
>work as an internal implementation which is able to use WSO2 Data Analytic
>Servers
>
> Please do correct me if I am wrong.
>
> Thanks,
> Vishma.
>
>
> On 3/23/2016 7:56 AM, Upul Bandara wrote:
>
> Hi Vishma,
>
> WSO2 Machine Learner: Best place to get started with our server is its
> documentation page [1].
> DL4J also has a very good documentation and tutorials.
>
> But at the initial stage, high-level understanding of our product and
> other libraries would be enough. Later you can go through
> documentation/tutorials to get more information about required libraries.
>
> So please try to come up with a proposal and share it with us. If you
> could do this before this Friday, we can easily give us some feedback
> before submitting it.
>
> Thanks,
> Upul
>
> [1].  
> https://docs.wso2.com/display/ML110/Introducing+Machine+Learner
>
> On Mon, Mar 21, 2016 at 8:55 PM, Vishma Dias 
> wrote:
>
>> Hi Upul,
>>
>> I am working on the proposal at the moment. To be honest I have not used
>> DL4J before. I have a little trouble with deciding on the required
>> knowledge scope to this project.
>>
>> Can you help me with some instructions on the expected level of skills on,
>>
>>1. WSO2 Machine Learner
>>2. DL4J
>>
>> I am familiar with Apache Spark Libraries. Is there any other concerns on
>> this project?
>>
>> Best Regards,
>> Vishma.
>>
>> On 3/21/2016 1:33 PM, Upul Bandara wrote:
>>
>> Hi Vishma,
>>
>> Please note that deadline for the project proposal is this Friday and
>> send your proposal to dev@wso2.org and project mentor(s).
>>
>> Thanks,
>> Upul
>>
>> On Wed, Mar 9, 2016 at 1:24 PM, Upul Bandara < 
>> u...@wso2.com> wrote:
>>
>>> Hi Vishma,
>>>
>>> First you have to create a project proposal. In order to get an idea
>>> about the proposal I would like to point, Nirmal's proposal submitted to
>>> 2011 GSOC
>>>
>>>
>>> 
>>> http://nirmalfdo.blogspot.com/2011/04/apache-tuscany-develop-simple-tool-that.html
>>>
>>> If you need further help, please let us know.
>>>
>>> Thanks,
>>> Upul
>>>
>>> On Wed, Mar 9, 2016 at 9:32 AM, Vishma Senadhi Dias <
>>> vishma...@cse.mrt.ac.lk> wrote:
>>>
 Hi all,

 I am Vishma, a third year undergraduate from Department of Computer
 Science and Engineering, University of Moratuwa, Sri Lanka. I would like to
 apply for the Visual (Deep) Neural Network Builder project. It would be
 very helpful if I could get any instructions on starting things up.

 Thanks in advance,
 Vishma.

>>>
>>>
>>>
>>> --
>>> Upul Bandara,
>>> Associate Technical Lead, WSO2, Inc.,
>>> Mob: +94 715 468 345 <%2B94%20715%20468%20345>.
>>>
>>
>>
>>
>> --
>> Upul Bandara,
>> Associate Technical Lead, WSO2, Inc.,
>> Mob: +94 715 468 345 <%2B94%20715%20468%20345>.
>>
>>
>>
>
>
> --
> Upul Bandara,
> Associate Technical Lead, WSO2, Inc.,
> Mob: +94 715 468 345.
>
>
>


-- 
Upul Bandara,
Associate Technical Lead, WSO2, Inc.,
Mob: +94 715 468 345.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Proposal 17: [CEP] Auto-tuning of WSO2 CEP

2016-03-23 Thread Mohamed Rilfi
Hi all

Just now i shared my proposal. I'm extremely sorry for the late.
I'm kindly requesting to review the proposal and give your feedback's.

Thanks

-- 

*M.R.M.Rilfi
M.Sc in Computer Science (Reading) Moratuwa
B.Sc Sp. Computer Science
Dept. Computer Science & Engineering,University of Moratuwa
ri...@live.com  , ri...@cse.mrt.ac.lk 
+94776284627
URL:rilfi.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Device Enrollment Failed - WSO2 EMM 2.0

2016-03-23 Thread Kamidu Punchihewa
Hi Suresh,

Can you kindly provide the new mailto configuration.

Thnaks,

Kamidu Sachith Punchihewa
*Software Engineer*
WSO2, Inc.
lean . enterprise . middleware
Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>


Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
retransmit, disseminate, or otherwise use the information contained in this
communication. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.

On Wed, Mar 23, 2016 at 5:11 PM, Suresh Kumar 
wrote:

> Hi Sachith
>
>
> I tried as you mentioned, changed the 'axis2_client.xml' instead of
> axis2.xml however I'm getting following exception, Kindly help out
>
>
> [2016-03-23 16:52:38,756] ERROR
> {org.wso2.carbon.device.mgt.core.email.sender.EmailServiceProviderImpl} -
> Error in delivering the message, subject: 'Enroll your Device
>  with WSO2 MDM', to: 'sureshkrish...@gmail.com'
> org.apache.axis2.AxisFault: The system cannot infer the transport
> information from the mailto:sureshkrish...@gmail.com URL.
> at
> org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81)
> at
> org.apache.axis2.client.OperationClient.prepareMessageContext(OperationClient.java:288)
> at
> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:249)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:511)
> at
> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:488)
> at
> org.wso2.carbon.device.mgt.core.email.sender.EmailServiceProviderImpl$EmailSender.run(EmailServiceProviderImpl.java:109)
> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
> Source)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
> Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Unknown Source)
>
> Thanks
>
> Suresh K
> --
> *From:* Suresh Kumar
> *Sent:* Wednesday, March 23, 2016 4:24 PM
> *To:* Kamidu Punchihewa
>
> *Subject:* Re: Device Enrollment Failed - WSO2 EMM 2.0
>
>
> Thanks Sachith , I will try and i will update.
>
>
>
>
> --
> *From:* Kamidu Punchihewa 
> *Sent:* Wednesday, March 23, 2016 4:16 PM
> *To:* Suresh Kumar
> *Subject:* Re: Device Enrollment Failed - WSO2 EMM 2.0
>
> Hi Suresh,
>
> Please move the mailto configuration to axis2_client.xml from axis2.xml.
>
> You can find a sample configuration given below.
>
> *
> *class="org.apache.axis2.transport.mail.MailTransportSender">*
>
> @gmail.com
>> *
>
> @gmail.com
>> *
>
> 
>
> *smtp.gmail.com
>> *
>
> *587*
>
> *true*
>
> *true *
>
> * *
>
>
> Feel free to raise any double regarding wso2 EMM. You can utilities
> dev@wso2.org public mail to discuss any topic related to wso2 products.
>
> Thanks and Best Regards,
>
> Kamidu Sachith Punchihewa
> *Software Engineer*
> WSO2, Inc.
> lean . enterprise . middleware
> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, retransmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> On Wed, Mar 23, 2016 at 1:53 PM, Suresh Kumar 
> wrote:
>
>> Hi Sachith
>>
>>
>> Nice talking with you , Let me explain the problem which i'm facing
>>
>>
>> I have hosted WSO2 EMM in windows 10, configured the email setup in
>> \wso2emm-2.0.0\repository\conf\axis2\axis.xml, The WSO2 EMM is hosted with
>> public IP. When i tried to register the user after successful registration
>> EMM will send an device enrollment email which is not getting generated.
>>
>>
>> Please find the below SMTP configuration details
>>
>>
>> (I have masked the smtp user,password, from for security purpose it's
>> confidential it's one of my client SMTP details. However in my local when i
>> use SMTP host as smtp.gmai

Re: [Dev] [GSoC 2016]Proposal 03:[ML] Visual (Deep) Neural Network Builder

2016-03-23 Thread Upul Bandara
Please grant us comment rights.

On Thu, Mar 24, 2016 at 9:02 AM, Upul Bandara  wrote:

> Yes, just started to read it and will provide feedback ASAP
>
> On Thu, Mar 24, 2016 at 8:55 AM, Lakini Senanayaka <
> lakinisenanayak...@gmail.com> wrote:
>
>> Hi,
>>
>> Hope you got my mail about the proposal.
>>
>> On Wed, Mar 23, 2016 at 5:18 PM, Lakini Senanayaka <
>> lakinisenanayak...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Could you please check my proposal[1] for [ML] Visual (Deep) Neural
>>> Network Builder.I kindly request your feedback and comments on it.
>>>
>>> [1]Proposal 03:[ML] Visual (Deep) Neural Network Builder
>>> 
>>>
>>>
>>> --
>>> Thank you.
>>>
>>> Sincerely,
>>> *Lakini Senanayaka.*
>>>
>>>
>>
>>
>> --
>> Thank you.
>>
>> Sincerely,
>> *Lakini Senanayaka.*
>>
>>
>
>
> --
> Upul Bandara,
> Mob: +94 715 468 345.
>



-- 
Upul Bandara,
Associate Technical Lead, WSO2, Inc.,
Mob: +94 715 468 345.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2016]Proposal 03:[ML] Visual (Deep) Neural Network Builder

2016-03-23 Thread Upul Bandara
Yes, just started to read it and will provide feedback ASAP

On Thu, Mar 24, 2016 at 8:55 AM, Lakini Senanayaka <
lakinisenanayak...@gmail.com> wrote:

> Hi,
>
> Hope you got my mail about the proposal.
>
> On Wed, Mar 23, 2016 at 5:18 PM, Lakini Senanayaka <
> lakinisenanayak...@gmail.com> wrote:
>
>> Hi,
>>
>> Could you please check my proposal[1] for [ML] Visual (Deep) Neural
>> Network Builder.I kindly request your feedback and comments on it.
>>
>> [1]Proposal 03:[ML] Visual (Deep) Neural Network Builder
>> 
>>
>>
>> --
>> Thank you.
>>
>> Sincerely,
>> *Lakini Senanayaka.*
>>
>>
>
>
> --
> Thank you.
>
> Sincerely,
> *Lakini Senanayaka.*
>
>


-- 
Upul Bandara,
Mob: +94 715 468 345.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding new library [Taxonomy Feature]

2016-03-23 Thread Jerad Rutnam
Hi Lahiru,

We already have a basic tree-view component in our wso2 theme [1]. Will
that provides your need?

[1] - http://wso2-dev-ux.github.io/theme-wso2/layout.html

Cheers,
Jerad

On Thu, Mar 24, 2016 at 7:20 AM, Lahiru J Ekanayake 
wrote:

> Hi All,
>
> We are using a new javascript library [1] for tree view. What is the
> process of getting approval for this library ?. And its nice to have
> support from UX team also to finalize these styling and libraries.
>
> [1] - https://www.jstree.com/
>
> Regards.
>
> --
>
>
>
> *Lahiru J Ekanayake**Software Engineer*
> Mobile : +94 (0) 77 8812629 / +94(0) 778509547
> Email : lahi...@wso2.com
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>
>


-- 
*Jerad Rutnam*
*Software Engineer*

WSO2 Inc.
lean | enterprise | middleware
M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-03-23 Thread Supun Sethunga
Looks good! Please go ahead and submit to GSoC.

Thanks,
Supun

On Thu, Mar 24, 2016 at 4:02 AM, Misgana Negassi <
negas...@tf.uni-freiburg.de> wrote:

> Hi Supun,
>
> I have added the changes you recommended. Could you kindly give me a
> feedback?
>
> Best,
> Misgana
>
> On 23.03.2016 15:04, Supun Sethunga wrote:
>
> Hi Misgana,
>
> I went through your proposal. Overall it looks good. Here are a few
> comments I would like to point out:
>
>- Its better to have some sort of an architecture diagram, explaining
>your solution in a higher level.
>- In the timeline, better to break down the "Week 1­3 (May 23 ­ June
>20, 2016)" into three sub-levels, and allocate timeslots for each of the
>three methods (Stacking, Boosting and Bagging) separately. That would make
>it easy for you to work on those methods separately, as well as to track
>the progress.
>- In the timeline, can you double check the "week" numbers..? for eg;
>in [*Week 1­-3 (May 23 ­ June 20, 2016*], I guess it should be "*Week
>1-4*" (there are four weeks in the mentioned duration). Similarly,
>check the others too.
>
> Please share us the draft proposal once you fix those.
>
> Thanks,
> Supun
>
> On Wed, Mar 23, 2016 at 7:17 PM, Misgana Negassi <
> negas...@tf.uni-freiburg.de> wrote:
>
>> Hi Supun,
>>
>> I am attaching my proposal draft. I am very grateful for your comments.
>>
>> Thanks,
>> Misgana
>>
>>
>> On 23.03.2016 04:54, Supun Sethunga wrote:
>>
>> Hi Misgana,
>>
>> As we have mentioned in the project proposal as well, the main objective
>> is to integrate ensemble support for the existing flow of the WSO2 Machine
>> Learner. We are focusing on the three methods: Bagging, Boosting and
>> Stacking. (On technique per each of these methods)
>>
>> If you haven't tried out already, you can get to know the Machine
>> Learner product by downloading it and running it (Please use link [1] to
>> download). Official documentation [2] and blog [3] will help you on how to
>> use the product. You can also go through the source code of WSO2 ML ([4]
>> and [5]), and get familiarized with the current implementations.
>>
>> Meantime, as Nirmal mentioned, can you please send us the draft of the
>> proposal so that we can review it and give you a feedback?
>>
>> [1]  
>> http://wso2.com/products/machine-learner/
>> [2]  
>> https://docs.wso2.com/display/ML100/Introducing+Machine+Learner
>> [3]
>> 
>> http://supunsetunga.blogspot.com/2015/09/building-your-first-predictive-model.html
>> [4]  https://github.com/wso2/carbon-ml
>> [5]  
>> https://github.com/wso2/product-ml
>>
>> Thanks,
>> Supun
>>
>> On Wed, Mar 23, 2016 at 7:20 AM, Nirmal Fernando < 
>> nir...@wso2.com> wrote:
>>
>>> Thanks, Misgana for your interest in a WSO2 ML GSoC project. Whilst I
>>> let Supun give you some more information on the project, I encourage you to
>>> create a draft proposal and send us for review.
>>>
>>> On Wed, Mar 23, 2016 at 2:58 AM, Misgana Negassi <
>>> negas...@tf.uni-freiburg.de> wrote:
>>>
 Hallo!

 I am Misgana, hailing from Freiburg, Germany and I am interested in
 working with you on the Ensemble methods . I have already implemented
 Stacking in python(code available in github/zemoel) and compared it to
 other ensemble methods such as Ensemble Selection on AUC performance
 measures. The comparison also included using above mentioned methods as
 part of an automated machine learning platform(Autosklearn).

 I am currently working on my proposal and would be grateful for your
 reply.

 Misgana

>>>
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> http://wso2.com/
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>>
>>
>
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>
>
>


-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-23 Thread Asantha Thilina
Hi Tharindu,

thanks for the comment, sure i  do the modifications as suggested,

Thanks,
Asantha

On Wed, Mar 23, 2016 at 6:54 PM, Tharindu Edirisinghe 
wrote:

> Hi Asantha,
>
> I've done some minor modifications to the doc. For the methods exposed
> through the API, can you add them in a table to improve the readability.
> (Chamila has suggested this already as a comment in the doc). You can have
> some columns for Method Name, Return type, parameters, description.
>
> Once you do this, submit it to google because the deadline is tomorrow for
> proposal submission.
>
> Thanks,
> TharinduE
>
> On Wed, Mar 23, 2016 at 9:08 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> I modified my project proposal[1] in google doc, as you suggested i added
>> function list which i am going to exposed to apis after modified the
>> content  i shared the doc to summer of code.
>> waiting for your feedback
>> [1]
>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>
>> Thanks,
>> Asantha
>>
>> On Tue, Mar 22, 2016 at 8:16 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> thanks a lot for the feedbacks, sure i will modify the content of the
>>> proposal as suggested  and submit to google within today
>>>
>>> Thanks,
>>> Asantha
>>>
>>>
>>> On Wed, Mar 23, 2016 at 7:45 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
 Hi Asantha,

 I've added the latest proposal you've sent to google docs in [1]. As
 Chamila suggested, can you list down the methods that you expose in the API
 (public methods in the userstore manager) in the proposal so that it is
 easy to understand the functionality of the userstore manager. Also it is
 better to submit the proposal to google now and update later if any
 modification is needed.

 [1]
 https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing

 Thanks,
 TharinduE

 On Mon, Mar 21, 2016 at 9:58 PM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Chamila,
>
> Thanks a lot for the feedback, sure i will update my proposal as you
> suggested
>
> Thanks,
> Asantha
>
> On Mon, Mar 21, 2016 at 9:18 AM, Chamila Wijayarathna <
> cham...@wso2.com> wrote:
>
>> Hi Asantha,
>>
>> Looks good, please talk with Tharindu also before submitting the
>> proposal. Even you submit your proposal, you can improve it until 25th.
>>
>> So if time permits, I would like to suggest you to add some details
>> about what are the APIs and functions you are going to expose after
>> developing this new user store manager, if you have already decided on
>> them. Since you may have went through the codes of existing user store
>> managers, you may already have an idea about what are the functions you
>> need to exposed to outside. So if can add at least few functions you are
>> going to expose with some details, it would make your proposal more
>> attractive. Also I would like to suggest you to add link of github repo
>> where you have started development. Also if you have written any blogs
>> related to the project, mongoDB, etc. please mention them also in your
>> proposal.
>>
>> Also I see some formatting issues and some dates has got repeated in
>> your timeline, hope you will correct the when submitting proposal at GSoC
>> site.
>>
>> Cheers!
>>
>> On Mon, Mar 21, 2016 at 9:18 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Chamila,
>>>
>>> Thanks a lot for your valuable feedback as you suggested i corrected
>>> my project proposal and here i attached my finalize project proposal
>>>
>>> expecting your feedback
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Mar 21, 2016 at 5:44 AM, Chamila Wijayarathna <
>>> cham...@wso2.com> wrote:
>>>
 Hi Asantha,

 Thanks for sending your proposal. It seems to be in good shape, but
 I would like to suggest few more improvements.

1.  You have mentioned you are implementing Custom User Store
Manager by extending JDBCUserStoreManager. But actually you have to 
 extend
AbstractUserStoreManager. I think you have done this correctly in 
 the code
you sent previously. Please correct this.
2. I think by custom user store manager, you have meant mongoDB
user store manager you are planning to implement, in most places. 
 Its
better to mention specifically as MongoDBUserStoreManager than 
 saying
custom user store manager.
3. You have mentioned about "Implement a proper encryption
mechanism to overcome the security hauls in custom User store 
 Manager.".

Re: [Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-23 Thread Kasun Dananjaya Delgolla
Hi Sameera,

Please find the documentation link[1] for policy management. You can
carefully study the current behavior of the policy management feature and
think of a unique way of solving the problem "Enforcing policies based on
users location and a given time frame". Take all the points that I've
described in my first mail and start building your proposal. Good luck!

[1] - https://docs.wso2.com/display/EMM210/Managing+Policies

On Wed, Mar 23, 2016 at 10:37 PM, Sameera Wickramasekara <
itssamw...@gmail.com> wrote:

> Hi,
>
> I have successfully built the WSO2 EMM from source. i have understood that
> the deliverables are time and location based policy enforcement. how should
> i start to implement a custom policy/ change a policy  in the EMM ? can you
> point me to a tutorial of some sort.
> And i hope i will be able to complete my proposal before the deadline with
> your guidence
>
> Thank you
> Sameera Wickramasekara
>
>
> On Mon, Mar 14, 2016 at 2:10 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi Sameera,
>>
>> Thank you for your interest in this project.
>>
>>
>> In order to get a better picture of the project make sure to build WSO2
>> EMM[1] including CDMF framework[2] using the git repositories listed.
>>
>> Enroll a device and a publish a sample policy against the device and
>> study the current behavior of the policy.
>> You are expected to change the behavior a mentioned below.
>>
>> Given policy must be activated automatically when the device enters a
>> predefined area.
>> Given policy must be deactivated when a device leaves a predefined area.
>> Given policy must be activated automatically in the given time frame.
>> Stats of the current policy, whether its active or inactive need to be
>> visible in the dashboard.
>> Policy compliance monitoring to the given device must be activated when
>> a policy is activated.
>>
>> Project deliverable "Extension point for current EMM policy module with
>> location and time based policy publishing capability" includes
>> followings,
>>
>>- Location based policy enforcement component.
>>- A component which enables the location base policy monitoring and
>>   enforcement including statics.This need to be a extension to thee
>>   component which enabled device policies currently
>>- Time based location component.
>>- A component which enables the time base policy monitoring and
>>   enforcement including statics.This need to be a extension to thee
>>   component which enabled device policies currently
>>- Location and time based policy configuration UI.
>>- This is to enable users to configure and maintain the locations and
>>   time frames.The UI must have the ability to monitor the policies which
>>   is active in the device and compliance status.Above features must
>>   follow the current pattern used for policy monitoring and Policy 
>> Management
>>   in WSO2 EMM.
>>
>>
>> While working with WSO2 EMM, if you found any bugs or improvements feel
>> free to let us know by using the oxygen tank[3].
>>
>> [1] https://github.com/wso2/carbon-device-mgt
>> [2] https://github.com/wso2/product-mdm
>> [3] https://wso2.org/jira/secure/Dashboard.jspa
>>
>> Thank you
>>
>> On Mon, Mar 14, 2016 at 1:36 PM, Sameera Wickramasekara <
>> itssamw...@gmail.com> wrote:
>>
>>>
>>>
>>> Hi ,
>>> Im Sameera Wickramasekara, a 3rd year Undergraduate from University of
>>> Moratuwa Faculty of information Technology. Im interested in the Location
>>> and Time-based Device policy Endorsement Project. I have good experience in
>>> Java and Android development. and Im confident i would be able to complete
>>> this project with your guidance.please let me know how to proceed from here.
>>>
>>> thank you
>>>
>>>
>>
>>
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> *
>>
>
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoc 2016-Proposal 16

2016-03-23 Thread Jasintha Dasanayake
HI Nathiesha

On Mon, Mar 21, 2016 at 11:20 PM,  wrote:

> Hi all,
>
> I will add the additional features to the project as you have suggested
> I tried creating a draft high level architecture diagram for the project.
> And I also started with creating the draft proposal. The link is given
> below.
>
>
> https://docs.google.com/document/d/12JqluYhlcWAN8kqxfTcwVrH_ylKaf3sNvevodOxwRho/edit?usp=sharing
>

I can't open this document due to a permission issue , can you please have
 a look ?

Thanks and Regards
/Jasintha



>
> The draft architecture diagram and its components are briefly described
> their. I didn't completed the implementation part and other latter parts
> completely yet.
>
> Regarding the architecture diagram, please let me know if that fits the
> purpose or any changes need to be done? For some use cases, I have denoted
> in the diagram as separate modules for easy visualization and scalability
> purposes. But certain modules can be integrated together into a single
> module if needed, during implementation.
>
> And regarding the format of the proposal, have I missed anything? Do I
> need to include anything else? Please let me know your idea about that.
>
> Thanks and regards
>
> Nathiesha
>
> Sent from Windows Mail
>
> *From:* Awanthika Senarath 
> *Sent:* ‎Monday‎, ‎March‎ ‎21‎, ‎2016 ‎8‎:‎07‎ ‎AM
> *To:* Nathiesha Maddage 
> *Cc:* dev@wso2.org, Jasintha Dasanayake 
>
> Hello Nathiesha ,
>
> Please find my comments inline,
>
>
> Regarding the Dev Studio, what  type of users are using it? Is it for the
> internal developers, external developers or for both? And when reporting
> the errors for the wso2 Jira, other than the information about the error,
> what information about users should be collected? I hope name and email
> would be sufficient enough.
>
> It is for both. mainly it is for artifact development for WSO2 products
> and hence majority of the users are our customers, which would fall into
> external developers according to your categorization.
>
> When considering the error reporting tool plugin found in Eclipse Mars, it
> provides a feature for the user to anonymize stack trace and anonymize
> messages if it contains sensitive data. Will that feature be useful for
> this proposed plugin as well?
>
> Yes, +1. This would be a required feature since customers may have
> sensitive data they need to hide before reporting the error.
>
> Other than the automatic error reporting to the wso2 Jira, an
> additional feature can be added to the plugin for the user to enter an
> email address, if he wishes to send the error report to some person/mailing
> list, only if that is useful. Furthermore should the plugin provide a way
> to contact the development team through the IDE? Like may be a menu item,
> that pops up a window that allows user to send a message/email to the
> development team? Or is it just the automated error reporting functionality
> expected?
>
> We need to discuss this internally in the team. I'll provide you feedback
> later on this.
>
> Regarding the Jira wso2 online supporting system, I came through Jira Rest
> APIs that allows to access Jira services. Can those be used to access wso2
> online supporting system as well? Or is there any other way or separate API
> for wso2 online supporting system ?
>
> You can use Jira rest APIs to access WSO2 support JIRA system.
>
> And as additional features, would it be useful if reporter is provided on
> a feedback, where reporter can track the error and view the progress if he
> is interested? And also maybe to keep track of the errors sent
> previously and skip reporting the similar errors?
>
> +1 these would be interesting features to have if you can integrate them
> with the task given.
>
>
> Regards
> Awanthika
>
>
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Sun, Mar 20, 2016 at 8:15 PM,  wrote:
>
>> Hi ,
>>
>> Thank you. I will look into the ‘IDeveloperStudioLog’ class to get an
>> idea about the logging information.
>>
>> I’ve got some more questions regarding the project and developer studio.
>>
>> Regarding the Dev Studio, what  type of users are using it? Is it for the
>> internal developers, external developers or for both? And when reporting
>> the errors for the wso2 Jira, other than the information about the error,
>> what information about users should be collected? I hope name and email
>> would be sufficient enough.
>> When considering the error reporting tool plugin found in Eclipse Mars,
>> it provides a feature for the user to anonymize stack trace and anonymize
>> messages if it contains sensitive data. Will that feature be useful for
>> this proposed plugin as well?
>>
>> Other than the automatic error reporting to the wso2 Jira, an
>> additional feature can be added to the plugin for the user to enter an
>> email address, if he wishes to send the error report to some person/mailing
>> list, only if that is useful. Furthermore should the plugin provide a way
>> to 

Re: [Dev] GSoC '16 - Proposal 16: Contact Development Team feature in DevStudio

2016-03-23 Thread Awanthika Senarath
Hello Chanuka,

What we expect is something similar to eclipse mars implementation.

The latest released developer studio is on Eclipse Luna, and the next
release would be on Eclipse Mars which would be release within this
quarter.You can checkout the Developer Studio kernel code and get a basic
understanding on the code level.

You can go ahead and start creating your proposal.

Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Tue, Mar 22, 2016 at 8:01 PM, Chanuka Wijayakoon <
cl.workplac...@gmail.com> wrote:

> Hi,
>
> I am Chanuka Wijayakoon, a 2nd year undergraduate at the Department of
> Computer Science & Engineering in University of Moratuwa. I'm interested in
> building a semi-automated error reporting extension for DevStudio as a GSoC
> 2016 intern.
>
> I have selected this proposal after carefully considering my skills and
> past experience in working with Java and related technologies. I have a
> special interest towards building Eclipse plugins.
>
> So far I have researched on existing solutions for automated error
> reporting and came across the AERI of Eclipse Mars as a model solution. It
> provides developers with a rich set of features to report errors in Eclipse
> to a central server with relevant metadata. It integrates with the Eclipse
> RCP as part of the EPP.
>
> As I understand, a viable solution for proposal 16 would be of similar
> design tailored for DevStudio users. Currently I'm studying how DevStudio
> (based on Eclipse Luna 4.4) differs from Eclipse Mars 4.5, implementation
> details of EPP & JIRA usage.
>
> I'd be grateful if you could tell me whether I'm headed in the right
> direction and suggest anything to further read or work on to familiarize
> with your system.
>
> Best regards,
>
>
> Chanuka Wijayakoon
> Mobile: +94 779 089 737
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoc 2016-Proposal 16

2016-03-23 Thread Awanthika Senarath
Hi Nathiesha,

All you proposed ideas seems good.

You can add all the ideas you have as optional features in your proposal.
We can evaluate the applicability once the proposal is submitted.

As for the user side errors network availability and resource blocking it
may not be required to be reported.


Regards
Awanthika




Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Tue, Mar 22, 2016 at 9:22 AM, Awanthika Senarath 
wrote:

> Hello Nathiesha,
>
> This seems good. Let us know once you have completed the document. I will
> get back to you on the un-answered questions in your previous emails ASAP.
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Mon, Mar 21, 2016 at 11:20 PM,  wrote:
>
>> Hi all,
>>
>> I will add the additional features to the project as you have suggested
>> I tried creating a draft high level architecture diagram for the project.
>> And I also started with creating the draft proposal. The link is given
>> below.
>>
>>
>> https://docs.google.com/document/d/12JqluYhlcWAN8kqxfTcwVrH_ylKaf3sNvevodOxwRho/edit?usp=sharing
>>
>> The draft architecture diagram and its components are briefly described
>> their. I didn't completed the implementation part and other latter parts
>> completely yet.
>>
>> Regarding the architecture diagram, please let me know if that fits the
>> purpose or any changes need to be done? For some use cases, I have denoted
>> in the diagram as separate modules for easy visualization and scalability
>> purposes. But certain modules can be integrated together into a single
>> module if needed, during implementation.
>>
>> And regarding the format of the proposal, have I missed anything? Do I
>> need to include anything else? Please let me know your idea about that.
>>
>> Thanks and regards
>>
>> Nathiesha
>>
>> Sent from Windows Mail
>>
>> *From:* Awanthika Senarath 
>> *Sent:* ‎Monday‎, ‎March‎ ‎21‎, ‎2016 ‎8‎:‎07‎ ‎AM
>> *To:* Nathiesha Maddage 
>> *Cc:* dev@wso2.org, Jasintha Dasanayake 
>>
>> Hello Nathiesha ,
>>
>> Please find my comments inline,
>>
>>
>> Regarding the Dev Studio, what  type of users are using it? Is it for the
>> internal developers, external developers or for both? And when reporting
>> the errors for the wso2 Jira, other than the information about the error,
>> what information about users should be collected? I hope name and email
>> would be sufficient enough.
>>
>> It is for both. mainly it is for artifact development for WSO2 products
>> and hence majority of the users are our customers, which would fall into
>> external developers according to your categorization.
>>
>> When considering the error reporting tool plugin found in Eclipse Mars,
>> it provides a feature for the user to anonymize stack trace and anonymize
>> messages if it contains sensitive data. Will that feature be useful for
>> this proposed plugin as well?
>>
>> Yes, +1. This would be a required feature since customers may have
>> sensitive data they need to hide before reporting the error.
>>
>> Other than the automatic error reporting to the wso2 Jira, an
>> additional feature can be added to the plugin for the user to enter an
>> email address, if he wishes to send the error report to some person/mailing
>> list, only if that is useful. Furthermore should the plugin provide a way
>> to contact the development team through the IDE? Like may be a menu item,
>> that pops up a window that allows user to send a message/email to the
>> development team? Or is it just the automated error reporting functionality
>> expected?
>>
>> We need to discuss this internally in the team. I'll provide you feedback
>> later on this.
>>
>> Regarding the Jira wso2 online supporting system, I came through Jira
>> Rest APIs that allows to access Jira services. Can those be used to access
>> wso2 online supporting system as well? Or is there any other way
>> or separate API for wso2 online supporting system ?
>>
>> You can use Jira rest APIs to access WSO2 support JIRA system.
>>
>> And as additional features, would it be useful if reporter is provided on
>> a feedback, where reporter can track the error and view the progress if he
>> is interested? And also maybe to keep track of the errors sent
>> previously and skip reporting the similar errors?
>>
>> +1 these would be interesting features to have if you can integrate them
>> with the task given.
>>
>>
>> Regards
>> Awanthika
>>
>>
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Sun, Mar 20, 2016 at 8:15 PM,  wrote:
>>
>>> Hi ,
>>>
>>> Thank you. I will look into the ‘IDeveloperStudioLog’ class to get an
>>> idea about the logging information.
>>>
>>> I’ve got some more questions regarding the project and developer studio.
>>>
>>> Regarding the Dev Studio, what  type of users are using it? Is it for
>>> the internal developers, external developers or for both? And when
>>> reporting the errors for the wso2 Jira

Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-23 Thread Tharindu Edirisinghe
Hi Asantha,

I've done some minor modifications to the doc. For the methods exposed
through the API, can you add them in a table to improve the readability.
(Chamila has suggested this already as a comment in the doc). You can have
some columns for Method Name, Return type, parameters, description.

Once you do this, submit it to google because the deadline is tomorrow for
proposal submission.

Thanks,
TharinduE

On Wed, Mar 23, 2016 at 9:08 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> I modified my project proposal[1] in google doc, as you suggested i added
> function list which i am going to exposed to apis after modified the
> content  i shared the doc to summer of code.
> waiting for your feedback
> [1]
> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>
> Thanks,
> Asantha
>
> On Tue, Mar 22, 2016 at 8:16 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> thanks a lot for the feedbacks, sure i will modify the content of the
>> proposal as suggested  and submit to google within today
>>
>> Thanks,
>> Asantha
>>
>>
>> On Wed, Mar 23, 2016 at 7:45 AM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Asantha,
>>>
>>> I've added the latest proposal you've sent to google docs in [1]. As
>>> Chamila suggested, can you list down the methods that you expose in the API
>>> (public methods in the userstore manager) in the proposal so that it is
>>> easy to understand the functionality of the userstore manager. Also it is
>>> better to submit the proposal to google now and update later if any
>>> modification is needed.
>>>
>>> [1]
>>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>>
>>> Thanks,
>>> TharinduE
>>>
>>> On Mon, Mar 21, 2016 at 9:58 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Chamila,

 Thanks a lot for the feedback, sure i will update my proposal as you
 suggested

 Thanks,
 Asantha

 On Mon, Mar 21, 2016 at 9:18 AM, Chamila Wijayarathna >>> > wrote:

> Hi Asantha,
>
> Looks good, please talk with Tharindu also before submitting the
> proposal. Even you submit your proposal, you can improve it until 25th.
>
> So if time permits, I would like to suggest you to add some details
> about what are the APIs and functions you are going to expose after
> developing this new user store manager, if you have already decided on
> them. Since you may have went through the codes of existing user store
> managers, you may already have an idea about what are the functions you
> need to exposed to outside. So if can add at least few functions you are
> going to expose with some details, it would make your proposal more
> attractive. Also I would like to suggest you to add link of github repo
> where you have started development. Also if you have written any blogs
> related to the project, mongoDB, etc. please mention them also in your
> proposal.
>
> Also I see some formatting issues and some dates has got repeated in
> your timeline, hope you will correct the when submitting proposal at GSoC
> site.
>
> Cheers!
>
> On Mon, Mar 21, 2016 at 9:18 PM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Chamila,
>>
>> Thanks a lot for your valuable feedback as you suggested i corrected
>> my project proposal and here i attached my finalize project proposal
>>
>> expecting your feedback
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Mar 21, 2016 at 5:44 AM, Chamila Wijayarathna <
>> cham...@wso2.com> wrote:
>>
>>> Hi Asantha,
>>>
>>> Thanks for sending your proposal. It seems to be in good shape, but
>>> I would like to suggest few more improvements.
>>>
>>>1.  You have mentioned you are implementing Custom User Store
>>>Manager by extending JDBCUserStoreManager. But actually you have to 
>>> extend
>>>AbstractUserStoreManager. I think you have done this correctly in 
>>> the code
>>>you sent previously. Please correct this.
>>>2. I think by custom user store manager, you have meant mongoDB
>>>user store manager you are planning to implement, in most places. Its
>>>better to mention specifically as MongoDBUserStoreManager than saying
>>>custom user store manager.
>>>3. You have mentioned about "Implement a proper encryption
>>>mechanism to overcome the security hauls in custom User store 
>>> Manager.".
>>>Can you be more specific on what are the security holes you are 
>>> talking
>>>about. AFAIK encryption mechanisms we are currently using are quite 
>>> ok and
>>>if there are no any strong reasons, I suggest you to follow the 
>>> existing
>>>mechanisms.
>>>4. It would be great if you can allocate 1-2 weeks for doing a
>>>small researc

[Dev] Adding new library [Taxonomy Feature]

2016-03-23 Thread Lahiru J Ekanayake
Hi All,

We are using a new javascript library [1] for tree view. What is the
process of getting approval for this library ?. And its nice to have
support from UX team also to finalize these styling and libraries.

[1] - https://www.jstree.com/

Regards.

-- 



*Lahiru J Ekanayake**Software Engineer*
Mobile : +94 (0) 77 8812629 / +94(0) 778509547
Email : lahi...@wso2.com
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [GSoC 16'] Proposal 20: [IS] SCIM 2.0 Support to WSO2 Identity Server

2016-03-23 Thread Manujith Pallewatte
Hi all,

Thank you very much for the comments, I revised and changed as much as
possible.
About the confusion by Entitlement Engine I wanted to refer to the
EntitlementEngine.java class in src since it has the main entry points to
the service
But it is really a confusing detail and i changed it to Identity Server
instead
Also i added a few illustrations to make some points clear
Please give me feedback on the revised proposal

https://docs.google.com/document/d/1dz8FcqUHargRM1q0UG0Ln4FHo_zHH-ENz6oc1hjeLYY/edit?usp=sharing

Thankx alot again!

On Wed, Mar 23, 2016 at 3:41 PM, Pushpalanka Jayawardhana 
wrote:

> Hi Manujith,
>
> Added the comments and suggestions. Please have a look and correct.
> Please also note that the entitlement engine we have in PDP component is
> the Balana engine and there is no seperate entitlelment engine within IS.
> IS provides XACML support on top of Balana engine, with other required
> functionality for PEP, PAP and PIP.
>
> Thanks,
> Pushpalanka
>
> On Wed, Mar 23, 2016 at 3:13 PM, Manujith Pallewatte <
> manujith...@gmail.com> wrote:
>
>> Hi all,
>>
>> Thankx alot for the input and I added them in the proposal so far
>> I have attached the proposal with the mail
>> Please review it and let me know points of improvement and any additional
>> details I'm missing in it
>>
>> Thank You
>>
>> On Wed, Mar 23, 2016 at 12:05 PM, Pushpalanka Jayawardhana <
>> la...@wso2.com> wrote:
>>
>>>
>>>
>>> Pushpalanka.
>>> --
>>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>>> Mobile: +94779716248
>>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
>>> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>>>
>>>
>>> On Wed, Mar 23, 2016 at 11:58 AM, Manujith Pallewatte <
>>> manujith...@gmail.com> wrote:
>>>
 Hi all,

 I will certainly start off with the client, would be a good starting
 point to observer the responses I think.
 Thank to Omindu I was able to use SoapUI to simulate a request for now,
 I'm trying to develop on that as well. Should those things go in the
 proposal as well?
 I have a drafted a basic proposal which I will send asap for your
 feedback, then once I complete task 1, I can document it too

>>> This is good progress. It is better to mention what you have tried upto
>>> now regarding the project in brief, in the proposal.
>>>

 Thank You

 On Wed, Mar 23, 2016 at 11:35 AM, Pushpalanka Jayawardhana <
 la...@wso2.com> wrote:

>
>
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
>
> On Wed, Mar 23, 2016 at 2:05 AM, Manujith Pallewatte <
> manujith...@gmail.com> wrote:
>
>> Hi Pushpalanka,
>>
>> Sorry for spamming the inbox like this, but since I'm already behind
>> the schedule I have to get things resolved as fast as possible. Please
>> don't mind it.
>> One more thing as I finally got to the conclusion, the objective is
>> to implement RESTful service to the PDP of IS so that any PEP can access
>> them
>> in a RESTful manner? In other words the REST service should be
>> implemented to facilitate the information exchange between the PEP and 
>> PDP
>> Is that correct? please correct me if i'm wrong
>>
>
>
>
>> Thanks alot
>>
>> On Wed, Mar 23, 2016 at 1:39 AM, Manujith Pallewatte <
>> manujith...@gmail.com> wrote:
>>
>>> Hi Pushpalanka,
>>>
>>> I tried examining the PDP and PAP of IS to get an idea of how things
>>> work and i followed the blog article [
>>> http://pushpalankajaya.blogspot.com/2013/06/working-with-xacml-30-policies-for-fine.html].
>>> I tested out few policies and all seems fine. Now I want to test the
>>> policies using a PEP
>>> Is there any way to simulate a authorization request? (may be using
>>> curl as we use to test RESP APIs)
>>> If there's any such way, where should I point the requests at?
>>> ex: I added a policy for the resource url
>>> http://localhost/services/secret
>>> and the IS server is hosted at http://localhost:9443/
>>> now i want to do a authorized requests to the 1st mentioned service
>>> through the IS server, i sense i'm missing a piece here. Please help me 
>>> to
>>> clarify this point
>>>
>>
> Hi Manujith,
>
> There are no cURL commands available as we do not have REST
> implementation as of now.
> In order to get familiar with the code base and development
> environment and to try out the scenario you suggested follow the below
> steps.
>
> 1 - Try to write a Java client for EntitlementService (SOAP service)
> [1]
>
> Please find the 

[Dev] Fwd: Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-23 Thread Sameera Wickramasekara
Hi,

I have successfully built the WSO2 EMM from source. i have understood that
the deliverables are time and location based policy enforcement. how should
i start to implement a custom policy/ change a policy  in the EMM ? can you
point me to a tutorial of some sort.
And i hope i will be able to complete my proposal before the deadline with
your guidence

Thank you
Sameera Wickramasekara


On Mon, Mar 14, 2016 at 2:10 PM, Kasun Dananjaya Delgolla 
wrote:

> Hi Sameera,
>
> Thank you for your interest in this project.
>
>
> In order to get a better picture of the project make sure to build WSO2
> EMM[1] including CDMF framework[2] using the git repositories listed.
>
> Enroll a device and a publish a sample policy against the device and
> study the current behavior of the policy.
> You are expected to change the behavior a mentioned below.
>
> Given policy must be activated automatically when the device enters a
> predefined area.
> Given policy must be deactivated when a device leaves a predefined area.
> Given policy must be activated automatically in the given time frame.
> Stats of the current policy, whether its active or inactive need to be
> visible in the dashboard.
> Policy compliance monitoring to the given device must be activated when a
> policy is activated.
>
> Project deliverable "Extension point for current EMM policy module with
> location and time based policy publishing capability" includes followings,
>
>- Location based policy enforcement component.
>- A component which enables the location base policy monitoring and
>   enforcement including statics.This need to be a extension to thee
>   component which enabled device policies currently
>- Time based location component.
>- A component which enables the time base policy monitoring and
>   enforcement including statics.This need to be a extension to thee
>   component which enabled device policies currently
>- Location and time based policy configuration UI.
>- This is to enable users to configure and maintain the locations and
>   time frames.The UI must have the ability to monitor the policies which
>   is active in the device and compliance status.Above features must
>   follow the current pattern used for policy monitoring and Policy 
> Management
>   in WSO2 EMM.
>
>
> While working with WSO2 EMM, if you found any bugs or improvements feel
> free to let us know by using the oxygen tank[3].
>
> [1] https://github.com/wso2/carbon-device-mgt
> [2] https://github.com/wso2/product-mdm
> [3] https://wso2.org/jira/secure/Dashboard.jspa
>
> Thank you
>
> On Mon, Mar 14, 2016 at 1:36 PM, Sameera Wickramasekara <
> itssamw...@gmail.com> wrote:
>
>>
>>
>> Hi ,
>> Im Sameera Wickramasekara, a 3rd year Undergraduate from University of
>> Moratuwa Faculty of information Technology. Im interested in the Location
>> and Time-based Device policy Endorsement Project. I have good experience in
>> Java and Android development. and Im confident i would be able to complete
>> this project with your guidance.please let me know how to proceed from here.
>>
>> thank you
>>
>>
>
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in representing an array which contains non identical elements

2016-03-23 Thread Susinda Perera
Online xsd generators[1] generate xsd as one object having all four
elements as child elements of urn:sObjects, without considering xsi:type.
https://devutilsonline.com/xsd-xml/generate-xsd-from-xml

On Wed, Mar 23, 2016 at 9:47 PM, Susinda Perera  wrote:

>
>
> On Wed, Mar 23, 2016 at 7:51 PM, Awanthika Senarath 
> wrote:
>
>> Even though these arrays are identical, AFAIS they may occur independent,
>>
>> as in we may have 5 of the first array with the three items and 3 of the
>> other array which is completely unrelated to the first array,
>>
>>
>> In that case is it okey to represent them as a single array?
>>
>> according to [1] it seems like the xsi:type attribute is not just any
>> attribute but something similar to a key word in XML. in that case IMO it
>> is not correct to represent these two arrays as a merged array instance.
>>
> The xsi:type attribute is used to identify derived complex types[1]. In
> this example we have 2  objects which have different
> xsi:types. (i.e one does not have a xsi:type but other one
> having xsi:type="urn1:Contact") Therefore these two are different
> objects even though it has same name.
> However by looking at the given xml we can not say that it's xsd would
> have  array or single element because in this example we
> have only one object from each. Shall we add and object of 
> and check?
>
> [1] -
> http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.wst.xmleditor.doc.user%2Ftopics%2Ftxsityp.html
>
>
>>
>> We need to consider xsi:type attribute as a keyword. I dont know how
>> viable this is though.
>>
>>
>>
>>
>>
>> [1]
>> http://stackoverflow.com/questions/21216778/how-to-define-xsitype-as-an-attribute-in-xml-schema
>>
>> Regards
>> Awanthika
>>
>>
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Wed, Mar 23, 2016 at 7:17 PM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> If we consider the below xml, "urn:sObjects" is an array which contains
>>> elements which are not identical.
>>>
>>> First array contains AccountId, FirstName, LastName and the other array
>>> contains Name.
>>>
>>>  >> xmlns:urn1="urn:sobject.enterprise.soap.sforce.com"  xmlns:xsi="
>>> http://www.w3.org/2001/XMLSchema-instance";>
>>>  
>>>
>>>001D00HRzKD
>>>Jane
>>>Doe
>>> 
>>> 
>>>Acme Rockets, Inc.
>>> 
>>>  
>>>
>>> The generated json schema would be as follows
>>>
>>> {
>>>"$Schema":"http://json-schema.org/draft-04/schema#";,
>>>"title":"urn:create",
>>>"id":"http://jsonschema.net";,
>>>"type":"object",
>>>"properties":{
>>>   "urn:create":{
>>>  "id":"http://jsonschema.net/urn:create";,
>>>  "type":"object",
>>>  "properties":{
>>> "urn:sObjects":{
>>>"id":"http://jsonschema.net/urn:create/urn:sObjects";,
>>>"type":"array",
>>>"items":[
>>>   {
>>>  "id":"
>>> http://jsonschema.net/urn:create/urn:sObjects/0";,
>>>  "type":"object",
>>>  "properties":{
>>> "AccountId":{
>>>"id":"
>>> http://jsonschema.net/urn:create/urn:sObjects/0/AccountId";,
>>>"type":"string"
>>> },
>>> "@type":{
>>>"id":"
>>> http://jsonschema.net/urn:create/urn:sObjects/0/@type";,
>>>"type":"string"
>>> },
>>> "FirstName":{
>>>"id":"
>>> http://jsonschema.net/urn:create/urn:sObjects/0/FirstName";,
>>>"type":"string"
>>> },
>>> "LastName":{
>>>"id":"
>>> http://jsonschema.net/urn:create/urn:sObjects/0/LastName";,
>>>"type":"string"
>>> }
>>>  }
>>>   },
>>>   {
>>>  "id":"
>>> http://jsonschema.net/urn:create/urn:sObjects/0";,
>>>  "type":"object",
>>>  "properties":{
>>> "@type":{
>>>"id":"
>>> http://jsonschema.net/urn:create/urn:sObjects/0/@type";,
>>>"type":"string"
>>> },
>>> "Name":{
>>>"id":"
>>> http://jsonschema.net/urn:create/urn:sObjects/0/Name";,
>>>"type":"string"
>>> }
>>>  }
>>>   }
>>>]
>>> }
>>>  }
>>>   }
>>>},
>>>"namespaces":[
>>>   {
>>>  "prefix":"urn",
>>>  "url":"urn:enterprise.soap.sforce.com"
>>>   },
>>>   {
>>>  

Re: [Dev] Issue in representing an array which contains non identical elements

2016-03-23 Thread Susinda Perera
On Wed, Mar 23, 2016 at 7:51 PM, Awanthika Senarath 
wrote:

> Even though these arrays are identical, AFAIS they may occur independent,
>
> as in we may have 5 of the first array with the three items and 3 of the
> other array which is completely unrelated to the first array,
>
>
> In that case is it okey to represent them as a single array?
>
> according to [1] it seems like the xsi:type attribute is not just any
> attribute but something similar to a key word in XML. in that case IMO it
> is not correct to represent these two arrays as a merged array instance.
>
The xsi:type attribute is used to identify derived complex types[1]. In
this example we have 2  objects which have different
xsi:types. (i.e one does not have a xsi:type but other one
having xsi:type="urn1:Contact") Therefore these two are different
objects even though it has same name.
However by looking at the given xml we can not say that it's xsd would have
 array or single element because in this example we have only
one object from each. Shall we add and object of  and check?

[1] -
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.wst.xmleditor.doc.user%2Ftopics%2Ftxsityp.html


>
> We need to consider xsi:type attribute as a keyword. I dont know how
> viable this is though.
>
>
>
>
>
> [1]
> http://stackoverflow.com/questions/21216778/how-to-define-xsitype-as-an-attribute-in-xml-schema
>
> Regards
> Awanthika
>
>
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Wed, Mar 23, 2016 at 7:17 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> If we consider the below xml, "urn:sObjects" is an array which contains
>> elements which are not identical.
>>
>> First array contains AccountId, FirstName, LastName and the other array
>> contains Name.
>>
>>  > xmlns:urn1="urn:sobject.enterprise.soap.sforce.com"  xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance";>
>>  
>>
>>001D00HRzKD
>>Jane
>>Doe
>> 
>> 
>>Acme Rockets, Inc.
>> 
>>  
>>
>> The generated json schema would be as follows
>>
>> {
>>"$Schema":"http://json-schema.org/draft-04/schema#";,
>>"title":"urn:create",
>>"id":"http://jsonschema.net";,
>>"type":"object",
>>"properties":{
>>   "urn:create":{
>>  "id":"http://jsonschema.net/urn:create";,
>>  "type":"object",
>>  "properties":{
>> "urn:sObjects":{
>>"id":"http://jsonschema.net/urn:create/urn:sObjects";,
>>"type":"array",
>>"items":[
>>   {
>>  "id":"
>> http://jsonschema.net/urn:create/urn:sObjects/0";,
>>  "type":"object",
>>  "properties":{
>> "AccountId":{
>>"id":"
>> http://jsonschema.net/urn:create/urn:sObjects/0/AccountId";,
>>"type":"string"
>> },
>> "@type":{
>>"id":"
>> http://jsonschema.net/urn:create/urn:sObjects/0/@type";,
>>"type":"string"
>> },
>> "FirstName":{
>>"id":"
>> http://jsonschema.net/urn:create/urn:sObjects/0/FirstName";,
>>"type":"string"
>> },
>> "LastName":{
>>"id":"
>> http://jsonschema.net/urn:create/urn:sObjects/0/LastName";,
>>"type":"string"
>> }
>>  }
>>   },
>>   {
>>  "id":"
>> http://jsonschema.net/urn:create/urn:sObjects/0";,
>>  "type":"object",
>>  "properties":{
>> "@type":{
>>"id":"
>> http://jsonschema.net/urn:create/urn:sObjects/0/@type";,
>>"type":"string"
>> },
>> "Name":{
>>"id":"
>> http://jsonschema.net/urn:create/urn:sObjects/0/Name";,
>>"type":"string"
>> }
>>  }
>>   }
>>]
>> }
>>  }
>>   }
>>},
>>"namespaces":[
>>   {
>>  "prefix":"urn",
>>  "url":"urn:enterprise.soap.sforce.com"
>>   },
>>   {
>>  "prefix":"xsi",
>>  "url":"http://www.w3.org/2001/XMLSchema-instance";
>>   },
>>   {
>>  "prefix":"urn1",
>>  "url":"urn:sobject.enterprise.soap.sforce.com"
>>   }
>>]
>> }
>>
>>
>> I am facing an issue in representing this in the tree view. Are we going
>> to add all 4 elements ( AccountId, FirstName, LastName and Name) under the
>> array object?
>>
>> Really appreciate

Re: [Dev] [Architecture] [REST APIs][Analytics] GET request with a payload

2016-03-23 Thread Lahiru Sandaruwan
Yes, if it is possible to put the columns names in the url as Ayoma
mentioned, we must use that(First i thought it is a complex payload you
want to send).

Unless there are limitations, like column list doesn't exceed the url
length limits, we should use GET.

Thanks.

On Wed, Mar 23, 2016 at 3:54 PM, Ayoma Wijethunga  wrote:

> Hi,
>
> It is true that using GET request with a payload is not the best option.
> Even though it is not strictly prohibited in specs, it can be confusing
> [1]. REST architecture is very open about how we use HTTP methods, but
> thinking in terms of REST architecture, I do not think using POST is also
> the correct approach here [2] (maybe it is just the personal preference).
>
> Let me summaries few examples on how others have addressed the same
> requirement with GET requests.
>
> Facebook Graph API is using "field" query parameter for this [3]. For
> example :
>
> Following Graph API call 
> *https://graph.facebook.com/bgolub?fields=id,name,picture
>> * will only
>> return the id, name, and picture in Ben's profile
>>
>
> SharePoint syntax is not very eye candy [4][5], but it goes like :
>
>
>> http://server/siteurl/_vti_bin/listdata.svc/DocumentsOne?$select=MyDocumentType,Title,Id&$expand=MyDocumentType
>>
>
> YouTube API has the same in below form [6] :
>
> Example 1: Retrieve number of items in feed, index of
>> first item in result set, and all entries in the feed:
>> fields=openSearch:totalResults,openSearch:startIndex,entry
>>
>
> LinkedIn has the same [7]
>
>
>> https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,positions:(id,title,summary,start-date,end-date,is-current,company:(id,name,type,size,industry,ticker))
>>
>
> IMO Facebook Graph API has the cleanest mechanism.
>
> I believe that if we use a similar format we will not have to introduce
> new resource paths. Instead we'll be able to provide all the columns,
> unless user specifically request limited set of fields with a query
> parameter. WDYT?
>
> [1]
> http://stackoverflow.com/questions/5216567/is-this-statement-correct-http-get-method-always-has-no-message-body
> [2] https://spring.io/understanding/REST
> [3]
> https://developers.facebook.com/docs/graph-api/using-graph-api#fieldexpansion
> [4]
> http://sharepoint.stackexchange.com/questions/118633/how-to-select-and-filter-list-items-lookup-column-with-sharepoint-2013-rest-feat
> [5]
> http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
> [6]
> https://developers.google.com/youtube/2.0/developers_guide_protocol_partial#Fields_Formatting_Rules
> [7] https://developer.linkedin.com/docs/fields?u=0
>
> Best Regards,
> Ayoma.
>
> On Wed, Mar 23, 2016 at 8:13 PM, Lahiru Sandaruwan 
> wrote:
>
>> Hi,
>>
>> I think using a POST with a body, for retrieving information is fine
>> considering the requirement. GET with body is not recommended.
>>
>> Thanks.
>>
>> On Wed, Mar 23, 2016 at 2:31 PM, Gimantha Bandara 
>> wrote:
>>
>>> Hi all,
>>>
>>>
>>> We have a REST API in DAS to retrieve records in a specific table. It
>>> supports GET method with the following url format.
>>>
>>> /analytics/tables/{tableName}/{from}/{to}/{start}/{count}
>>>
>>> Sending a GET request to above url will give the records between given
>>> "from", "to" time range starting from index "start" with  "count"  page
>>> size.
>>>
>>> Now we need to change the API, so that the user can define the record
>>> columns/fields he wants. Current API will return the records with all the
>>> values/columns. To do that, we can allow the user to define the columns he
>>> needs, in the payload. But it seems that having a payload with a GET is not
>>> the convention/the best practice.
>>>
>>> POST can be used to send the column names as a payload, but here we are
>>> not making any updates to {tableName} resource. We will be just retrieving
>>> records using a POST. So it also seems not the convention/the best practice.
>>>
>>> The only solution I can think of is, having a different resource path to
>>> get the records with only specified fields/columns. Are there any other
>>> solutions?
>>>
>>> Thanks,
>>> Gimantha
>>>
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> phone: +94773325954
>> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ayoma Wijethunga
> Software Engineer
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile : +94 (

Re: [Dev] [Architecture] [REST APIs][Analytics] GET request with a payload

2016-03-23 Thread Ayoma Wijethunga
Hi,

It is true that using GET request with a payload is not the best option.
Even though it is not strictly prohibited in specs, it can be confusing
[1]. REST architecture is very open about how we use HTTP methods, but
thinking in terms of REST architecture, I do not think using POST is also
the correct approach here [2] (maybe it is just the personal preference).

Let me summaries few examples on how others have addressed the same
requirement with GET requests.

Facebook Graph API is using "field" query parameter for this [3]. For
example :

Following Graph API call
*https://graph.facebook.com/bgolub?fields=id,name,picture
> * will only
> return the id, name, and picture in Ben's profile
>

SharePoint syntax is not very eye candy [4][5], but it goes like :

http://server/siteurl/_vti_bin/listdata.svc/DocumentsOne?$select=MyDocumentType,Title,Id&$expand=MyDocumentType
>

YouTube API has the same in below form [6] :

Example 1: Retrieve number of items in feed, index of
> first item in result set, and all entries in the feed:
> fields=openSearch:totalResults,openSearch:startIndex,entry
>

LinkedIn has the same [7]

https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,positions:(id,title,summary,start-date,end-date,is-current,company:(id,name,type,size,industry,ticker))
>

IMO Facebook Graph API has the cleanest mechanism.

I believe that if we use a similar format we will not have to introduce new
resource paths. Instead we'll be able to provide all the columns, unless
user specifically request limited set of fields with a query parameter.
WDYT?

[1]
http://stackoverflow.com/questions/5216567/is-this-statement-correct-http-get-method-always-has-no-message-body
[2] https://spring.io/understanding/REST
[3]
https://developers.facebook.com/docs/graph-api/using-graph-api#fieldexpansion
[4]
http://sharepoint.stackexchange.com/questions/118633/how-to-select-and-filter-list-items-lookup-column-with-sharepoint-2013-rest-feat
[5]
http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
[6]
https://developers.google.com/youtube/2.0/developers_guide_protocol_partial#Fields_Formatting_Rules
[7] https://developer.linkedin.com/docs/fields?u=0

Best Regards,
Ayoma.

On Wed, Mar 23, 2016 at 8:13 PM, Lahiru Sandaruwan  wrote:

> Hi,
>
> I think using a POST with a body, for retrieving information is fine
> considering the requirement. GET with body is not recommended.
>
> Thanks.
>
> On Wed, Mar 23, 2016 at 2:31 PM, Gimantha Bandara 
> wrote:
>
>> Hi all,
>>
>>
>> We have a REST API in DAS to retrieve records in a specific table. It
>> supports GET method with the following url format.
>>
>> /analytics/tables/{tableName}/{from}/{to}/{start}/{count}
>>
>> Sending a GET request to above url will give the records between given
>> "from", "to" time range starting from index "start" with  "count"  page
>> size.
>>
>> Now we need to change the API, so that the user can define the record
>> columns/fields he wants. Current API will return the records with all the
>> values/columns. To do that, we can allow the user to define the columns he
>> needs, in the payload. But it seems that having a payload with a GET is not
>> the convention/the best practice.
>>
>> POST can be used to send the column names as a payload, but here we are
>> not making any updates to {tableName} resource. We will be just retrieving
>> records using a POST. So it also seems not the convention/the best practice.
>>
>> The only solution I can think of is, having a different resource path to
>> get the records with only specified fields/columns. Are there any other
>> solutions?
>>
>> Thanks,
>> Gimantha
>>
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> phone: +94773325954
> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ayoma Wijethunga
Software Engineer
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

Mobile : +94 (0) 719428123 <+94+(0)+719428123>
Blog : http://www.ayomaonline.com
LinkedIn: https://www.linkedin.com/in/ayoma
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-23 Thread Asantha Thilina
Hi Tharindu,

I modified my project proposal[1] in google doc, as you suggested i added
function list which i am going to exposed to apis after modified the
content  i shared the doc to summer of code.
waiting for your feedback
[1]
https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing

Thanks,
Asantha

On Tue, Mar 22, 2016 at 8:16 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> thanks a lot for the feedbacks, sure i will modify the content of the
> proposal as suggested  and submit to google within today
>
> Thanks,
> Asantha
>
>
> On Wed, Mar 23, 2016 at 7:45 AM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Asantha,
>>
>> I've added the latest proposal you've sent to google docs in [1]. As
>> Chamila suggested, can you list down the methods that you expose in the API
>> (public methods in the userstore manager) in the proposal so that it is
>> easy to understand the functionality of the userstore manager. Also it is
>> better to submit the proposal to google now and update later if any
>> modification is needed.
>>
>> [1]
>> https://docs.google.com/document/d/1xv7iB3VAUElvf1Cl3So0TSLCSjuZOS-IyT-Fy_1zl_c/edit?usp=sharing
>>
>> Thanks,
>> TharinduE
>>
>> On Mon, Mar 21, 2016 at 9:58 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Chamila,
>>>
>>> Thanks a lot for the feedback, sure i will update my proposal as you
>>> suggested
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Mon, Mar 21, 2016 at 9:18 AM, Chamila Wijayarathna 
>>> wrote:
>>>
 Hi Asantha,

 Looks good, please talk with Tharindu also before submitting the
 proposal. Even you submit your proposal, you can improve it until 25th.

 So if time permits, I would like to suggest you to add some details
 about what are the APIs and functions you are going to expose after
 developing this new user store manager, if you have already decided on
 them. Since you may have went through the codes of existing user store
 managers, you may already have an idea about what are the functions you
 need to exposed to outside. So if can add at least few functions you are
 going to expose with some details, it would make your proposal more
 attractive. Also I would like to suggest you to add link of github repo
 where you have started development. Also if you have written any blogs
 related to the project, mongoDB, etc. please mention them also in your
 proposal.

 Also I see some formatting issues and some dates has got repeated in
 your timeline, hope you will correct the when submitting proposal at GSoC
 site.

 Cheers!

 On Mon, Mar 21, 2016 at 9:18 PM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Chamila,
>
> Thanks a lot for your valuable feedback as you suggested i corrected
> my project proposal and here i attached my finalize project proposal
>
> expecting your feedback
>
> Thanks,
> Asantha
>
> On Mon, Mar 21, 2016 at 5:44 AM, Chamila Wijayarathna <
> cham...@wso2.com> wrote:
>
>> Hi Asantha,
>>
>> Thanks for sending your proposal. It seems to be in good shape, but I
>> would like to suggest few more improvements.
>>
>>1.  You have mentioned you are implementing Custom User Store
>>Manager by extending JDBCUserStoreManager. But actually you have to 
>> extend
>>AbstractUserStoreManager. I think you have done this correctly in the 
>> code
>>you sent previously. Please correct this.
>>2. I think by custom user store manager, you have meant mongoDB
>>user store manager you are planning to implement, in most places. Its
>>better to mention specifically as MongoDBUserStoreManager than saying
>>custom user store manager.
>>3. You have mentioned about "Implement a proper encryption
>>mechanism to overcome the security hauls in custom User store 
>> Manager.".
>>Can you be more specific on what are the security holes you are 
>> talking
>>about. AFAIK encryption mechanisms we are currently using are quite 
>> ok and
>>if there are no any strong reasons, I suggest you to follow the 
>> existing
>>mechanisms.
>>4. It would be great if you can allocate 1-2 weeks for doing a
>>small research on how other NoSQL databases such as CouchDB, Neo4j 
>> can be
>>used to implement an user store in IS. By looking at your time line, I
>>think it would be possible to allocate some time for this in the 2nd 
>> half
>>of the programme. We can do this if time permits, but its better to 
>> mention
>>it in your proposal as optional (I believe it would make the project 
>> more
>>complete).
>>
>> Looking forward to see your proposal.
>>
>> Good Luck!
>>
>> On Mon, Mar 21, 2016 at 5:15 PM, Asantha Thilina <
>> asanthathi

Re: [Dev] [Architecture] [REST APIs][Analytics] GET request with a payload

2016-03-23 Thread Lahiru Sandaruwan
Hi,

I think using a POST with a body, for retrieving information is fine
considering the requirement. GET with body is not recommended.

Thanks.

On Wed, Mar 23, 2016 at 2:31 PM, Gimantha Bandara  wrote:

> Hi all,
>
>
> We have a REST API in DAS to retrieve records in a specific table. It
> supports GET method with the following url format.
>
> /analytics/tables/{tableName}/{from}/{to}/{start}/{count}
>
> Sending a GET request to above url will give the records between given
> "from", "to" time range starting from index "start" with  "count"  page
> size.
>
> Now we need to change the API, so that the user can define the record
> columns/fields he wants. Current API will return the records with all the
> values/columns. To do that, we can allow the user to define the columns he
> needs, in the payload. But it seems that having a payload with a GET is not
> the convention/the best practice.
>
> POST can be used to send the column names as a payload, but here we are
> not making any updates to {tableName} resource. We will be just retrieving
> records using a POST. So it also seems not the convention/the best practice.
>
> The only solution I can think of is, having a different resource path to
> get the records with only specified fields/columns. Are there any other
> solutions?
>
> Thanks,
> Gimantha
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

phone: +94773325954
email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [REST APIs][Analytics] GET request with a payload

2016-03-23 Thread Gimantha Bandara
Hi all,


We have a REST API in DAS to retrieve records in a specific table. It
supports GET method with the following url format.

/analytics/tables/{tableName}/{from}/{to}/{start}/{count}

Sending a GET request to above url will give the records between given
"from", "to" time range starting from index "start" with  "count"  page
size.

Now we need to change the API, so that the user can define the record
columns/fields he wants. Current API will return the records with all the
values/columns. To do that, we can allow the user to define the columns he
needs, in the payload. But it seems that having a payload with a GET is not
the convention/the best practice.

POST can be used to send the column names as a payload, but here we are not
making any updates to {tableName} resource. We will be just retrieving
records using a POST. So it also seems not the convention/the best practice.

The only solution I can think of is, having a different resource path to
get the records with only specified fields/columns. Are there any other
solutions?

Thanks,
Gimantha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in representing an array which contains non identical elements

2016-03-23 Thread Awanthika Senarath
Even though these arrays are identical, AFAIS they may occur independent,

as in we may have 5 of the first array with the three items and 3 of the
other array which is completely unrelated to the first array,


In that case is it okey to represent them as a single array?

according to [1] it seems like the xsi:type attribute is not just any
attribute but something similar to a key word in XML. in that case IMO it
is not correct to represent these two arrays as a merged array instance.

We need to consider xsi:type attribute as a keyword. I dont know how viable
this is though.





[1]
http://stackoverflow.com/questions/21216778/how-to-define-xsitype-as-an-attribute-in-xml-schema

Regards
Awanthika



Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Wed, Mar 23, 2016 at 7:17 PM, Sohani Weerasinghe  wrote:

> Hi All,
>
> If we consider the below xml, "urn:sObjects" is an array which contains
> elements which are not identical.
>
> First array contains AccountId, FirstName, LastName and the other array
> contains Name.
>
>   xmlns:urn1="urn:sobject.enterprise.soap.sforce.com"  xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>
>  
>
>001D00HRzKD
>Jane
>Doe
> 
> 
>Acme Rockets, Inc.
> 
>  
>
> The generated json schema would be as follows
>
> {
>"$Schema":"http://json-schema.org/draft-04/schema#";,
>"title":"urn:create",
>"id":"http://jsonschema.net";,
>"type":"object",
>"properties":{
>   "urn:create":{
>  "id":"http://jsonschema.net/urn:create";,
>  "type":"object",
>  "properties":{
> "urn:sObjects":{
>"id":"http://jsonschema.net/urn:create/urn:sObjects";,
>"type":"array",
>"items":[
>   {
>  "id":"http://jsonschema.net/urn:create/urn:sObjects/0
> ",
>  "type":"object",
>  "properties":{
> "AccountId":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/AccountId";,
>"type":"string"
> },
> "@type":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/@type";,
>"type":"string"
> },
> "FirstName":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/FirstName";,
>"type":"string"
> },
> "LastName":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/LastName";,
>"type":"string"
> }
>  }
>   },
>   {
>  "id":"http://jsonschema.net/urn:create/urn:sObjects/0
> ",
>  "type":"object",
>  "properties":{
> "@type":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/@type";,
>"type":"string"
> },
> "Name":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/Name";,
>"type":"string"
> }
>  }
>   }
>]
> }
>  }
>   }
>},
>"namespaces":[
>   {
>  "prefix":"urn",
>  "url":"urn:enterprise.soap.sforce.com"
>   },
>   {
>  "prefix":"xsi",
>  "url":"http://www.w3.org/2001/XMLSchema-instance";
>   },
>   {
>  "prefix":"urn1",
>  "url":"urn:sobject.enterprise.soap.sforce.com"
>   }
>]
> }
>
>
> I am facing an issue in representing this in the tree view. Are we going
> to add all 4 elements ( AccountId, FirstName, LastName and Name) under the
> array object?
>
> Really appreciate your input on this.
>
> Thanks,
> Sohani
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in representing an array which contains non identical elements

2016-03-23 Thread Chanaka Fernando
Hi Sohani,

I think the representation which is in the json is correct. If you look at
this json message using a tool like [1], You can view that you have 2
elements in the array (of type sObjects). Within those elements, you can
have different elements. Adding all 4 elements under the same array is not
correct AFAIU.

[1] https://jsonformatter.curiousconcept.com/

On Wed, Mar 23, 2016 at 7:17 PM, Sohani Weerasinghe  wrote:

> Hi All,
>
> If we consider the below xml, "urn:sObjects" is an array which contains
> elements which are not identical.
>
> First array contains AccountId, FirstName, LastName and the other array
> contains Name.
>
>   xmlns:urn1="urn:sobject.enterprise.soap.sforce.com"  xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>
>  
>
>001D00HRzKD
>Jane
>Doe
> 
> 
>Acme Rockets, Inc.
> 
>  
>
> The generated json schema would be as follows
>
> {
>"$Schema":"http://json-schema.org/draft-04/schema#";,
>"title":"urn:create",
>"id":"http://jsonschema.net";,
>"type":"object",
>"properties":{
>   "urn:create":{
>  "id":"http://jsonschema.net/urn:create";,
>  "type":"object",
>  "properties":{
> "urn:sObjects":{
>"id":"http://jsonschema.net/urn:create/urn:sObjects";,
>"type":"array",
>"items":[
>   {
>  "id":"http://jsonschema.net/urn:create/urn:sObjects/0
> ",
>  "type":"object",
>  "properties":{
> "AccountId":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/AccountId";,
>"type":"string"
> },
> "@type":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/@type";,
>"type":"string"
> },
> "FirstName":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/FirstName";,
>"type":"string"
> },
> "LastName":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/LastName";,
>"type":"string"
> }
>  }
>   },
>   {
>  "id":"http://jsonschema.net/urn:create/urn:sObjects/0
> ",
>  "type":"object",
>  "properties":{
> "@type":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/@type";,
>"type":"string"
> },
> "Name":{
>"id":"
> http://jsonschema.net/urn:create/urn:sObjects/0/Name";,
>"type":"string"
> }
>  }
>   }
>]
> }
>  }
>   }
>},
>"namespaces":[
>   {
>  "prefix":"urn",
>  "url":"urn:enterprise.soap.sforce.com"
>   },
>   {
>  "prefix":"xsi",
>  "url":"http://www.w3.org/2001/XMLSchema-instance";
>   },
>   {
>  "prefix":"urn1",
>  "url":"urn:sobject.enterprise.soap.sforce.com"
>   }
>]
> }
>
>
> I am facing an issue in representing this in the tree view. Are we going
> to add all 4 elements ( AccountId, FirstName, LastName and Name) under the
> array object?
>
> Really appreciate your input on this.
>
> Thanks,
> Sohani
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>



-- 
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-03-23 Thread Supun Sethunga
Hi Misgana,

I went through your proposal. Overall it looks good. Here are a few
comments I would like to point out:

   - Its better to have some sort of an architecture diagram, explaining
   your solution in a higher level.
   - In the timeline, better to break down the "Week 1­3 (May 23 ­ June 20,
   2016)" into three sub-levels, and allocate timeslots for each of the three
   methods (Stacking, Boosting and Bagging) separately. That would make it
   easy for you to work on those methods separately, as well as to track the
   progress.
   - In the timeline, can you double check the "week" numbers..? for eg; in
   [*Week 1­-3 (May 23 ­ June 20, 2016*], I guess it should be "*Week 1-4*"
   (there are four weeks in the mentioned duration). Similarly, check the
   others too.

Please share us the draft proposal once you fix those.

Thanks,
Supun

On Wed, Mar 23, 2016 at 7:17 PM, Misgana Negassi <
negas...@tf.uni-freiburg.de> wrote:

> Hi Supun,
>
> I am attaching my proposal draft. I am very grateful for your comments.
>
> Thanks,
> Misgana
>
>
> On 23.03.2016 04:54, Supun Sethunga wrote:
>
> Hi Misgana,
>
> As we have mentioned in the project proposal as well, the main objective
> is to integrate ensemble support for the existing flow of the WSO2 Machine
> Learner. We are focusing on the three methods: Bagging, Boosting and
> Stacking. (On technique per each of these methods)
>
> If you haven't tried out already, you can get to know the Machine
> Learner product by downloading it and running it (Please use link [1] to
> download). Official documentation [2] and blog [3] will help you on how to
> use the product. You can also go through the source code of WSO2 ML ([4]
> and [5]), and get familiarized with the current implementations.
>
> Meantime, as Nirmal mentioned, can you please send us the draft of the
> proposal so that we can review it and give you a feedback?
>
> [1]  
> http://wso2.com/products/machine-learner/
> [2]  
> https://docs.wso2.com/display/ML100/Introducing+Machine+Learner
> [3]
> 
> http://supunsetunga.blogspot.com/2015/09/building-your-first-predictive-model.html
> [4]  https://github.com/wso2/carbon-ml
> [5]  
> https://github.com/wso2/product-ml
>
> Thanks,
> Supun
>
> On Wed, Mar 23, 2016 at 7:20 AM, Nirmal Fernando  wrote:
>
>> Thanks, Misgana for your interest in a WSO2 ML GSoC project. Whilst I let
>> Supun give you some more information on the project, I encourage you to
>> create a draft proposal and send us for review.
>>
>> On Wed, Mar 23, 2016 at 2:58 AM, Misgana Negassi <
>> negas...@tf.uni-freiburg.de> wrote:
>>
>>> Hallo!
>>>
>>> I am Misgana, hailing from Freiburg, Germany and I am interested in
>>> working with you on the Ensemble methods . I have already implemented
>>> Stacking in python(code available in github/zemoel) and compared it to
>>> other ensemble methods such as Ensemble Selection on AUC performance
>>> measures. The comparison also included using above mentioned methods as
>>> part of an automated machine learning platform(Autosklearn).
>>>
>>> I am currently working on my proposal and would be grateful for your
>>> reply.
>>>
>>> Misgana
>>>
>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>
>
>


-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issue in representing an array which contains non identical elements

2016-03-23 Thread Sohani Weerasinghe
Hi All,

If we consider the below xml, "urn:sObjects" is an array which contains
elements which are not identical.

First array contains AccountId, FirstName, LastName and the other array
contains Name.

 http://www.w3.org/2001/XMLSchema-instance";>
 
   
   001D00HRzKD
   Jane
   Doe


   Acme Rockets, Inc.

 

The generated json schema would be as follows

{
   "$Schema":"http://json-schema.org/draft-04/schema#";,
   "title":"urn:create",
   "id":"http://jsonschema.net";,
   "type":"object",
   "properties":{
  "urn:create":{
 "id":"http://jsonschema.net/urn:create";,
 "type":"object",
 "properties":{
"urn:sObjects":{
   "id":"http://jsonschema.net/urn:create/urn:sObjects";,
   "type":"array",
   "items":[
  {
 "id":"http://jsonschema.net/urn:create/urn:sObjects/0";,
 "type":"object",
 "properties":{
"AccountId":{
   "id":"
http://jsonschema.net/urn:create/urn:sObjects/0/AccountId";,
   "type":"string"
},
"@type":{
   "id":"
http://jsonschema.net/urn:create/urn:sObjects/0/@type";,
   "type":"string"
},
"FirstName":{
   "id":"
http://jsonschema.net/urn:create/urn:sObjects/0/FirstName";,
   "type":"string"
},
"LastName":{
   "id":"
http://jsonschema.net/urn:create/urn:sObjects/0/LastName";,
   "type":"string"
}
 }
  },
  {
 "id":"http://jsonschema.net/urn:create/urn:sObjects/0";,
 "type":"object",
 "properties":{
"@type":{
   "id":"
http://jsonschema.net/urn:create/urn:sObjects/0/@type";,
   "type":"string"
},
"Name":{
   "id":"
http://jsonschema.net/urn:create/urn:sObjects/0/Name";,
   "type":"string"
}
 }
  }
   ]
}
 }
  }
   },
   "namespaces":[
  {
 "prefix":"urn",
 "url":"urn:enterprise.soap.sforce.com"
  },
  {
 "prefix":"xsi",
 "url":"http://www.w3.org/2001/XMLSchema-instance";
  },
  {
 "prefix":"urn1",
 "url":"urn:sobject.enterprise.soap.sforce.com"
  }
   ]
}


I am facing an issue in representing this in the tree view. Are we going to
add all 4 elements ( AccountId, FirstName, LastName and Name) under the
array object?

Really appreciate your input on this.

Thanks,
Sohani
Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-03-23 Thread Supun Sethunga
Hi Deng,

Couple of comments:

   - Can you add sort of an architecture diagram, explaining your solution?
   (which visually explains implementation in a higher level)
   -
   - In the Road map, It makes more sense to mention the starting-date and
   end-date for each of the phases (instead of the duration). Also you can add
   time-slots for other steps (like doing the background research, code
   cleanup,  documenting and etc..) too, to the same timeline.

Rest of the proposal looks good to me. :)

Thanks,
Supun


On Wed, Mar 23, 2016 at 6:57 PM, tbc.dengwe...@outlook.com <
tbc.dengwe...@outlook.com> wrote:

> Hello supuns,
> I have modified my modified my proposal. Please check it. The link is
> below:
> https://drive.google.com/open?id=0BwujRZWY9rKPemVkbVYwTmd6bGM
> thanks
> Deng.
>
> --
> tbc.dengwe...@outlook.com
>
>
> *From:* Supun Sethunga 
> *Date:* 2016-03-23 02:35
> *To:* tbcTobeContinued 
> *CC:* Nirmal Fernando ; WSO2 Developers' List
> 
> *Subject:* Re: [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for
> WSO2 Machine Learner
> Hi,
>
> Thanks for your interest and the proposal. In the "Proposal 4: [ML]
> Ensemble Methods Support for WSO2 Machine Learner", we are focusing on the
> three methods: Bagging, Boosting and Stacking. You may not need to
> implement several techniques for Boosting, but rather one technique for
> each of the above three methods.
>
> Can you update the proposal accordingly?
>
> Thanks,
> Supun
>
> On Tue, Mar 22, 2016 at 8:30 PM, Nirmal Fernando  wrote:
>
>> Thanks
>>
>> On Tue, Mar 22, 2016 at 8:22 PM, tbcTobeContinued <
>> tbc.dengwe...@outlook.com> wrote:
>>
>>> Sorry,here is the link:
>>>
>>> https://drive.google.com/file/d/0BwujRZWY9rKPemVkbVYwTmd6bGM/view?usp=sharing
>>>
>>> 在 2016年3月22日,下午10:40,Nirmal Fernando  写道:
>>>
>>> Thanks for the proposal Deng, we'll check and provide feedback. It'll be
>>> easier, if you could share a google document with us, with comment rights.
>>>
>>> On Tue, Mar 22, 2016 at 7:42 PM, tbc.dengwe...@outlook.com <
>>> tbc.dengwe...@outlook.com> wrote:
>>>
 Hi,all
 I want to implemet AbaBoost for WSO2 Machine Leaner. here is my
 proposal, please give some feedback to improve it.
 Thanks
 wicky

 --
 tbc.dengwe...@outlook.com

>>>
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>
>


-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Build fail in cerbon4-kernel source code.

2016-03-23 Thread Maduranga Siriwardena
Any ideas how to resolve this issue?

Thanks,
Maduranga

On Tue, Sep 1, 2015 at 11:10 AM, Maduranga Siriwardena 
wrote:

> Hi all,
>
> Anyone know how to fix this? I keep on getting this error
>
> Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr
> (generate-scr-scrdescriptor) on project org.wso2.carbon.core: Execution
> generate-scr-scrdescriptor of goal
> org.apache.felix:maven-scr-plugin:1.7.4:scr failed: Comparison method
> violates its general contract! -> [Help 1]
>
> Thanks,
> Maduranga
>
> On Fri, Jun 12, 2015 at 11:16 AM, Maduranga Siriwardena <
> madura...@wso2.com> wrote:
>
>> Hi Thusitha,
>>
>> I have tried to build both master branch and release-4.4.0 branch.
>>
>> I have java version "1.7.0_80" and Apache Maven 3.0.5
>>
>> On Fri, Jun 12, 2015 at 11:05 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Maduranga,
>>>
>>> If you are trying to build the master branch from github use JDK7  or 8
>>> with maven 3.0.x.
>>> This will help you
>>> https://docs.wso2.com/display/Carbon440/Installation+Prerequisites
>>>
>>> Thanks
>>>
>>> On Fri, Jun 12, 2015 at 10:57 AM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi Madhuranga,

 I just checkout the master branch and built without any issues.
 May be some compatible issues with maven and jdk versions?

 Thanks

 On Fri, Jun 12, 2015 at 10:39 AM, Maduranga Siriwardena <
 madura...@wso2.com> wrote:

> Hi all,
>
> I tried to build carbon4-kernel and I got the below error.
>
> *Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr
> (generate-scr-scrdescriptor) on project org.wso2.carbon.core: Execution
> generate-scr-scrdescriptor of goal
> org.apache.felix:maven-scr-plugin:1.7.4:scr failed: Comparison method
> violates its general contract!*
>
> Such a problem is reported in apache felix plugin version 1.7.4 [1].
> So I changed the version of the maven scr plugin to 1.8.0 and if I resume
> the build, it build successfully.
>
> But if I build the code again from the beginning, I get below error
> from *org.wso2.carbon.registry.core* which is built before
> *org.wso2.carbon.core*.
>
> *[ERROR] Bundle
> org.wso2.carbon:org.wso2.carbon.registry.core:bundle:4.4.1-SNAPSHOT : 
> Input
> file does not exist:
> target/scr-plugin-generated/OSGI-INF/serviceComponents.xml*
>
> Seems to be it is not generating the OSGI-INF. Any help how to build
> source successfully?
>
> [1] https://issues.apache.org/jira/browse/FELIX-3571
>
> Thank you.
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
> email: madura...@wso2.com
> mobile: +94718990591
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


>>>
>>>
>>> --
>>> Thusitha Dayaratne
>>> Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>>
>>>
>>
>>
>> --
>> Maduranga Siriwardena
>> Software Engineer
>> WSO2 Inc.
>>
>> email: madura...@wso2.com
>> mobile: +94718990591
>>
>
>
>
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
> email: madura...@wso2.com
> mobile: +94718990591
>



-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

email: madura...@wso2.com
mobile: +94718990591
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Can we use sequence + endpoint at the same time within clone mediator ?

2016-03-23 Thread Dilshani Subasinghe
Hi Malaka,

Thanks for clarification. There was an old test case for $subject and I am
checking validity of that. When I am implementing following sequences, it
doesn't give an exact error. But it also do not send to back end. Is there
any exact reason for that?





http://localhost:9001/services/SimpleStockQuoteService/"/>








http://org.apache.synapse/xsd";
xmlns:ser="http://services.samples";
xpath="concat(//ser:symbol/text(),'1')"/>




http://org.apache.synapse/xsd";
xmlns:ser="http://services.samples"; xpath="//ser:symbol/text()"/>



PS: Sample test case of above scenario is available at:
https://testlink.wso2.com/linkto.php?tprojectPrefix=ESB&item=testcase&id=ESB-2254

Thank you and Regards,
Dilshani



On Wed, Mar 23, 2016 at 6:14 PM, Malaka Silva  wrote:

> Hi Dilshani,
>
> Yes we can. But this does not make sense. What is the use case you are
> trying to implement?
>
> On Wed, Mar 23, 2016 at 5:11 PM, Dilshani Subasinghe 
> wrote:
>
>> Hi all,
>>
>> Any ideas or comments on $subject?
>>
>> Regards,
>> Dilshani
>>
>> --
>> Best Regards,
>>
>> Dilshani Subasinghe
>> Software Engineer - QA
>> WSO2, Inc.;http://wso2.com/
>> 
>> lean.enterprise.middleware
>>
>> Mobile: +94773375185
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

Mobile: +94773375185
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Can we use sequence + endpoint at the same time within clone mediator ?

2016-03-23 Thread Malaka Silva
Hi Dilshani,

Yes we can. But this does not make sense. What is the use case you are
trying to implement?

On Wed, Mar 23, 2016 at 5:11 PM, Dilshani Subasinghe 
wrote:

> Hi all,
>
> Any ideas or comments on $subject?
>
> Regards,
> Dilshani
>
> --
> Best Regards,
>
> Dilshani Subasinghe
> Software Engineer - QA
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94773375185
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shall we use latest APPM in EMM?

2016-03-23 Thread Lakshman Udayakantha
Hi All,

After I have merged the APPM latest version and configuration changes from
APPM to EMM and after the above code changes, publisher and store can be
browsed and publish apps without any issue. But app installing on devices
failed because the code which handles that part are moved to an APPM old
branch(which is currently using in EMM) from EMM. So I cherry-picked those
specific commits from that old branch to master branch in APPM. After that
app installing on devices worked without any issue. But product app manager
P2 profile generation failed with below error messages.

 Software being installed: WSO2 Carbon - App Manager WSO2 MDM Feature
1.1.3.SNAPSHOT (org.wso2.carbon.appmgt.mdm.wso2mdm.feature.group
1.1.3.SNAPSHOT)
 Missing requirement: org.wso2.carbon.appmgt.mdm.wso2mdm 1.1.3.SNAPSHOT
(org.wso2.carbon.appmgt.mdm.wso2mdm 1.1.3.SNAPSHOT) requires 'package
org.wso2.carbon.device.mgt.core.app.mgt 0.0.0' but it could not be found

According to the error, It seems like we have to bundle carbon device
features and lot of other features which depend on it with APPM product
which is not actually used in APPM.

According to the offline discussion with PrabathA, DinushaS, RuwanA, It was
proposed to keep the code handled which handled app installing on devices
in APPM as a separate independent feature, but not bundled with APPM
product rather it bundled with EMM product.

Thanks


On Mon, Mar 21, 2016 at 4:59 PM, Dinusha Senanayaka 
wrote:

>
>
> On Mon, Mar 21, 2016 at 4:42 PM, Lakshman Udayakantha 
> wrote:
>
>> Hi Dinusha,
>>
>> Updated the pull with your suggestions.
>>
> Thanks. Merged.
>
>>
>> Thanks
>>
>> On Mon, Mar 21, 2016 at 2:57 PM, Dinusha Senanayaka 
>> wrote:
>>
>>> Hi Lakshman,
>>>
>>> Thanks for fixing this. Added few comments to PR. Please update.
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Mon, Mar 21, 2016 at 2:40 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 Hi Dinusha,

 I have moved subscriber persisting code [1] to subscription creation
 moment from login moment. Could you review and merge it.

 [1] https://github.com/wso2/carbon-appmgt/pull/245/files

 Thanks


 On Fri, Mar 18, 2016 at 9:30 PM, Dinusha Senanayaka 
 wrote:

> Hi All,
>
> This is something we got from the APIM code and we need to refactor
> it. In their case, users login to store can create oauth app and subscribe
> to APIs. App creation also should be done by a subscriber and that's why
> user is added to SUBSCRIBER table at the login. Then SUBSCRIPTION table is
> populate when the actual subscription happen to API.
>
> Anyway, AppM do not have this app creation concept in the store. Hence
> we could move this SUBSCRIBER, SUBSCRIPTION both table inserts to where
> actual subscription happens.
>
> Regards,
> Dinusha.
>
> On Fri, Mar 18, 2016 at 8:33 PM, Lahiru Cooray 
> wrote:
>
>> +1 for Ruwan's suggestion.
>> Further in current model, Subscriptions(APM_SUBSCRIPTION) are mapped
>> to a Application(APM_APPLICATION) and Application is bound to a 
>> subscriber
>> (APM_SUBSCRIBER)
>>
>> Subscriber should ideally contain the users who are subscribed to an
>> App.
>> But currently APM_SUBSCRIBER table getting updated when an user log
>> in to the store (which is not ideal)
>> This operation should be moved to just before user get subscribed to
>> an App.
>>
>>
>> On Fri, Mar 18, 2016 at 5:12 PM, Ruwan Abeykoon 
>> wrote:
>>
>>> Hi All,
>>> I think APM_SUBSCRIBER is used to check subscription on WebApps or
>>> Sites.
>>> I think adding subscriber to this table can be moved to place where
>>> the subscription is added. We might have to revisit and change the SQL
>>> queries which is used to check the subscriptions.
>>>
>>> Cheers,
>>> Ruwan
>>>
>>> On Fri, Mar 18, 2016 at 4:49 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 Hi Dinusha,

 When user is going to login to store, user will add if does not
 exist, to a table called APM_SUBSCRIBER . This code snippet has 
 removed in
 EMM store (in APPM 1.1.1 version). That's why earlier this problem is 
 not
 raised. Anyway what is the purpose of adding user to the APM_SUBSCRIBER
 table? Note that this table is the only dependant table from APPM to 
 EMM.

 Thanks

 On Fri, Mar 18, 2016 at 3:01 PM, Prabath Abeysekera <
 praba...@wso2.com> wrote:

> Hi Dinusha,
>
> On Fri, Mar 18, 2016 at 2:54 PM, Dinusha Senanayaka <
> dinu...@wso2.com> wrote:
>
>> Hi Prabath,
>>
>> On Fri, Mar 18, 2016 at 2:34 PM, Prabath Abeysekera <
>> praba...@wso2.com> wrote:
>>
>>> Hi Dinusha,
>>>
>>> On Fri,

[Dev] Fwd: Proposal 18: [ESB] X12 inbound and connector

2016-03-23 Thread Malaka Silva
Hi Mafrin,

If you are interested in doing this you need to submit the proposal before
deadline. (25th of March). Find some background info about this proposal,

We already have a inbound endpoint to support HL7 that was released with
ESB 4.9.0.

First we need to do some research on X12 and how we incorporate this into
ESB. So if this is going to be a listening inbound and a connector or a
enhancement to existing hl7 transport should be decided on your findings.

So as the first step start researching on X12 and learn on HL7 ESB inbound.
[1]

[1] https://docs.wso2.com/display/ESB490/HL7+Inbound+Protocol
[2] https://www.youtube.com/watch?v=pWyysTKMIwA​


On Wed, Mar 23, 2016 at 5:30 PM, mafrin rinsath 
wrote:

> I am interested to do this project.
>



-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.



-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [GSoC 2016]Proposal 03:[ML] Visual (Deep) Neural Network Builder

2016-03-23 Thread Lakini Senanayaka
Hi,

Could you please check my proposal[1] for [ML] Visual (Deep) Neural Network
Builder.I kindly request your feedback and comments on it.

[1]Proposal 03:[ML] Visual (Deep) Neural Network Builder



-- 
Thank you.

Sincerely,
*Lakini Senanayaka.*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Can we use sequence + endpoint at the same time within clone mediator ?

2016-03-23 Thread Dilshani Subasinghe
Hi all,

Any ideas or comments on $subject?

Regards,
Dilshani

-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

Mobile: +94773375185
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting "Program too complex: too big jump offset" error in a jaggery file

2016-03-23 Thread Akalanka Pagoda Arachchi
This does look like a bug [1], however, is also due to reaching the limit
of instruction size. Few suggestions are there in [2], may be you can try
them out.

[1] - https://bugzilla.mozilla.org/show_bug.cgi?id=331837
[2] -
http://community.sahipro.com/forums/discussion/1316/funtion-too-long-getting-compilation-error

Thanks,
Akalanka.

On Wed, Mar 23, 2016 at 4:44 PM, Supun Sethunga  wrote:

> Hi,
>
> I have a jag file containing ~1900 LOC [1]. To that, I added few more
> stringify() calls. At one point, the jag app throws the below exception. If
> I remove any of the stringify() methods, it works fine. (This error is
> thrown for other functions such as well, like array looping or accessing
> array elements and etc).
>
> Wonder whether there is a limit of instructions/logics per single jag
> file?
>
> Appreciate any help/workaround on this.
>
>
> *Stack trace:*
>
> [2016-03-23 16:32:13,498] ERROR
> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>  org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EvaluatorException: Encountered code generation
> error while compiling function "null": Program too complex: too big jump
> offset (/portal/controllers/apis/esbanalytics.jag#2)
> (/portal/routers/apis.jag#22) (/portal/routers/tenant.jag#67)
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EvaluatorException: Encountered code generation
> error while compiling function "null": Program too complex: too big jump
> offset (/portal/controllers/apis/esbanalytics.jag#2)
> (/portal/routers/apis.jag#22) (/portal/routers/tenant.jag#67)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
> at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
> at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
> at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
> at
> org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:48)
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
> at
> org.apache.catalina.valves.A

Re: [Dev] [GSoC 2016] [ML] Visual (Deep) Neural Network Builder

2016-03-23 Thread Lakini Senanayaka
Thank you very much  for the further explanation.

On Wed, Mar 23, 2016 at 8:08 AM, Upul Bandara  wrote:

> Hi Lakini,
>
> "As I understood we are using DL4J to draw neural networks and Apache
> spark(Spark ML) to do the calculations and to train the neural network"
>
> Actually, DL4J will be our NN library and we are planning to use
> JavaScritp (and related libraries) for building the front-end.
>
>
> DL4J, can be easily run on apache clusters. That will give us the
> scalability when we are building large NNs.
> Finally, we are planning to integrate "Visual Deep Learning Builder" with WSO2
> Machine learner.
>
> I think this will give you some idea about the project.
>
> So please come up with a proposal and if you could share it with us before
> this Friday we can easily give you some feedback before submitting it.
>
> Thanks,
> Upul
>
>
> On Tue, Mar 22, 2016 at 10:21 AM, Lakini Senanayaka <
> lakinisenanayak...@gmail.com> wrote:
>
>> Hi all,
>>
>> I have read the documentations and more about Apache Spark and DL4J
>> concepts.There was a way to have deeplearning4j on Spark
>> ( http://deeplearning4j.org/spark ) in the DL4J documentation.
>>
>> As I understood we are using DL4J to draw neural networks and Apache
>> spark(Spark ML) to do the calculations and to train the neural network.
>>
>> As the main objective of the "Visual Neural Network Builder" project is
>> to create a Neural Network UI front-end for WSO2 Machine Learner.
>> I have a doubt on how to use WSO2 Machine learner,Apache Spark and DL4J
>> all together.I have read the architecture of WSO2 Machine Lerner also.I
>> could understand the workflow of the project which you mentioned in the
>> idealist.Could you please give me more guidance on this problem to clarify
>> more about the project?
>>
>>
>> On Mon, Mar 21, 2016 at 1:26 PM, Nirmal Fernando  wrote:
>>
>>>
>>>
>>> On Mon, Mar 21, 2016 at 1:25 PM, Upul Bandara  wrote:
>>>
 Also, please note that deadline for the project proposal is this Friday.

 Correction:
>>>
>>>
 Please send your proposal to dev@wso2.org and project mentor(s).

 Thanks,
 Upul

 On Mon, Mar 21, 2016 at 1:11 PM, Lakini Senanayaka <
 lakinisenanayak...@gmail.com> wrote:

> Thank you very much Upul.
> I will go through the resources and If I get any problem I'll let you
> know.
>
>
> On Mon, Mar 21, 2016 at 12:51 PM, Upul Bandara  wrote:
>
>> Hi Lakini,
>>
>> The main objective of the "Visual Neural Network Builder" project is
>> to create a Neural Network UI front-end for WSO2 Machine Learner.
>> UI front-end will help people to quickly try out different Neural
>> Network configurations.
>>
>> In order to get an idea about the project proposal I would like to
>> point, Nirmal's proposal submitted to 2011 GSOC
>>
>>
>> http://nirmalfdo.blogspot.com/2011/04/apache-tuscany-develop-simple-tool-that.html
>>
>> For building neural networks we are planning to use:
>>
>> http://deeplearning4j.org/
>>
>> Please read its documentation and get familiar with basic DL4J
>> concepts, especially how to use it inside the Apache Spark.
>>
>> If you need further help, please let us know.
>>
>> Thanks,
>> Upul
>>
>> On Mon, Mar 21, 2016 at 12:44 PM, Lakini Senanayaka <
>> lakinisenanayak...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>>
>>> I am 4th year Information Technology (Specialization in Software
>>> Engineering) undergraduate of SLIIT (Sri Lanka Institute of Information
>>> Technology). I am familiar with Machine Learning concepts, Java, HTML 
>>> and
>>> JavaScript. I am very much interested in machine learning subject area 
>>> and
>>> I am currently doing my research project using machine learning 
>>> techniques.
>>> I am interested to do the project, proposal 03: [ML] Visual (Deep)
>>> Neural Network Builder. Could you please give me some guidance and
>>> materials to study further about this project?
>>>
>>> --
>>> Thank you.
>>>
>>> Sincerely,
>>> *Lakini Senanayaka.*
>>>
>>>
>>
>>
>> --
>> Upul Bandara,
>> Associate Technical Lead, WSO2, Inc.,
>> Mob: +94 715 468 345.
>>
>
>
>
> --
> Thank you.
>
> Sincerely,
> *Lakini Senanayaka.*
>
>


 --
 Upul Bandara,
 Associate Technical Lead, WSO2, Inc.,
 Mob: +94 715 468 345.

>>>
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>> Thank you.
>>
>> Sincerely,
>> *Lakini Senanayaka.*
>>
>>
>
>
> --
> Upul Bandara,
> Associate Technical Lead, WSO2, Inc.,
> Mob: +94 715 468 345.
>



-- 
Thank you.

Sincerely,
*Lakini Senanayaka.

[Dev] Getting "Program too complex: too big jump offset" error in a jaggery file

2016-03-23 Thread Supun Sethunga
Hi,

I have a jag file containing ~1900 LOC [1]. To that, I added few more
stringify() calls. At one point, the jag app throws the below exception. If
I remove any of the stringify() methods, it works fine. (This error is
thrown for other functions such as well, like array looping or accessing
array elements and etc).

Wonder whether there is a limit of instructions/logics per single jag file?


Appreciate any help/workaround on this.


*Stack trace:*

[2016-03-23 16:32:13,498] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EvaluatorException: Encountered code generation
error while compiling function "null": Program too complex: too big jump
offset (/portal/controllers/apis/esbanalytics.jag#2)
(/portal/routers/apis.jag#22) (/portal/routers/tenant.jag#67)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EvaluatorException: Encountered code generation
error while compiling function "null": Program too complex: too big jump
offset (/portal/controllers/apis/esbanalytics.jag#2)
(/portal/routers/apis.jag#22) (/portal/routers/tenant.jag#67)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:48)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEn

[Dev] Resources supported by @Context annotation in msf4j

2016-03-23 Thread Himasha Guruge
Hi All,

Found from [1] that currently the supported object injections are for
HttpStreamHandler,HttpRequest and HttpResponder.

 Are there any plans for this annotation to support injecting Http URI
related details  as well? Since our existing BPMN REST api is using this
annotation to get above information.


[1]
https://docs.wso2.com/display/MSF4J100/Key+Concepts#KeyConcepts-Supportedannotations

Thanks,

Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Native Cloud Support for Running WSO2 Middleware on Apache Mesos

2016-03-23 Thread Vishanth Balasubramaniam
Hi Osura,

Share the meeting notes here.

Thanks,
Vishanth

On Wed, Mar 23, 2016 at 1:16 PM, Imesh Gunaratne  wrote:

>
>
> On Wed, Mar 23, 2016 at 1:09 PM, Osura Rathnayake 
> wrote:
>
>> Hi Sir,
>>
>> Okay i will prepare a proposal and send to you. what time would be
>> convenient for you to have a hangout?
>>
>
> How about at 3 pm today?
>
> Thanks
>
>>
>> thanks and regards,
>> Osura
>>
>> On Wed, Mar 23, 2016 at 10:47 AM, Imesh Gunaratne  wrote:
>>
>>> Hi Osura,
>>>
>>> On Wed, Mar 23, 2016 at 12:38 AM, Osura Rathnayake 
>>> wrote:
>>>
 Hi sir,

 This is what we found when we were going through the API.

 Network Security Group (NSG) is the equivalent AWS Security group that
 we could find in azure. And this [1] is the API reference that can be used
 to get information about a particular NSG. There under networkInterfaces.id
 element, we can get a collection of references to Network Interface
 Cards that reference this NSG. And then using that we can get information
 about NICs [2]. There under virtualMachine element, we can get the VM
 associated with that NIC. Can we use this method to identify a group of
 VMs?  or can't we simply assign a tag to set of VM and identify them using
 that tag?

 Yes I think this is good. Can you please prepare a project proposal and
>>> share it privately? Will review it and give you feedback. If you need more
>>> information will have a Hangout today afternoon.
>>>
>>> Thanks
>>>


 [1] https://msdn.microsoft.com/en-us/library/azure/mt163654.aspx
 [2] https://msdn.microsoft.com/en-us/library/azure/mt163611.aspx

 Thanks and regards,
 Osura

 On Mon, Mar 21, 2016 at 11:22 PM, Imesh Gunaratne 
 wrote:

> Hi Osura/Sahan,
>
> Please try to do the following first:
>
>1. Create a free Azure account
>2. Evaluate virtual machine and container features in Azure. As I
>saw container support is very primitive at the moment. We can use K8S 
> on
>Azure for container based deployments. In this project will focus on VM
>based deployment.
>3. Go through the Azure API and see how we can identify a group of
>VMs. On AWS we do this by using security groups. We call this group a
>cluster.
>4. Next try to start a WSO2 product in a VM.
>5. Afterwards will try to implement a Carbon Membership Scheme for
>Azure using the Azure API and the above grouping feature.
>6. Next we need to identify how to use native Azure features for
>implementing following:
>
>
>- Auto healing
>   - Autoscaling
>   - Dynamic load balancing
>   - Multi-tenancy
>   - Configuration orchestration
>   - Artifact distribution
>   - Software update distribution
>   - Multi-region/cloud deployments
>   - Centralized logging
>   - Monitoring
>   - Metering
>
>
> Thanks
>
> On Mon, Mar 21, 2016 at 2:25 PM, Osura Rathnayake 
> wrote:
>
>> Hi Sir,
>>
>> Can you please direct us on how we should get started ? As in what
>> would be the first step and so on.
>>
>> regards,
>> Osura
>>
>> On Mon, Mar 14, 2016 at 5:18 PM, Imesh Gunaratne 
>> wrote:
>>
>>> Hi Osura,
>>>
>>> Please note that we changed this project description to the
>>> following:
>>>
>>> https://docs.wso2.com/display/GSoC/Project+Proposals+for+2016#ProjectProposalsfor2016-Proposal29:[Cloud]NativeCloudSupportforRunningWSO2MiddlewareonMicrosoftAzure
>>>
>>> Thanks
>>>
>>> On Sat, Mar 5, 2016 at 3:25 PM, Osura Rathnayake >> > wrote:
>>>
 Hi sir,

 I followed the steps in [1].

 [1] http://mesos.apache.org/gettingstarted/

 thanks and regards

 On Sat, Mar 5, 2016 at 3:17 PM, Imesh Gunaratne 
 wrote:

> Can you please explain how you installed Mesos on a Ubuntu
> machine?
>
> Thanks
>
>
> On Saturday, March 5, 2016, Osura Rathnayake 
> wrote:
>
>> Hi Sir,
>>
>> We were able to install mesos, docker and WSO2 carbon on a Ubuntu
>> machine. Furthermore we installed wso2 ESB and AS through docker. 
>> Currently
>> we are working on understanding how K8S works in this scenario. 
>> After that
>> what would be the next step?
>>
>> thanks and regards,
>> Osura Rathnayake, Sahan Wickramaarachchi, Vishwa Jayaratne, Allan
>> Barthelot
>>
>> On Mon, Feb 29, 2016 at 12:38 PM, Imesh Gunaratne > > wrote:
>>
>>> Hi Osura,
>>>
>>> It's nice to hear your interest on this project. The starting
>>> point would be to install Mesos and s

[Dev] WSO2 Governance Registry 5.2.0 Alpha2 Released

2016-03-23 Thread Thushara Ranawaka
WSO2 Governance Registry team is pleased to announce the Alpha2 release of
WSO2 Governance Registry 5.2.0.

Please download WSO2 Governance Registry 5.2.0 Alpha2 from this
location[1][2]. Kindly find the official documentation from here[5].This
release includes following features, improvements and bug fixes. To see the
full list please visit jira release note[3]
Improvement

   - [REGISTRY-2489 ] - Show
   diff view of XMLs in publisher and store properly
   - [REGISTRY-3291 ] - [Store]
   Show "diffview" only for content type assets
   - [REGISTRY-3478 ] - Adding
   a popover for search options

Bug

   - [REGISTRY-3233 ] -
   anonymous details view is not working for tenant users
   - [REGISTRY-3368 ] -
   [Governance Center] Tenant annonymous user cant access Diff-view
   - [REGISTRY-3372 ] -
   [PUBLISHER] Alignment issue with the Publisher Category drop down and the
   Search box
   - [REGISTRY-3391 ] - Deleted
   files are not indicated in the status check via the checkin-client
   - [REGISTRY-3421 ] - Search
   inconsistency in publisher home page, asset pages and store
   - [REGISTRY-3422 ] - Error
   500 page returned when searching for assets through each asset page
   - [REGISTRY-3431 ] - Ability
   to add assets that have ampersand(&) in name
   - [REGISTRY-3444 ] -
   [PUBLISHER] The search-results page should provide a title
   - [REGISTRY-3445 ] -
   [PUBLISHER] Remove the namespace attribute from the listing page
   - [REGISTRY-3449 ] -
   [PUBLISHER] Remove the space between the advance search button and the
   search area
   - [REGISTRY-3450 ] -
   [PUBLISHER] Remove the provider filter criteria in the asset listing page
   - [REGISTRY-3451 ] -
   [PUBLISHER] The table headings visible in the details pages of content type
   RXTs are not uniform
   - [REGISTRY-3455 ] -
   [STORE][PUBLISHER] Add a header and footer to the Swagger UI
   - [REGISTRY-3459 ] - [STORE]
   Add missing class to the details page (md,sm and xs)
   - [REGISTRY-3461 ] -
   [PUBLISHER][STORE] The loading assets message should have three dots
   - [REGISTRY-3472 ] - [STORE]
   The compare with option should only be visible for content type RXTs
   - [REGISTRY-3475 ] - LC
   state change notification missing
   - [REGISTRY-3476 ] - Backend
   throws null pointer exception when publishing service without endpoint
   - [REGISTRY-3477 ] - [Store]
   Backend gives an error When clicking an artifact in IE 11.
   - [REGISTRY-3480 ] -
   Browsing Services deployed in Publisher give 500 Error when Log Level is
   changed to debug
   - [REGISTRY-3481 ] -
   'associationType' search value must be case sensitive.
   - [REGISTRY-3483 ] - User
   reviews are not automatically updating in IE 11
   - [REGISTRY-3484 ] - Rename
   windowProxy.js

Task

   - [REGISTRY-3364 ] - [Store]
   Optimize asset listing page loading

Your feedback are most welcome !!! Please report all the JIRAs at [4] and
specify the affected version as 5.2.0 Alpha.

[1] -
https://github.com/wso2/product-greg/releases/download/v5.2.0-alpha2/wso2greg-5.2.0-alpha2.zip
[2] -
https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.2.0/alpha2/wso2greg-5.2.0-alpha2.zip
[3] - https://wso2.org/jira/browse/REGISTRY/fixforversion/12240
[4] - https://wso2.org/jira/browse/REGISTRY
[5] -
https://docs.wso2.com/display/Governance520/WSO2+Governance+Registry+Documentation

Thanks,
ES/Governance Registry Teams.

-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Question about GSoC

2016-03-23 Thread Pushpalanka Jayawardhana
+ Dev

On Wed, Mar 23, 2016 at 10:13 AM, Pushpalanka Jayawardhana 
wrote:

> Hi QunWei,
>
> Glad to hear about your interest.
> Yes this idea is still available.
>
> If you are interested on it, please  start working on it starting from
> going through the specification and raise any questions if you have any.
> In order to get familiar with WSO2 development environment and existing
> code base, get back to us. We are happy to guide you. Since the application
> deadline falls on 25th, you have less than 3 days to work on proposal for
> this. We will try our best to promptly reply to your concerns from our side.
>
> Thanks,
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
>
> On Wed, Mar 23, 2016 at 1:03 AM, QunWei Lin 
> wrote:
>
>> Dear madam, I'm writing to confirm a idea of GSoC.
>> Google summer of Code idea:
>> Proposal 23: [IS] Policy Administration and Delegation Profile for XACML
>>
>> Does this idea still available to apply?
>>
>> skills:
>>
>> good at :   Java and Test-Driven Development.
>>
>> FrameWork:  Hibernate, Struts 2, Spring.
>>
>> experience with MySQL, JavaScript,HTML+CSS, Gradle,Git.
>>
>> basic knowledge about SOA.
>>
>>
>> // if not available, could you recommend other idea in WSO2 for me to do?
>>
>> After reading all the Organization in GSoC, I was attracted by WSO2.
>>
>>
>> Thanks a lot and look forward to hearing from you soon.
>> Best Regards  Sincerely yours QunWei
>>
>
>


-- 
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [GSoC 16'] Proposal 20: [IS] SCIM 2.0 Support to WSO2 Identity Server

2016-03-23 Thread Pushpalanka Jayawardhana
Hi Manujith,

Added the comments and suggestions. Please have a look and correct.
Please also note that the entitlement engine we have in PDP component is
the Balana engine and there is no seperate entitlelment engine within IS.
IS provides XACML support on top of Balana engine, with other required
functionality for PEP, PAP and PIP.

Thanks,
Pushpalanka

On Wed, Mar 23, 2016 at 3:13 PM, Manujith Pallewatte 
wrote:

> Hi all,
>
> Thankx alot for the input and I added them in the proposal so far
> I have attached the proposal with the mail
> Please review it and let me know points of improvement and any additional
> details I'm missing in it
>
> Thank You
>
> On Wed, Mar 23, 2016 at 12:05 PM, Pushpalanka Jayawardhana  > wrote:
>
>>
>>
>> Pushpalanka.
>> --
>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>> Mobile: +94779716248
>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
>> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>>
>>
>> On Wed, Mar 23, 2016 at 11:58 AM, Manujith Pallewatte <
>> manujith...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I will certainly start off with the client, would be a good starting
>>> point to observer the responses I think.
>>> Thank to Omindu I was able to use SoapUI to simulate a request for now,
>>> I'm trying to develop on that as well. Should those things go in the
>>> proposal as well?
>>> I have a drafted a basic proposal which I will send asap for your
>>> feedback, then once I complete task 1, I can document it too
>>>
>> This is good progress. It is better to mention what you have tried upto
>> now regarding the project in brief, in the proposal.
>>
>>>
>>> Thank You
>>>
>>> On Wed, Mar 23, 2016 at 11:35 AM, Pushpalanka Jayawardhana <
>>> la...@wso2.com> wrote:
>>>


 Pushpalanka.
 --
 Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
 Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
 Mobile: +94779716248
 Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
 lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


 On Wed, Mar 23, 2016 at 2:05 AM, Manujith Pallewatte <
 manujith...@gmail.com> wrote:

> Hi Pushpalanka,
>
> Sorry for spamming the inbox like this, but since I'm already behind
> the schedule I have to get things resolved as fast as possible. Please
> don't mind it.
> One more thing as I finally got to the conclusion, the objective is to
> implement RESTful service to the PDP of IS so that any PEP can access them
> in a RESTful manner? In other words the REST service should be
> implemented to facilitate the information exchange between the PEP and PDP
> Is that correct? please correct me if i'm wrong
>



> Thanks alot
>
> On Wed, Mar 23, 2016 at 1:39 AM, Manujith Pallewatte <
> manujith...@gmail.com> wrote:
>
>> Hi Pushpalanka,
>>
>> I tried examining the PDP and PAP of IS to get an idea of how things
>> work and i followed the blog article [
>> http://pushpalankajaya.blogspot.com/2013/06/working-with-xacml-30-policies-for-fine.html].
>> I tested out few policies and all seems fine. Now I want to test the
>> policies using a PEP
>> Is there any way to simulate a authorization request? (may be using
>> curl as we use to test RESP APIs)
>> If there's any such way, where should I point the requests at?
>> ex: I added a policy for the resource url
>> http://localhost/services/secret
>> and the IS server is hosted at http://localhost:9443/
>> now i want to do a authorized requests to the 1st mentioned service
>> through the IS server, i sense i'm missing a piece here. Please help me 
>> to
>> clarify this point
>>
>
 Hi Manujith,

 There are no cURL commands available as we do not have REST
 implementation as of now.
 In order to get familiar with the code base and development environment
 and to try out the scenario you suggested follow the below steps.

 1 - Try to write a Java client for EntitlementService (SOAP service) [1]

 Please find the relevant service at [1]. This is the service that needs
 to be cosumed in order to get the XACML policy decision from PDP for a
 given XACML request.

 Specific method to call is "public String getDecision(String request)
 throws EntitlementException " giving the XACML request as a String.
 The relevant stub classes can be found at [2] that can be used at client
 side. Try to get client code written for this which can be placed in PEP
 when required. You can further publish a blogpost with this client code
 which can strengthen your proposal further.

 2 - In production scenarioes usually ESB acts as the PEP creating the
 XACML request and calling the PDP via code similar to client code you would
 develop in the above point.

 The article at [3]

Re: [Dev] Urgent: Regarding GSoC 2016

2016-03-23 Thread Sajini De Silva
Hi Vedang,

Great to hear that you are interested in the project. In current model WSO2
ESB uses JMS transport to connect to IBM MQ which needs some configurations
to be done. You can get basic understanding about this by referring the
link at [1]. However there are some limitations in the current system.
Therefore we prefer to have a native inbound to connect to IBM MQ.

You can start the project by,

   1. Installing IBM MQ 7.5.
   2. Then try to connect to MQ as consumer and producer from a java
   client. Using IBM MQ client.
   3. The next step is to create the consumer as a custom inbound[2][3] and
   the producer as a connector [4] [5]

Also you need to consider the security aspect of these scenarios as well
when you make the proposal. (Enabling mutual SSL)

Also please note that the deadline for proposals will be coming Friday.
Therefore you may need to submit the proposal soon before the deadline.

[1]
http://wso2.com/library/articles/2013/02/configuring-wso2-esb-403-ibm-websphere-mq-601-using-reffscontextfactory/
[2] https://docs.wso2.com/display/ESB490/Custom+Inbound+Endpoint
[3]
http://wso2experience.blogspot.com/2015/08/getting-started-with-simple-wso2-esb_22.html
[4]
https://docs.wso2.com/display/ESBCONNECTORS/Creating+a+Third+Party+Connector+and+Publishing+in+WSO2+Connector+Store
[5]
http://wso2experience.blogspot.com/2015/09/getting-started-with-simple-wso2-esb.html

Thank you,
Sajini



On Wed, Mar 23, 2016 at 3:11 PM, Vedang Shah 
wrote:

> Hello Sajini,
>
> Greetings for the Day!
>
> I am a first year graduate (Master's degree) student in Computer Science
> and Engineering from India.I am interested in the project mentored by you, 
> *Project
> Proposal #1: Native inbound and connector for **IBM MQ 7.5*
>
> I have experience working in Java and have sufficient knowledge about
> distributed systems, message brokers, coupling and decoupling of modules or
> agents. I have one research paper publication to my name in which I
> designed and implemented an algorithm for customized load balancing of
> distributed instances and deployed it in a customized load balancer which
> was tested on Amazon Web Services platform.This paper will be available on
> IEEExplore soon.
>
> I have referred the reference links provided below the project proposal. 
> Please
> guide me regarding any warm-up tasks that I might need to finish to get
> on-board or if I should directly apply for it. Also please further guide
> me regarding some extra details about the project, some milestones (that
> you require) that I might need to know and provide in my application. I
> have attached my CV for your perusal.
>
> Hoping to hear from you soon.
>
> Thanks and Regards,
> Vedang Shah
>



-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva

Phone: +94 712797729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [GSoC 16'] Proposal 20: [IS] SCIM 2.0 Support to WSO2 Identity Server

2016-03-23 Thread Manujith Pallewatte
Hi all,

Thankx alot for the input and I added them in the proposal so far
I have attached the proposal with the mail
Please review it and let me know points of improvement and any additional
details I'm missing in it

Thank You

On Wed, Mar 23, 2016 at 12:05 PM, Pushpalanka Jayawardhana 
wrote:

>
>
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
>
> On Wed, Mar 23, 2016 at 11:58 AM, Manujith Pallewatte <
> manujith...@gmail.com> wrote:
>
>> Hi all,
>>
>> I will certainly start off with the client, would be a good starting
>> point to observer the responses I think.
>> Thank to Omindu I was able to use SoapUI to simulate a request for now,
>> I'm trying to develop on that as well. Should those things go in the
>> proposal as well?
>> I have a drafted a basic proposal which I will send asap for your
>> feedback, then once I complete task 1, I can document it too
>>
> This is good progress. It is better to mention what you have tried upto
> now regarding the project in brief, in the proposal.
>
>>
>> Thank You
>>
>> On Wed, Mar 23, 2016 at 11:35 AM, Pushpalanka Jayawardhana <
>> la...@wso2.com> wrote:
>>
>>>
>>>
>>> Pushpalanka.
>>> --
>>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>>> Mobile: +94779716248
>>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
>>> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>>>
>>>
>>> On Wed, Mar 23, 2016 at 2:05 AM, Manujith Pallewatte <
>>> manujith...@gmail.com> wrote:
>>>
 Hi Pushpalanka,

 Sorry for spamming the inbox like this, but since I'm already behind
 the schedule I have to get things resolved as fast as possible. Please
 don't mind it.
 One more thing as I finally got to the conclusion, the objective is to
 implement RESTful service to the PDP of IS so that any PEP can access them
 in a RESTful manner? In other words the REST service should be
 implemented to facilitate the information exchange between the PEP and PDP
 Is that correct? please correct me if i'm wrong

>>>
>>>
>>>
 Thanks alot

 On Wed, Mar 23, 2016 at 1:39 AM, Manujith Pallewatte <
 manujith...@gmail.com> wrote:

> Hi Pushpalanka,
>
> I tried examining the PDP and PAP of IS to get an idea of how things
> work and i followed the blog article [
> http://pushpalankajaya.blogspot.com/2013/06/working-with-xacml-30-policies-for-fine.html].
> I tested out few policies and all seems fine. Now I want to test the
> policies using a PEP
> Is there any way to simulate a authorization request? (may be using
> curl as we use to test RESP APIs)
> If there's any such way, where should I point the requests at?
> ex: I added a policy for the resource url
> http://localhost/services/secret
> and the IS server is hosted at http://localhost:9443/
> now i want to do a authorized requests to the 1st mentioned service
> through the IS server, i sense i'm missing a piece here. Please help me to
> clarify this point
>

>>> Hi Manujith,
>>>
>>> There are no cURL commands available as we do not have REST
>>> implementation as of now.
>>> In order to get familiar with the code base and development environment
>>> and to try out the scenario you suggested follow the below steps.
>>>
>>> 1 - Try to write a Java client for EntitlementService (SOAP service) [1]
>>>
>>> Please find the relevant service at [1]. This is the service that needs
>>> to be cosumed in order to get the XACML policy decision from PDP for a
>>> given XACML request.
>>>
>>> Specific method to call is "public String getDecision(String request)
>>> throws EntitlementException " giving the XACML request as a String. The
>>> relevant stub classes can be found at [2] that can be used at client side.
>>> Try to get client code written for this which can be placed in PEP when
>>> required. You can further publish a blogpost with this client code which
>>> can strengthen your proposal further.
>>>
>>> 2 - In production scenarioes usually ESB acts as the PEP creating the
>>> XACML request and calling the PDP via code similar to client code you would
>>> develop in the above point.
>>>
>>> The article at [3], describes this use case, but it has older content.
>>> You can try out same things with latest product versions. If you encounter
>>> any issues get back to us. We will try to find a solution.
>>>
>>>
>>> I think you would be in a good position to start with the proposal once
>>> the first point is done as 2nd is a extended version of that.
>>> Do get back with any problems you face. We will try our best to get back
>>> as soon as possible.
>>>
>>>
>>> [1] -
>>> https://github.com/wso2/identity-framework/blob/master/components/entitlement/org.wso2.c

Re: [Dev] [IS] User's can disable their own accounts

2016-03-23 Thread Dilini Gunatilake
Thanks Johann.

Raised a jira [1] to track the issue.

[1] https://wso2.org/jira/browse/IDENTITY-4442

Regards,
Dilini

On Wed, Mar 23, 2016 at 2:50 PM, Johann Nallathamby  wrote:

>
> On Wed, Mar 23, 2016 at 2:38 PM, Dilini Gunatilake 
> wrote:
>
>> Hi Johann,
>>
>> Thanks for the information. You have mentioned that it is highly unlikely
>> that users are accessing their profiles via the management console. Can you
>> please clarify whether it is the same for the Dashboard also? Because the
>> end users can disable their profiles via the dashboard as well.
>>
>
> That could be a issue. In that case we will special case this claim in the
> dashboard and not show it.
> @Pushpalanka: please note.
>
> Ideally we should have application specific profile in IS and each
> application should decide what claims to show and what not to.
>
> Thanks.
>
>
>>
>> Thank you.
>>
>> Regards,
>> Dilini
>>
>>
>> On Tue, Mar 22, 2016 at 9:42 PM, Johann Nallathamby 
>> wrote:
>>
>>> Hi Dilini,
>>>
>>> It true that we ideally should special case this claim and not show in
>>> the profile so a normal end user cannot disable himself.
>>>
>>> But this feature is just a renaming of the previous account lock feature
>>> we had, except that account lock was previously used for two purposes.
>>> 1. Locking the account of a user by admin (current user disable feature)
>>> 2. Locking the account when invalid password attempts exceeded.
>>> Even in 5.1.0 this was the case; one can lock himself out using the
>>> profile and unexpected errors are thrown from management console.
>>>
>>> However due to following reasons we are thinking of not addressing this
>>> in 5.2.0 release.
>>> 1. It is highly unlikely end users of applications are allowed access to
>>> the IS management console to update their profile. Generally they update
>>> the profile through custom screens in the application side. Carbon admin
>>> console is not exposed to end users generally.
>>> 2. Very soon we are going to move away from management console UI to a
>>> jaggery based portal separate for end users and admin users.
>>>
>>> Due to above reasons we are thinking of deprioritizing this change
>>> request.
>>>
>>> Regards,
>>> Johann.
>>>
>>>
>>> On Mon, Mar 21, 2016 at 5:32 PM, Dilini Gunatilake 
>>> wrote:
>>>
 Hi Pushpalanka,

 Any update on this? Is there any change done in the Alpha release?

 Regards,
 Dilini

 On Fri, Mar 11, 2016 at 12:39 PM, Pushpalanka Jayawardhana <
 la...@wso2.com> wrote:

> Hi Dilini,
>
> Intended use of this feature is only for administrators/users with
> user-mgt previlleges to disable/enable user accounts.
> Therefore a user should not be able to disable own account. We
> discussed to hide this claim from user profile UI by default and move the
> disable/enable click to user list view. This is not done yet though.
>
> Will get to you after discussing with the team on our stand on this.
>
> Thanks,
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
>
> On Fri, Mar 11, 2016 at 12:30 PM, Dilini Gunatilake 
> wrote:
>
>> Hi IS Team,
>>
>> When identifying test scenarios for User Account Disability feature
>> in IS 520, I noticed that users can disable their own accounts and carry
>> out work until the session expires or they log out. But the system will
>> throw exceptions for the operations they do in both management console 
>> and
>> dashboard. eg: change the password
>>
>> What should be the ideal behaviour in this scenario? Should the user
>> have privileges to disable their own account?
>>
>> Thank you,
>>
>> Regards,
>>
>> --
>>
>> *Dilini GunatilakeSoftware Engineer - QA Team*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>
>


 --

 *Dilini GunatilakeSoftware Engineer - QA Team*
 Mobile : +94 (0) 771 162518
 dili...@wso2.com

>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> *Johann Dilantha Nallathamby*
>>> Technical Lead & Product Lead of WSO2 Identity Server
>>> Governance Technologies Team
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - *+9476950*
>>> Blog - *http://nallaa.wordpress.com *
>>>
>>
>>
>>
>> --
>>
>> *Dilini GunatilakeSoftware Engineer - QA Team*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Governance Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 

*Dili

Re: [Dev] [IS] User's can disable their own accounts

2016-03-23 Thread Johann Nallathamby
On Wed, Mar 23, 2016 at 2:38 PM, Dilini Gunatilake  wrote:

> Hi Johann,
>
> Thanks for the information. You have mentioned that it is highly unlikely
> that users are accessing their profiles via the management console. Can you
> please clarify whether it is the same for the Dashboard also? Because the
> end users can disable their profiles via the dashboard as well.
>

That could be a issue. In that case we will special case this claim in the
dashboard and not show it.
@Pushpalanka: please note.

Ideally we should have application specific profile in IS and each
application should decide what claims to show and what not to.

Thanks.


>
> Thank you.
>
> Regards,
> Dilini
>
>
> On Tue, Mar 22, 2016 at 9:42 PM, Johann Nallathamby 
> wrote:
>
>> Hi Dilini,
>>
>> It true that we ideally should special case this claim and not show in
>> the profile so a normal end user cannot disable himself.
>>
>> But this feature is just a renaming of the previous account lock feature
>> we had, except that account lock was previously used for two purposes.
>> 1. Locking the account of a user by admin (current user disable feature)
>> 2. Locking the account when invalid password attempts exceeded.
>> Even in 5.1.0 this was the case; one can lock himself out using the
>> profile and unexpected errors are thrown from management console.
>>
>> However due to following reasons we are thinking of not addressing this
>> in 5.2.0 release.
>> 1. It is highly unlikely end users of applications are allowed access to
>> the IS management console to update their profile. Generally they update
>> the profile through custom screens in the application side. Carbon admin
>> console is not exposed to end users generally.
>> 2. Very soon we are going to move away from management console UI to a
>> jaggery based portal separate for end users and admin users.
>>
>> Due to above reasons we are thinking of deprioritizing this change
>> request.
>>
>> Regards,
>> Johann.
>>
>>
>> On Mon, Mar 21, 2016 at 5:32 PM, Dilini Gunatilake 
>> wrote:
>>
>>> Hi Pushpalanka,
>>>
>>> Any update on this? Is there any change done in the Alpha release?
>>>
>>> Regards,
>>> Dilini
>>>
>>> On Fri, Mar 11, 2016 at 12:39 PM, Pushpalanka Jayawardhana <
>>> la...@wso2.com> wrote:
>>>
 Hi Dilini,

 Intended use of this feature is only for administrators/users with
 user-mgt previlleges to disable/enable user accounts.
 Therefore a user should not be able to disable own account. We
 discussed to hide this claim from user profile UI by default and move the
 disable/enable click to user list view. This is not done yet though.

 Will get to you after discussing with the team on our stand on this.

 Thanks,
 Pushpalanka.
 --
 Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
 Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
 Mobile: +94779716248
 Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
 lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


 On Fri, Mar 11, 2016 at 12:30 PM, Dilini Gunatilake 
 wrote:

> Hi IS Team,
>
> When identifying test scenarios for User Account Disability feature in
> IS 520, I noticed that users can disable their own accounts and carry out
> work until the session expires or they log out. But the system will throw
> exceptions for the operations they do in both management console and
> dashboard. eg: change the password
>
> What should be the ideal behaviour in this scenario? Should the user
> have privileges to disable their own account?
>
> Thank you,
>
> Regards,
>
> --
>
> *Dilini GunatilakeSoftware Engineer - QA Team*
> Mobile : +94 (0) 771 162518
> dili...@wso2.com
>


>>>
>>>
>>> --
>>>
>>> *Dilini GunatilakeSoftware Engineer - QA Team*
>>> Mobile : +94 (0) 771 162518
>>> dili...@wso2.com
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Governance Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>
>
>
> --
>
> *Dilini GunatilakeSoftware Engineer - QA Team*
> Mobile : +94 (0) 771 162518
> dili...@wso2.com
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Governance Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] User's can disable their own accounts

2016-03-23 Thread Dilini Gunatilake
Hi Johann,

Thanks for the information. You have mentioned that it is highly unlikely
that users are accessing their profiles via the management console. Can you
please clarify whether it is the same for the Dashboard also? Because the
end users can disable their profiles via the dashboard as well.

Thank you.

Regards,
Dilini


On Tue, Mar 22, 2016 at 9:42 PM, Johann Nallathamby  wrote:

> Hi Dilini,
>
> It true that we ideally should special case this claim and not show in the
> profile so a normal end user cannot disable himself.
>
> But this feature is just a renaming of the previous account lock feature
> we had, except that account lock was previously used for two purposes.
> 1. Locking the account of a user by admin (current user disable feature)
> 2. Locking the account when invalid password attempts exceeded.
> Even in 5.1.0 this was the case; one can lock himself out using the
> profile and unexpected errors are thrown from management console.
>
> However due to following reasons we are thinking of not addressing this in
> 5.2.0 release.
> 1. It is highly unlikely end users of applications are allowed access to
> the IS management console to update their profile. Generally they update
> the profile through custom screens in the application side. Carbon admin
> console is not exposed to end users generally.
> 2. Very soon we are going to move away from management console UI to a
> jaggery based portal separate for end users and admin users.
>
> Due to above reasons we are thinking of deprioritizing this change request.
>
> Regards,
> Johann.
>
>
> On Mon, Mar 21, 2016 at 5:32 PM, Dilini Gunatilake 
> wrote:
>
>> Hi Pushpalanka,
>>
>> Any update on this? Is there any change done in the Alpha release?
>>
>> Regards,
>> Dilini
>>
>> On Fri, Mar 11, 2016 at 12:39 PM, Pushpalanka Jayawardhana <
>> la...@wso2.com> wrote:
>>
>>> Hi Dilini,
>>>
>>> Intended use of this feature is only for administrators/users with
>>> user-mgt previlleges to disable/enable user accounts.
>>> Therefore a user should not be able to disable own account. We discussed
>>> to hide this claim from user profile UI by default and move the
>>> disable/enable click to user list view. This is not done yet though.
>>>
>>> Will get to you after discussing with the team on our stand on this.
>>>
>>> Thanks,
>>> Pushpalanka.
>>> --
>>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>>> Mobile: +94779716248
>>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
>>> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>>>
>>>
>>> On Fri, Mar 11, 2016 at 12:30 PM, Dilini Gunatilake 
>>> wrote:
>>>
 Hi IS Team,

 When identifying test scenarios for User Account Disability feature in
 IS 520, I noticed that users can disable their own accounts and carry out
 work until the session expires or they log out. But the system will throw
 exceptions for the operations they do in both management console and
 dashboard. eg: change the password

 What should be the ideal behaviour in this scenario? Should the user
 have privileges to disable their own account?

 Thank you,

 Regards,

 --

 *Dilini GunatilakeSoftware Engineer - QA Team*
 Mobile : +94 (0) 771 162518
 dili...@wso2.com

>>>
>>>
>>
>>
>> --
>>
>> *Dilini GunatilakeSoftware Engineer - QA Team*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Governance Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2016] [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-03-23 Thread Supun Sethunga
This Looks good! Please go ahead and submit the final draft to GSoC, on or
before Friday  :)

On Wed, Mar 23, 2016 at 1:50 PM, Hasitha Jayasundara <
hasithajayasunda...@gmail.com> wrote:

> I made the changes.Really sorry that I had to change the timeline several
> times.Since you have requested a rough timeline I only added some main
> topics in the previous drafts.Could you please check the new one and add
> some comments.
>
> https://docs.google.com/document/d/1bAJ2DYuaIIzhIWpxyKJl03v2aNRVl9miUg6PvNHyesA/edit?usp=sharing
>
> On Tue, Mar 22, 2016 at 11:19 PM, Supun Sethunga  wrote:
>
>> Coding period (implementations) should be within 23rd May to 23rd August
>> :)
>>
>> Btw, rather than having one slot as "Implement ensemble methods", can you
>> break it down to the three methods, and have three separate slots? That way
>> it would be easy for you to work on the three methods separately, as well
>> as track down the progress..
>>
>> Regards,
>> Supun
>>
>> On Mon, Mar 21, 2016 at 4:57 PM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Am I violating google GSoC calendar in my timeline?
>>>
>>> On Mon, Mar 21, 2016 at 4:47 PM, Hasitha Jayasundara <
>>> hasithajayasunda...@gmail.com> wrote:
>>>
 Made some adjustments.Could you please check

 https://docs.google.com/document/d/1bAJ2DYuaIIzhIWpxyKJl03v2aNRVl9miUg6PvNHyesA/edit?usp=sharing

 On Mon, Mar 21, 2016 at 4:24 PM, Hasitha Jayasundara <
 hasithajayasunda...@gmail.com> wrote:

> I 'll adjust them
>
>
> On Mon, Mar 21, 2016 at 4:07 PM, Supun Sethunga 
> wrote:
>
>> Hi Hasitha,
>>
>> Project timeline should tally with the gsoc timelines [1]. I've added
>> a few comments in the doc itself too. Can you please adjust those?
>>
>> [1] https://developers.google.com/open-source/gsoc/timeline
>>
>> On Mon, Mar 21, 2016 at 3:39 PM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Added timeline
>>>
>>> https://docs.google.com/document/d/1bAJ2DYuaIIzhIWpxyKJl03v2aNRVl9miUg6PvNHyesA/edit?usp=sharing
>>>
>>> On Mon, Mar 21, 2016 at 10:35 AM, Supun Sethunga 
>>> wrote:
>>>
 Hi Hasitha,

 Overall looks good to me! Added a few comments, please fix them too.

 Also, can you share a rough timeline too? If you feel like the
 current project goals does not fit into the deadlines, we can revise 
 the
 goals before starting the project, so that it would fit within the 
 timeline.

 BTW, please CC to WSO2 Developers mailing list (dev@wso2.org) for
 all project-related discussions. You might have to subscribe via
 http://wso2.com/mail/

 Thanks,
 Supun

 On Sun, Mar 20, 2016 at 6:02 PM, Hasitha Jayasundara <
 hasithajayasunda...@gmail.com> wrote:

>
> https://docs.google.com/document/d/1bAJ2DYuaIIzhIWpxyKJl03v2aNRVl9miUg6PvNHyesA/edit?usp=sharing
> Coluld you please check this and give me some comments how can i 
> improve
>
> On Wed, Mar 16, 2016 at 9:02 AM, Supun Sethunga 
> wrote:
>
>> Hi Hasitha,
>>
>> Out of ensembling method available, following are the three main
>> types that we are interested in:
>>
>>- Stacking - Training multiple algorithms (called
>>base-learners) on the same dataset, and combining them using 
>> another algorithm
>>(meta-learner).
>>- Bagging - Training a single algorithm over subsets of data.
>>- Boosting - Training multiple algorithms on the same data,
>>and combining them over a weighted average (giving higher 
>> priority to
>>misclassified data points).
>>
>> You can do some background reading on those three topics to get a
>> good understanding on ensembling methods. There are good online 
>> resources
>> available.
>>
>> or if you can could you please provide me a time to a google
>>> hangout?
>>
>> Yes sure. Can you please set up a meeting? You can check my
>> google calendar for free time slots. (I might not be available on 
>> 18-20
>> March)
>>
>> P.S: Don't call us sir, just call us by name :)
>> Also, please CC "dev@wso2.org" mailing list for all project
>> related emails.
>>
>> Regards,
>> Supun
>>
>> On Tue, Mar 15, 2016 at 1:36 AM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Dear Sir,
>>>
>>> I have gone through the WSo2 ML algorithms(Linear
>>> Regression,Lasso regression...)and  now i have the idea about how 
>>> the
>>> platform is working.Since I 

Re: [Dev] [DAS] Is there a way to retrieve selected fields from a given table

2016-03-23 Thread Gihan Anuruddha
Hi Sumedha,

Gimantha will implement same for the REST API as well. This will be
available in the DAS-3.0.2-SNAPSHOT pack.

Regards,
Gihan

On Wed, Mar 23, 2016 at 1:48 PM, Sumedha Rubasinghe 
wrote:

> Gihan,
> Can't we implement the same functionality for REST API?
>
> This will help to prevent maintaining two client logics for REST API &
> Admin API.
>
> On Wed, Mar 23, 2016 at 1:27 PM, Gihan Anuruddha  wrote:
>
>> There is a parameter that you can specify which column you need for
>> response.
>>
>> On Wed, Mar 23, 2016 at 11:36 AM, Geesara Prathap 
>> wrote:
>>
>>> Thanks for the information. In admin service how to do $subject. Just to
>>> know
>>>
>>> On Wed, Mar 23, 2016 at 11:28 AM, Gihan Anuruddha 
>>> wrote:
>>>
 AFAIK, you can't do this when you use the REST API. But if you use the
 admin service you should able to do this.

 On Wed, Mar 23, 2016 at 10:39 AM, Geesara Prathap 
 wrote:

> Hi All,
>
> As an example, *ORG_WSO2_IOT_DEVICES_TEMPERATURE *table consists of
> five fields: META_OWNER, META_DEVICETYPE, META_DEVICEID, META_TIME,
> TEMPERATURE and _TIMESTAMP. But interested only less number of fields. 
> When
> querying this
>
> *meta_owner:admin AND meta_deviceId:1iexrfgp2jwa8 AND
> meta_time:[1456467843079 TO 1456468494817]* which retrieved all
> fields it contains. So how to get selected some of the fields only which
> are required?
>
> Thanks,
> Geesara
> --
> Geesara Prathap Kulathunga
> Software Engineer
> WSO2 Inc; http://wso2.com
> Mobile : +940772684174
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595

>>>
>>>
>>>
>>> --
>>> Geesara Prathap Kulathunga
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com
>>> Mobile : +940772684174
>>>
>>>
>>
>>
>> --
>> W.G. Gihan Anuruddha
>> Senior Software Engineer | WSO2, Inc.
>> M: +94772272595
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



-- 
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Is there a way to retrieve selected fields from a given table

2016-03-23 Thread Sumedha Rubasinghe
Gihan,
Can't we implement the same functionality for REST API?

This will help to prevent maintaining two client logics for REST API &
Admin API.

On Wed, Mar 23, 2016 at 1:27 PM, Gihan Anuruddha  wrote:

> There is a parameter that you can specify which column you need for
> response.
>
> On Wed, Mar 23, 2016 at 11:36 AM, Geesara Prathap 
> wrote:
>
>> Thanks for the information. In admin service how to do $subject. Just to
>> know
>>
>> On Wed, Mar 23, 2016 at 11:28 AM, Gihan Anuruddha  wrote:
>>
>>> AFAIK, you can't do this when you use the REST API. But if you use the
>>> admin service you should able to do this.
>>>
>>> On Wed, Mar 23, 2016 at 10:39 AM, Geesara Prathap 
>>> wrote:
>>>
 Hi All,

 As an example, *ORG_WSO2_IOT_DEVICES_TEMPERATURE *table consists of
 five fields: META_OWNER, META_DEVICETYPE, META_DEVICEID, META_TIME,
 TEMPERATURE and _TIMESTAMP. But interested only less number of fields. When
 querying this

 *meta_owner:admin AND meta_deviceId:1iexrfgp2jwa8 AND
 meta_time:[1456467843079 TO 1456468494817]* which retrieved all fields
 it contains. So how to get selected some of the fields only which are
 required?

 Thanks,
 Geesara
 --
 Geesara Prathap Kulathunga
 Software Engineer
 WSO2 Inc; http://wso2.com
 Mobile : +940772684174


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> W.G. Gihan Anuruddha
>>> Senior Software Engineer | WSO2, Inc.
>>> M: +94772272595
>>>
>>
>>
>>
>> --
>> Geesara Prathap Kulathunga
>> Software Engineer
>> WSO2 Inc; http://wso2.com
>> Mobile : +940772684174
>>
>>
>
>
> --
> W.G. Gihan Anuruddha
> Senior Software Engineer | WSO2, Inc.
> M: +94772272595
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Error message when adding a datasource

2016-03-23 Thread Dilshani Subasinghe
Hi Ravindi,

When testing same configs with ESB 5.0.0 m2 pack [1], it doesn't give exact
error. You can try out. It may be fixed the issue through new pack.

[1] -
https://svn.wso2.org/repos/wso2/scratch/ESB/packs/5.0.0-Releases/5.0.0-M2/wso2esb-5.0.0-M2.zip

Regards,
Dilshani
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Representing Arrays in JSON schema

2016-03-23 Thread Sohani Weerasinghe
Hi All,

I have changed the icons as follows

objects - {}
arrays - []
attributes - A
elements - <>


Thanks,
Sohani
​

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Wed, Mar 23, 2016 at 12:00 PM, Susinda Perera  wrote:

> Shall we represent icons as follows
> object {}
> array []
> Attribute A
> Element <>
>
>
> On Wed, Mar 23, 2016 at 11:58 AM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> As per the offline discussion we had, we have finalized the array
>> representation as below.
>>
>> If we consider an xml which contains an array of Ids, the json schema
>> representation would be as follows
>>
>> 
>>
>>   false
>>   01gD001vELkIAM-400
>>   
>> * 001D00HS2PPIA1*
>> * 001D00HS2PPIA1*
>>   
>>427
>>  
>>
>>
>>
>>
>>   "sf:records": {
>> "id": "http://jsonschema.net/queryMoreResponse/result/sf:records";,
>> "type": "array",
>> "items": [{
>> "id": "http://jsonschema.net/queryMoreResponse/result/sf:records/0";,
>> "type": "object",
>> "properties": {
>> "sf:Id": {
>> "id": "http://jsonschema.net/queryMoreResponse/result/sf:records/0/sf:Id
>> ",
>> "type": "array",
>> *"items": [{*
>> * "id":
>> "http://jsonschema.net/queryMoreResponse/result/sf:records/0/sf:Id/0
>> ",*
>> * "type": "string"*
>> * }]*
>> },
>> "sf:type": {
>> "id": "
>> http://jsonschema.net/queryMoreResponse/result/sf:records/0/sf:type";,
>> "type": "string"
>> },
>> "sf:Name": {
>> "id": "
>> http://jsonschema.net/queryMoreResponse/result/sf:records/0/sf:Name";,
>> "type": "string"
>> },
>> "@type": {
>> "id": "http://jsonschema.net/queryMoreResponse/result/sf:records/0/@type
>> ",
>> "type": "string"
>> }
>> }
>> }]
>> }
>>
>>
>> ​
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Mar 23, 2016 at 11:56 AM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> As per the offline discussion we had, we have finalized the array
>>> representation as below.
>>>
>>> If we consider an xml which contains an array of Ids, the json schema
>>> representation would be as follows
>>>
>>> 
>>>
>>>   false
>>>   01gD001vELkIAM-400
>>>   
>>> * 001D00HS2PPIA1*
>>> * 001D00HS2PPIA1*
>>>   
>>>427
>>>  
>>>
>>>
>>>
>>>
>>> "sf:records": {
>>> "id": "http://jsonschema.net/queryMoreResponse/result/sf:records";,
>>> "type": "array",
>>> "items": [{
>>> "id": "http://jsonschema.net/queryMoreResponse/result/sf:records/0";,
>>> "type": "object",
>>> "properties": {
>>> "sf:Id": {
>>> "id": "http://jsonschema.net/queryMoreResponse/result/sf:records/0/sf:Id
>>> ",
>>> "type": "array",
>>> "items": [{
>>> "id": "
>>> http://jsonschema.net/queryMoreResponse/result/sf:records/0/sf:Id/0";,
>>> "type": "string"
>>> }]
>>> },
>>> "sf:type": {
>>> "id": "
>>> http://jsonschema.net/queryMoreResponse/result/sf:records/0/sf:type";,
>>> "type": "string"
>>> },
>>> "sf:Name": {
>>> "id": "
>>> http://jsonschema.net/queryMoreResponse/result/sf:records/0/sf:Name";,
>>> "type": "string"
>>> },
>>> "@type": {
>>> "id": "http://jsonschema.net/queryMoreResponse/result/sf:records/0/@type
>>> ",
>>> "type": "string"
>>> }
>>> }
>>> }]
>>> }
>>>
>>>
>>>
>>> Sohani Weerasinghe
>>> Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Wed, Mar 23, 2016 at 10:00 AM, Susinda Perera 
>>> wrote:
>>>
 Hi Sohani

 I do not think this is a correct representation,
 *"items": [] , *this says id is an empty array, but it is not (in this
 example it has 2, and also it has some value inside id tag, which is string
 in this example. if we say its empty array we loose all these information.
 Therefore i believe it should be something like below.

 *"items": [{*
 * "id":
 "http://jsonschema.net/queryMoreResponse/result/sf:records/0/sf:Id/0
 ",*
 * "type": "string"*
 * }]*



 On Mon, Mar 21, 2016 at 9:18 PM, Sohani Weerasinghe 
 wrote:

> Hi All,
>
> As per the offline discussion we had, please find the summary of
> representing the arrays in JSON Schema.
>
> If we consider an xml which contains an array of Ids, (Id) which does
> not contain any items inside it,
>
> eg:
> 
>
>   false
>   01gD001vELkIAM-400
>   
> *

Re: [Dev] [DAS] Is there a way to retrieve selected fields from a given table

2016-03-23 Thread Gihan Anuruddha
There is a parameter that you can specify which column you need for
response.

On Wed, Mar 23, 2016 at 11:36 AM, Geesara Prathap  wrote:

> Thanks for the information. In admin service how to do $subject. Just to
> know
>
> On Wed, Mar 23, 2016 at 11:28 AM, Gihan Anuruddha  wrote:
>
>> AFAIK, you can't do this when you use the REST API. But if you use the
>> admin service you should able to do this.
>>
>> On Wed, Mar 23, 2016 at 10:39 AM, Geesara Prathap 
>> wrote:
>>
>>> Hi All,
>>>
>>> As an example, *ORG_WSO2_IOT_DEVICES_TEMPERATURE *table consists of
>>> five fields: META_OWNER, META_DEVICETYPE, META_DEVICEID, META_TIME,
>>> TEMPERATURE and _TIMESTAMP. But interested only less number of fields. When
>>> querying this
>>>
>>> *meta_owner:admin AND meta_deviceId:1iexrfgp2jwa8 AND
>>> meta_time:[1456467843079 TO 1456468494817]* which retrieved all fields
>>> it contains. So how to get selected some of the fields only which are
>>> required?
>>>
>>> Thanks,
>>> Geesara
>>> --
>>> Geesara Prathap Kulathunga
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com
>>> Mobile : +940772684174
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> W.G. Gihan Anuruddha
>> Senior Software Engineer | WSO2, Inc.
>> M: +94772272595
>>
>
>
>
> --
> Geesara Prathap Kulathunga
> Software Engineer
> WSO2 Inc; http://wso2.com
> Mobile : +940772684174
>
>


-- 
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Native Cloud Support for Running WSO2 Middleware on Apache Mesos

2016-03-23 Thread Imesh Gunaratne
On Wed, Mar 23, 2016 at 1:09 PM, Osura Rathnayake 
wrote:

> Hi Sir,
>
> Okay i will prepare a proposal and send to you. what time would be
> convenient for you to have a hangout?
>

How about at 3 pm today?

Thanks

>
> thanks and regards,
> Osura
>
> On Wed, Mar 23, 2016 at 10:47 AM, Imesh Gunaratne  wrote:
>
>> Hi Osura,
>>
>> On Wed, Mar 23, 2016 at 12:38 AM, Osura Rathnayake 
>> wrote:
>>
>>> Hi sir,
>>>
>>> This is what we found when we were going through the API.
>>>
>>> Network Security Group (NSG) is the equivalent AWS Security group that
>>> we could find in azure. And this [1] is the API reference that can be used
>>> to get information about a particular NSG. There under networkInterfaces.id
>>> element, we can get a collection of references to Network Interface
>>> Cards that reference this NSG. And then using that we can get information
>>> about NICs [2]. There under virtualMachine element, we can get the VM
>>> associated with that NIC. Can we use this method to identify a group of
>>> VMs?  or can't we simply assign a tag to set of VM and identify them using
>>> that tag?
>>>
>>> Yes I think this is good. Can you please prepare a project proposal and
>> share it privately? Will review it and give you feedback. If you need more
>> information will have a Hangout today afternoon.
>>
>> Thanks
>>
>>>
>>>
>>> [1] https://msdn.microsoft.com/en-us/library/azure/mt163654.aspx
>>> [2] https://msdn.microsoft.com/en-us/library/azure/mt163611.aspx
>>>
>>> Thanks and regards,
>>> Osura
>>>
>>> On Mon, Mar 21, 2016 at 11:22 PM, Imesh Gunaratne 
>>> wrote:
>>>
 Hi Osura/Sahan,

 Please try to do the following first:

1. Create a free Azure account
2. Evaluate virtual machine and container features in Azure. As I
saw container support is very primitive at the moment. We can use K8S on
Azure for container based deployments. In this project will focus on VM
based deployment.
3. Go through the Azure API and see how we can identify a group of
VMs. On AWS we do this by using security groups. We call this group a
cluster.
4. Next try to start a WSO2 product in a VM.
5. Afterwards will try to implement a Carbon Membership Scheme for
Azure using the Azure API and the above grouping feature.
6. Next we need to identify how to use native Azure features for
implementing following:


- Auto healing
   - Autoscaling
   - Dynamic load balancing
   - Multi-tenancy
   - Configuration orchestration
   - Artifact distribution
   - Software update distribution
   - Multi-region/cloud deployments
   - Centralized logging
   - Monitoring
   - Metering


 Thanks

 On Mon, Mar 21, 2016 at 2:25 PM, Osura Rathnayake 
 wrote:

> Hi Sir,
>
> Can you please direct us on how we should get started ? As in what
> would be the first step and so on.
>
> regards,
> Osura
>
> On Mon, Mar 14, 2016 at 5:18 PM, Imesh Gunaratne 
> wrote:
>
>> Hi Osura,
>>
>> Please note that we changed this project description to the following:
>>
>> https://docs.wso2.com/display/GSoC/Project+Proposals+for+2016#ProjectProposalsfor2016-Proposal29:[Cloud]NativeCloudSupportforRunningWSO2MiddlewareonMicrosoftAzure
>>
>> Thanks
>>
>> On Sat, Mar 5, 2016 at 3:25 PM, Osura Rathnayake 
>> wrote:
>>
>>> Hi sir,
>>>
>>> I followed the steps in [1].
>>>
>>> [1] http://mesos.apache.org/gettingstarted/
>>>
>>> thanks and regards
>>>
>>> On Sat, Mar 5, 2016 at 3:17 PM, Imesh Gunaratne 
>>> wrote:
>>>
 Can you please explain how you installed Mesos on a Ubuntu machine?

 Thanks


 On Saturday, March 5, 2016, Osura Rathnayake 
 wrote:

> Hi Sir,
>
> We were able to install mesos, docker and WSO2 carbon on a Ubuntu
> machine. Furthermore we installed wso2 ESB and AS through docker. 
> Currently
> we are working on understanding how K8S works in this scenario. After 
> that
> what would be the next step?
>
> thanks and regards,
> Osura Rathnayake, Sahan Wickramaarachchi, Vishwa Jayaratne, Allan
> Barthelot
>
> On Mon, Feb 29, 2016 at 12:38 PM, Imesh Gunaratne 
> wrote:
>
>> Hi Osura,
>>
>> It's nice to hear your interest on this project. The starting
>> point would be to install Mesos and see how it works. Then try to 
>> deploy a
>> WSO2 product on Mesos using Docker. Then understand how Carbon 
>> clustering
>> works including K8S membership scheme [1] we have implemented for 
>> the same
>> purpose on K8S. Later on move to other native Pa

Re: [Dev] [ESB] Error message when adding a datasource

2016-03-23 Thread Jason De Silva
Hi Ravindi,

I also encountered the issue that you are facing when I tried it out in a
fresh ESB 490 pack, seems like this is a validation error caused at " Name
" field. If you add a name that does not have letter " s " you will succeed
with the test connection and will be able to save it too. I suggest you
better raise a jira so that ESB team can track it.


Regards,
Jason

On Wed, Mar 23, 2016 at 12:31 PM, Maneesha Wijesekara 
wrote:

> Hi Ravindi..
> I think you entered a space after the name of the database "students". It
> will work after remove it.
>
> Regards
>
> On Wed, Mar 23, 2016 at 12:11 PM, Ravindi De silva 
> wrote:
>
>> Hi all,
>>
>> I tried adding a data source for ESB. I created  a database  in mysql. I
>> added the mysql connector to the lib in ESB. Then I gave the name as
>> students, driver name as com.mysql.jdbc.Driver and url as
>> jdbc:mysql://localhost:3306/students. "students" is the name of the
>> database I created in  mysql. I verified the connection using intellijIDEA
>> and it shows successful connection.
>>
>> But when  I test the connection using ESB  it gives me the following
>> error. " Name cannot contain any special characters other than hyphen (-)
>> and underscore (_)". Nothing is shown in the console as well. What is the
>> issue ?
>>
>> I"ve attached the screenshot below.
>> --
>> Ravindi de Silva
>> *Software Engineer- Intern*
>> Mobile : +94 (0) 779689620
>> ravi...@wso2.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Maneesha Wijesekara
> Software Engineer - QA Team
> WSO2 Inc.
>
> Email: manee...@wso2.com
> Linkedin: http://linkedin.com/in/maneeshawijesekara
> Mobile: +94712443119
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Jason De Silva
*Software Engineer - QA*
Mobile: +94 (0) 772 097 678
Email: jas...@wso2.com
WSO2 Inc. www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Error message when adding a datasource

2016-03-23 Thread Maneesha Wijesekara
Hi Ravindi..
I think you entered a space after the name of the database "students". It
will work after remove it.

Regards

On Wed, Mar 23, 2016 at 12:11 PM, Ravindi De silva  wrote:

> Hi all,
>
> I tried adding a data source for ESB. I created  a database  in mysql. I
> added the mysql connector to the lib in ESB. Then I gave the name as
> students, driver name as com.mysql.jdbc.Driver and url as
> jdbc:mysql://localhost:3306/students. "students" is the name of the
> database I created in  mysql. I verified the connection using intellijIDEA
> and it shows successful connection.
>
> But when  I test the connection using ESB  it gives me the following
> error. " Name cannot contain any special characters other than hyphen (-)
> and underscore (_)". Nothing is shown in the console as well. What is the
> issue ?
>
> I"ve attached the screenshot below.
> --
> Ravindi de Silva
> *Software Engineer- Intern*
> Mobile : +94 (0) 779689620
> ravi...@wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Maneesha Wijesekara
Software Engineer - QA Team
WSO2 Inc.

Email: manee...@wso2.com
Linkedin: http://linkedin.com/in/maneeshawijesekara
Mobile: +94712443119
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev