Re: [Dev] Shindig Error

2016-05-29 Thread Tanya Madurapperuma
Yes. The same is discussed in [1] and fixed in carbon-dashboards 1.0.17

[1] [Dev] Shindig error on DS portal startup, due to connectivity errors to
google

Thanks,
Tanya

On Mon, May 30, 2016 at 11:23 AM, Damith Wickramasinghe 
wrote:

> Hi all,
>
> I received following error when I try in my home network and it took some
> time to load the dashboard.
>
> [2016-05-29 23:53:42,488]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
> 'admin@carbon.super [-1234]' logged in at [2016-05-29 23:53:42,487+0530]
> [2016-05-29 23:53:42,509]  INFO {JAGGERY.modules.api:js} -  Session cookie
> JSESSIONID=66265F732E6F943180885F0306828C56; Path=/; Secure=null;
> HttpOnly=null
> [2016-05-29 23:53:49,866]  INFO
> {org.apache.shindig.gadgets.http.BasicHttpFetcher} -
> https://localhost:9443/shindig/rpc?method=system.listMethods=-1:-1:0:*:0:0:default:1464546234
> has timed out because of the following exception:
> org.apache.shindig.gadgets.http.BasicHttpFetcher - Read timed out - 5,093
> ms.
> [2016-05-29 23:53:49,869] ERROR
> {org.apache.shindig.gadgets.render.DefaultServiceFetcher} -  An HTTP 504
> error occurred when fetching service methods from the
> https://localhost:9443/shindig/rpc endpoint.
> [2016-05-29 23:54:05,118]  INFO
> {org.apache.shindig.gadgets.http.BasicHttpFetcher} -
> http://www.google-analytics.com/urchin.js has timed out because of the
> following exception: org.apache.shindig.gadgets.http.BasicHttpFetcher -
> www.google-analytics.com: unknown error - 20,014 ms.
> [2016-05-29 23:54:05,121]  WARN
> {org.apache.shindig.gadgets.features.FeatureResourceLoader} -  The remote
> library from http://www.google-analytics.com/urchin.js cannot be
> retrieved.
>
>
> Is this a known issue ?
>
> Regards,
> Damith.
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Shindig Error

2016-05-29 Thread Damith Wickramasinghe
Hi all,

I received following error when I try in my home network and it took some
time to load the dashboard.

[2016-05-29 23:53:42,488]  INFO
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
'admin@carbon.super [-1234]' logged in at [2016-05-29 23:53:42,487+0530]
[2016-05-29 23:53:42,509]  INFO {JAGGERY.modules.api:js} -  Session cookie
JSESSIONID=66265F732E6F943180885F0306828C56; Path=/; Secure=null;
HttpOnly=null
[2016-05-29 23:53:49,866]  INFO
{org.apache.shindig.gadgets.http.BasicHttpFetcher} -
https://localhost:9443/shindig/rpc?method=system.listMethods=-1:-1:0:*:0:0:default:1464546234
has timed out because of the following exception:
org.apache.shindig.gadgets.http.BasicHttpFetcher - Read timed out - 5,093
ms.
[2016-05-29 23:53:49,869] ERROR
{org.apache.shindig.gadgets.render.DefaultServiceFetcher} -  An HTTP 504
error occurred when fetching service methods from the
https://localhost:9443/shindig/rpc endpoint.
[2016-05-29 23:54:05,118]  INFO
{org.apache.shindig.gadgets.http.BasicHttpFetcher} -
http://www.google-analytics.com/urchin.js has timed out because of the
following exception: org.apache.shindig.gadgets.http.BasicHttpFetcher -
www.google-analytics.com: unknown error - 20,014 ms.
[2016-05-29 23:54:05,121]  WARN
{org.apache.shindig.gadgets.features.FeatureResourceLoader} -  The remote
library from http://www.google-analytics.com/urchin.js cannot be retrieved.


Is this a known issue ?

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] [ESB Connector] Build failures on projects generated using esb-connector-archetype

2016-05-29 Thread Rajjaz Mohammed
Hi All,
New version of archetype for esb connector released[1] and fixed the issue.

[1] mvn archetype:generate
-DarchetypeGroupId=org.wso2.carbon.extension.archetype
-DarchetypeArtifactId=org.wso2.carbon.extension.esb.connector-archetype
-DarchetypeVersion=2.0.0  -DgroupId=org.wso2.carbon.connector
-DartifactId=org.wso2.carbon.connector.sample -Dversion=1.0.0
-DarchetypeRepository=
http://maven.wso2.org/nexus/content/repositories/wso2-public/

On Wed, May 4, 2016 at 6:08 PM, Sagara Gunathunga  wrote:

>
>
> On Wednesday, May 4, 2016, Rajjaz Mohammed  wrote:
>
>> Hi Sagara/Malaka
>>
>> It's fixed[1] but still not released due to we need to change new staging
>> repo[2].
>>
>> We can release new 1.0.2 version archetypes with CEP extension
>> archetypes.
>>
>>
>> Can we release these archetypes into Maven central repo as well ?
>
> Thanks !
>
>> [1] https://github.com/wso2-
>> 
>> extensions/archetypes/commit/
>> 
>> 84b4db9dc1fbf60fc7874c52ea091e
>> 
>> aff1cb21a7
>> 
>>
>> [2] Please stage extension-archetype-1.0.1
>>
>> On Wed, May 4, 2016 at 4:44 PM, Malaka Silva  wrote:
>>
>>> Hi Sagara,
>>>
>>> It seems this is already fixed with [1]. However it was not released
>>> since were waiting for few more changes. Will update soon.
>>>
>>> @Rajjaz Shall we add the CEP extension archetypes, release and update
>>> docs?
>>>
>>> [1]
>>> https://github.com/wso2-extensions/archetypes/commit/84b4db9dc1fbf60fc7874c52ea091eaff1cb21a7
>>>
>>> On Wed, May 4, 2016 at 4:32 PM, Sagara Gunathunga 
>>> wrote:
>>>

 I have generated a sample project using above archetype based on
 official doc[1] instructions, but when I build It gives following build
 issues.

 *[INFO] Scanning for projects...*

 *[ERROR] [ERROR] Some problems were encountered while processing the
 POMs:*

 *[WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 78, column 21*

 *[ERROR] 'dependencies.dependency.version' for
 org.apache.synapse:synapse-core:jar must be a valid version but is
 '${synapse.version}'. @ line 34, column 26*

 *[ERROR] 'dependencies.dependency.version' for
 org.wso2.carbon:org.wso2.carbon.mediation.library.connectors.core:jar must
 be a valid version but is '${wso2carbon.version}'. @ line 39, column 26*


 It's looks like POM is invalid due to undefined properties such as
 synapse.version, wso2carbon.version etc.


 [1] - https://docs.wso2.com/display/ESBCONNECTORS/Writing+a+Connector


 Thanks !
 --
 Sagara Gunathunga

 Architect; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


>>>
>>>
>>> --
>>>
>>> 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.
>>>
>>
>>
>>
>> --
>> Thank you
>> Best Regards
>>
>> *Rajjaz HM*
>> Associate Software Engineer
>> Platform Extension Team
>> WSO2 Inc. 
>> lean | enterprise | middleware
>> Mobile | +94752833834|+94777226874
>> Email   | raj...@wso2.com
>> LinkedIn  | Blogger
>>  | WSO2 Profile
>> 
>>
>
>
> --
> Sent from Gmail Mobile
>



-- 
Thank you
Best Regards

*Rajjaz HM*
Associate Software Engineer
Platform Extension Team
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834|+94777226874
Email   | raj...@wso2.com
LinkedIn  | Blogger
 | WSO2 Profile

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


Re: [Dev] APIM 2.0.0-SNAPSHOT Nightly build - 27/05/2016

2016-05-29 Thread Bhathiya Jayasekara
Hi Ushani,

The blocker from IS side is resolved now. So I can provide it within the
week.

Thanks,
Bhathiya

On Mon, May 30, 2016 at 8:45 AM, Ushani Balasooriya  wrote:

> Hi Bhathiya,
>
> Any update on P2 repo? It would be great if we can have it early this week
> since we are almost done with our setup and would be great to point it to
> IS as Key Manager.
>
> Thanks,
>
> On Fri, May 27, 2016 at 10:07 PM, Bhathiya Jayasekara 
> wrote:
>
>> Hi all,
>>
>> Please find APIM 2.0.0 SNAPSHOT nightly build here[1].
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-27-05-2016.zip
>>
>> Thanks,
>>
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Ushani Balasooriya*
> Senior Software Engineer - QA;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>


-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Vote] Release WSO2 Carbon Kernel 5.1.0 RC1

2016-05-29 Thread Indika Sampath
Hi All,

carbon 5.1.0-rc1 tested with andes (c5 migration) and product-mb (c5
migration). I didn't found any issue.

[x] Stable - go ahead and release

Cheers!

On Fri, May 27, 2016 at 6:15 PM, Niranjan Karunanandham 
wrote:

> Hi all,
>
> I have tested Carbon 5.1.0 RC1 with the following and found no issue.
>
>- Built carbon-datasources and tested a sample.
>- Built msf4j and tested the stockquote sample
>- Built carbon-caching and tested a sample
>- Tested JMX support by connect to the server via "Local Process"
>
> [x] Stable - go ahead and release
>
> Regards,
> Nira
>
> On Fri, May 27, 2016 at 5:19 PM, Nipuni Perera  wrote:
>
>> Hi all,
>>
>> I have tested features below and no issues found.
>>
>>1. java.util.logging
>>2. built carbon-jndi and tested a sample
>>
>> [x] Stable - go ahead and release
>>
>> Thanks,
>> Nipuni
>>
>> On Fri, May 27, 2016 at 12:44 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 1st Release Candidate of WSO2 Carbon Kernel 5.1.0
>>>
>>> This release fixed the following issues:
>>> https://wso2.org/jira/issues/?filter=13077
>>>
>>> Please download and test your products with Kernel 5.1.0 RC1 and vote.
>>>
>>> *Source and binary distribution files:*
>>>
>>> https://github.com/wso2/carbon-kernel/releases/download/v5.1.0-rc1/wso2carbon-kernel-5.1.0.zip
>>>
>>> *Maven Staging repository:*
>>> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1020/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/carbon-kernel/releases/tag/v5.1.0-rc1
>>>
>>> [ ] Broken - do not releaes (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>> Thank you,
>>> Carbon Team
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>> Nipuni Perera
>> Software Engineer; WSO2 Inc.; http://wso2.com
>> Email: nip...@wso2.com
>> Git hub profile: https://github.com/nipuni
>> Blog : http://nipunipererablog.blogspot.com/
>> Mobile: +94 (71) 5626680
>> 
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Indika Sampath
Senior Software Engineer
WSO2 Inc.
http://wso2.com

Phone: +94 716 424 744
Blog: http://indikasampath.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC Project: HTTP Load Balancer On Top Of WSO2 Gateway Discussion

2016-05-29 Thread Isuru Ranawaka
Hi Venkat.

Good.I will look at the implementation and setup a call for discuss next
steps.

thanks

On Mon, May 30, 2016 at 10:27 AM, Venkat Raman  wrote:

> Hi Isuru,
>
> Good morning :) . Kindly find the 1st week's progress.
>
> 1) Implementation of Round-Robin algorithm for Outbound Endpoints.
> 2) Round-Robin algorithm with group support, but one .iflow config file
> can have only one group as of now as mentioned earlier.
> 3) Few input validations.
>
> Kindly find the repo here.
> 
>
> In proposal I've mentioned that I'll be covering HTTPS 2nd week,since
> it'll be made available later in carbon-gateway-framework repo, I'm
> planning to proceed with adding session persistence.
>
> Will be looking forward for your feedback.
>
>
>
> *Thanks,*
> *Venkat.*
>
> On Wed, May 25, 2016 at 8:57 PM, Venkat Raman 
> wrote:
>
>> Hi Ravi,
>>
>> Thank you for the clear explanation :) .  Yes, I added  appropriate log
>> statements and I was able to understand the flow and I am clear with it
>> now.
>>
>>
>>
>>
>> *Thanks,*
>> *Venkat.*
>>
>> On Wed, May 25, 2016 at 8:09 PM, Ravi Undupitiya  wrote:
>>
>>> Hi Venkat,
>>>
>>> Please find answers inline below.
>>>
>>> On Tue, May 24, 2016 at 9:29 PM, Venkat Raman 
>>> wrote:


 1) Why are we pushing variables in carbon message variables stack..??

>>>
>>> One of the features of the language is to have variables we can declare
>>> and use throughout the mediation flow. We are able to populate variables
>>> during loading and during runtime and so variable stack is kept inside the
>>> carbon message so each thread has its own variable stack. Hope that
>>> clarifies.
>>>
>>>
 2) Also could you kindly explain how AbstractFlowController and
 FlowControllerCallback are working together.  My understanding is not quite
 clear on this.

>>>
>>> AbstractFlowControllers are mediators that require controlling the flow
>>> (like filter mediator) where we the mediation flow branching out, in which
>>> case we want to mediate only the branch we're in and FlowControllerCallback
>>> is a CarbonCallback that we pass on to receive method of mediators of a
>>> particular branch. This allows us to continue mediation from the parent
>>> once a branch is complete. You can test this out by debugging the
>>> FilterMediator, try passing on the usual callback and then check by passing
>>> on a FlowControllerCallback.
>>>
>>> @IsuruR, please correct me if I'm wrong. :)
>>>
>>>
>>> Thanks,
>>> --
>>> *Ravi Undupitiya*
>>> Senior Software Engineer; WSO2 http://wso2.com
>>>
>>>
>>> *E-mail: r...@wso2.com **M: **+94 772 930 712
>>> <%2B94%C2%A0772%20930%20712>*
>>>
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>


-- 
Best Regards
Isuru Ranawaka
M: +94714629880
Blog : http://isurur.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-05-29 Thread Maheshakya Wijewardena
Hi Mahesh,

Thank you for the update. I will look into your implementation.

And i will be able to send you the timing/performances analysis report
> tomorrow for the SGD functions
>

Great. Sent those asap so that we can proceed.

Best regards.

On Sun, May 29, 2016 at 6:56 PM, Mahesh Dananjaya  wrote:

>
> Hi maheshakay,
> I have implemented the linear regression with cep siddhi event stream
> with  taking batch sizes as parameters from the cep. Now we can trying the
> moving window method to. Before that i think i should get your opinion on
> data structures to save the streaming data.please check my repo [1]  /gsoc/
> folder there you can find all new things i add.. there in the extension
> folder you can find those extension. And i will be able to send you the
> timing/performances analysis report tomorrow for the SGD functions. thank
> you.
> regards,
> Mahesh.
> [1] https://github.com/dananjayamahesh/GSOC2016/tree/master/gsoc
>
>
> On Fri, May 27, 2016 at 12:56 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi maheshkaya,
>> i have written some siddhi extension and trying to develop a one for my
>> one. In time series example in the [1], can you please explain me the input
>> format and query lines in that example for my understanding.
>>
>> from baseballData#timeseries:regress(2, 1, 0.95, salary, rbi, walks,
>> strikeouts, errors)
>> select *
>> insert into regResults;
>>
>> i just want to knwo how i give a set of data into this extension and what
>> is baseballData. Is it input stream as usual.or any data file?how can i
>> find that data set to create dummy input stream like baseballData?
>>
>> thank you.
>> regards,
>> Mahesh.
>> [1]
>> https://docs.wso2.com/display/CEP400/Writing+a+Custom+Stream+Processor+Extension
>>
>> On Thu, May 26, 2016 at 2:58 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Maheshakya,
>>> today i got the siddhi and debug the math extention. then did some
>>> changes and check. Now i am trying to write same kind of extension in my
>>> code base. so i add dependencies and it was built fine. Now i am trying to
>>> debug my extension and i did the same thing as i did in previous case. Cep
>>> is sending data, bu my extension is not firing in relevant break point.
>>> 1. So how can i debug the siddhi extension in my new extension.(you can
>>> see it in my example repoo)
>>>
>>> I think if i do it correctly we can built the extension for our purpose.
>>> And i will send the relevant timing report of SGD algorithms very soon as
>>> supun was asking me. thank you.
>>> regards,
>>> Mahesh.
>>>
>>> On Tue, May 24, 2016 at 11:07 AM, Maheshakya Wijewardena <
>>> mahesha...@wso2.com> wrote:
>>>
 Also note that there is a calculation interval in the siddhi time
 series regression function[1]. You maybe able get some insight for this
 from that as well.

 [1] https://docs.wso2.com/display/CEP400/Regression

 On Tue, May 24, 2016 at 11:03 AM, Maheshakya Wijewardena <
 mahesha...@wso2.com> wrote:

> Hi Mahesh,
>
> As we discussed offline, we can use similar mechanism to train linear
> regression models, logistic regression models and k-means clustering 
> models.
>
> It is very interesting that i have found that somethings that can make
>> use of our work. In the cep 4.0 documentation there is a Custom Stream
>> Processor Extention program [1]. There is a example of
>> LinearRegressionStreamProcessor [1].
>>
>
> As we have to train predictive models with Spark, you can write
> wrappers around regression/clustering models of Spark. Refer to Siddhi 
> time
> series regression source codes[1][2]. You can write a streaming linear
> regression class for ML in a similar fashion by wrapping Spark mllib
> implementations. You can use the methods "addEvent", "removeEvent", etc.
> (may have to be changed according to requirements) for the similar 
> purpose.
> You can introduce trainLinearRegression/LogisticRegression/Kmeans which
> does a similar thing as in createLinearRegression in those time series
> functions. In the processData method you can use Spark mllib classes to
> actually train models and return the model weights, evaluation metrics. 
> So,
> converting streams into RDDs and retrieving information from the trained
> models shall happen in this method.
>
> In the stream processor extension example, you can retrieve those
> values then use them to train new models with new batches. Weights/cluster
> centers maybe passed as initialization parameters for the wrappers.
>
> Please note that we have to figure out the best siddhi extension type
> for this process. In the siddhi query, we define batch size, type of
> algorithm and number of features (there can be more). After batch size
> number of events received, train a model and save 

Re: [Dev] APIM 2.0.0-SNAPSHOT Nightly build - 27/05/2016

2016-05-29 Thread Ushani Balasooriya
Hi Bhathiya,

Any update on P2 repo? It would be great if we can have it early this week
since we are almost done with our setup and would be great to point it to
IS as Key Manager.

Thanks,

On Fri, May 27, 2016 at 10:07 PM, Bhathiya Jayasekara 
wrote:

> Hi all,
>
> Please find APIM 2.0.0 SNAPSHOT nightly build here[1].
>
> [1]
> https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-27-05-2016.zip
>
> Thanks,
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ushani Balasooriya*
Senior Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC 16] Initial Project Progress

2016-05-29 Thread Osura Rathnayake
Hi Isuru,

Thank you
I have updated my Git repository with this sample code, please find it here
[1].

[1] https://github.com/osuran/azure-membership-scheme

Thanks

On Sun, May 29, 2016 at 8:41 AM, Isuru Haththotuwa  wrote:

> Hi Osura,
>
> On Sun, May 29, 2016 at 12:32 AM, Osura Rathnayake 
> wrote:
>
>> Hi Isuru,
>>
>> Please find the attached project zip. From line 108 to 148 I hard coded
>> because I was getting errors with StringTokenizer and I didn't want to
>> focus much on that.
>> Okay I'm right on writing the actual membership scheme.
>>
> Thanks. Will have a look.
>
> It would be better if you can commit this to a github repository. By doing
> that, your sample is available for anyone to use/refer. Make sure to remove
> any sensitive information (passwords, etc.) before doing so.
>
>>
>> thanks
>>
>> On Sat, May 28, 2016 at 10:19 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> Hi Osura,
>>>
>>> These are great findings!
>>>
>>> Can you please share the sample code that you wrote?
>>>
>>> The next step would be to start writing the actual membership scheme.
>>> Please refer the Kubernetes Membership scheme as a reference.
>>>
>>>
>>> On Sat, May 28, 2016 at 9:06 PM, Osura Rathnayake 
>>> wrote:
>>>
 Hi All,



 This is the summary of everything that I have done so far.



 Pre requisite: VMs which has WSO2 Application Server running should
 have been added to a particular network security group (NSG). In my case
 it’s ASNSG



 First the java app should be authenticated. Then it query for the
 information on ASNSG. Response of that API call includes names of all the
 network interfaces that are existed in ASNSG. Then each and every network
 interface is queried using their names to get private IP addresses of each
 of them. As the final outcome we get a list of IP addresses of VMs which
 has WSO2 Application Server running.



 *Authentication*

 In order to work with Azure Resource Manager (ARM) REST API, first of
 all our app has to be authenticated. ARM provides two methods for this
 purpose,



 1) Authenticate using service principal

 2) Authenticate using organizational account.



 I have used the first method that is authenticating using a service
 principal.  A Service Principal is an instance of an application that is
 within your Active Directory that is allowed access to one or more
 resources or an entire resource group. How to set up a service principal is
 well described here [1]. Once you successfully set up a service principal,
 you will have the following information in hand.



 1)  Client ID

 2)  Client secret

 3)  Tenant ID

 Above parameters and Azure subscription ID are used in the java app for
 authentication purpose. I have used Active Directory Authentication Library
 (ADAL) [2] for authentication. Once the authentication is successful, an
 authentication token will be issued and it will be used in the rest of the
 program as to make calls to API.



 *Getting information on ASNSG*

 For this purpose, [3] API reference is used. As the response we get a
 JSON string which includes names of NICs which are available in ASNSG.



 *Getting private IP address of each NIC*

 With the NIC names we received from previous API call, we can use this
 [4] API reference to get the private IP address of each NIC. And then with
 that information we can list out the IP addresses of all the VMs which has
 WSO2 Application Server running.



 [1]
 https://azure.microsoft.com/en-gb/documentation/articles/resource-group-create-service-principal-portal/

 [2] https://github.com/AzureAD/azure-activedirectory-library-for-java

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

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



 Thanks



 *From:* Imesh Gunaratne [mailto:im...@wso2.com]
 *Sent:* Saturday, May 28, 2016 8:53 AM
 *To:* Osura Rathnayake
 *Cc:* Isuru Haththotuwa; WSO2 Developers' List
 *Subject:* Re: [GSOC 16] Initial Project Progress







 On Sat, May 28, 2016 at 12:42 AM, Osura Rathnayake 
 wrote:

 Hi mentors,



 Sorry for the late reply. ARM portal doesn't have certain features like
 Active Directory but it doesn't matter because they can be implemented
 using classic portal and they work hand in hand. So all the features in
 classic plus the new features in ARM can be used if we choose ARM model.
 Therefore I think it's fruitful if we stick to ARM model, and the other
 important thing 

Re: [Dev] [Documentation] [APIM] Where is "API Usage By User"

2016-05-29 Thread Tania Mahanama
The info was split between two pages and had discrepancies. I've organized
it better now. Thanks for reporting!

On Sun, May 29, 2016 at 8:09 PM, Amila Maha Arachchi 
wrote:

> Doc and APIM Team,
>
> I can see a screenshot in [1] for "API Usage By User". But, AFAIU, it is
> not there anymore in the API Publisher's statistics menu.
>
> I have seen users getting confused over this [2].
>
> Please fix the docs.
>
> [1] https://docs.wso2.com/display/AM1100/Viewing+API+Statistics
> [2]
> http://stackoverflow.com/questions/37405753/how-to-get-anatytics-per-user-per-api-version-in-wso2
>
> Regards,
> Amila.
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
> --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Documentation Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to documentation+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



-- 
Tania Mahanama
Senior Technical Writer

Contact:
Mob: +94 077 5129270
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Documentation] [APIM] Where is "API Usage By User"

2016-05-29 Thread Amila Maha Arachchi
Doc and APIM Team,

I can see a screenshot in [1] for "API Usage By User". But, AFAIU, it is
not there anymore in the API Publisher's statistics menu.

I have seen users getting confused over this [2].

Please fix the docs.

[1] https://docs.wso2.com/display/AM1100/Viewing+API+Statistics
[2]
http://stackoverflow.com/questions/37405753/how-to-get-anatytics-per-user-per-api-version-in-wso2

Regards,
Amila.
-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Is there a feature that bundles common-scxml?

2016-05-29 Thread Amila De Silva
Hi,

Need to know if there's a feature that bundles common-scxml.
In all the instances where this bundle has been used, it had been included
as a bundleDef in a product specific feature. But if there's a feature for
this bundle, we could have directly imported the feature rather than
including the bundle in non-related features.

-- 
*Amila De Silva*

WSO2 Inc.
mobile :(+94) 775119302
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Define the default authenticator/sequence to use a custom federated authenticator

2016-05-29 Thread Darshana Gunawardana
Also there are few complications when configuring federated scenario for a
file based service provider. Following JIRA has more information.

https://wso2.org/jira/browse/IDENTITY-4581

For an elegant solution, it should fix above JIRA first. Otherwise you will
be endup with duplicating the full IdP configuration inside the service
provider config.


On Sun, May 29, 2016 at 7:31 PM, Darshana Gunawardana 
wrote:

> Hi Farasath,
>
> It seems like my assumption is wrong. As per the code [1] doesn't read
> from application-authentication.xml to read default behaviour. It is
> reading from default service provider file
> (/conf/identity/service-providers/default.xml). IMO this is a bug, it need
> to pick that behaviour from the application-authentication.xml.
>
> [1]
> https://github.com/wso2/carbon-identity-framework/blob/master/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java#L799:L806
>
> Regards,
>
> On Sun, May 29, 2016 at 4:51 PM, Farasath Ahamed 
> wrote:
>
>>
>> Hi All,
>>
>> When trying to set the "*Local & Outbound Authentication Configuration*"
>> for a Service Provider I noticed a default option. If someone wants to use
>> a custom/federated authenticator as the default option how can we achieve
>> this?
>>
>> Based on a discussion with Darshana, I tried to achieve this by modifying
>> the default sequence in application-authentication.xml file found at
>> IS_HOME/repository/conf/identity as below,
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> Even then I am redirected to use the default BasicAuthenticator (username
>> and password). Are there any other changes that need to be done to engage a
>> federated/custom authenticator as the default throughout IS?
>>
>>
>> Thanks,
>> Farasath Ahamed
>> Software Engineer,
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>> Email: farasa...@wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>>
>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Senior Software Engineer
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>



-- 
Regards,


*Darshana Gunawardana*Senior Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Define the default authenticator/sequence to use a custom federated authenticator

2016-05-29 Thread Darshana Gunawardana
Hi Farasath,

It seems like my assumption is wrong. As per the code [1] doesn't read from
application-authentication.xml to read default behaviour. It is reading
from default service provider file
(/conf/identity/service-providers/default.xml). IMO this is a bug, it need
to pick that behaviour from the application-authentication.xml.

[1]
https://github.com/wso2/carbon-identity-framework/blob/master/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java#L799:L806

Regards,

On Sun, May 29, 2016 at 4:51 PM, Farasath Ahamed  wrote:

>
> Hi All,
>
> When trying to set the "*Local & Outbound Authentication Configuration*"
> for a Service Provider I noticed a default option. If someone wants to use
> a custom/federated authenticator as the default option how can we achieve
> this?
>
> Based on a discussion with Darshana, I tried to achieve this by modifying
> the default sequence in application-authentication.xml file found at
> IS_HOME/repository/conf/identity as below,
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> Even then I am redirected to use the default BasicAuthenticator (username
> and password). Are there any other changes that need to be done to engage a
> federated/custom authenticator as the default throughout IS?
>
>
> Thanks,
> Farasath Ahamed
> Software Engineer,
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> Email: farasa...@wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
>



-- 
Regards,


*Darshana Gunawardana*Senior Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Fwd: GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-05-29 Thread Mahesh Dananjaya
Hi maheshakay,
I have implemented the linear regression with cep siddhi event stream with
taking batch sizes as parameters from the cep. Now we can trying the moving
window method to. Before that i think i should get your opinion on data
structures to save the streaming data.please check my repo [1]  /gsoc/
folder there you can find all new things i add.. there in the extension
folder you can find those extension. And i will be able to send you the
timing/performances analysis report tomorrow for the SGD functions. thank
you.
regards,
Mahesh.
[1] https://github.com/dananjayamahesh/GSOC2016/tree/master/gsoc


On Fri, May 27, 2016 at 12:56 PM, Mahesh Dananjaya <
dananjayamah...@gmail.com> wrote:

> Hi maheshkaya,
> i have written some siddhi extension and trying to develop a one for my
> one. In time series example in the [1], can you please explain me the input
> format and query lines in that example for my understanding.
>
> from baseballData#timeseries:regress(2, 1, 0.95, salary, rbi, walks,
> strikeouts, errors)
> select *
> insert into regResults;
>
> i just want to knwo how i give a set of data into this extension and what
> is baseballData. Is it input stream as usual.or any data file?how can i
> find that data set to create dummy input stream like baseballData?
>
> thank you.
> regards,
> Mahesh.
> [1]
> https://docs.wso2.com/display/CEP400/Writing+a+Custom+Stream+Processor+Extension
>
> On Thu, May 26, 2016 at 2:58 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshakya,
>> today i got the siddhi and debug the math extention. then did some
>> changes and check. Now i am trying to write same kind of extension in my
>> code base. so i add dependencies and it was built fine. Now i am trying to
>> debug my extension and i did the same thing as i did in previous case. Cep
>> is sending data, bu my extension is not firing in relevant break point.
>> 1. So how can i debug the siddhi extension in my new extension.(you can
>> see it in my example repoo)
>>
>> I think if i do it correctly we can built the extension for our purpose.
>> And i will send the relevant timing report of SGD algorithms very soon as
>> supun was asking me. thank you.
>> regards,
>> Mahesh.
>>
>> On Tue, May 24, 2016 at 11:07 AM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Also note that there is a calculation interval in the siddhi time series
>>> regression function[1]. You maybe able get some insight for this from that
>>> as well.
>>>
>>> [1] https://docs.wso2.com/display/CEP400/Regression
>>>
>>> On Tue, May 24, 2016 at 11:03 AM, Maheshakya Wijewardena <
>>> mahesha...@wso2.com> wrote:
>>>
 Hi Mahesh,

 As we discussed offline, we can use similar mechanism to train linear
 regression models, logistic regression models and k-means clustering 
 models.

 It is very interesting that i have found that somethings that can make
> use of our work. In the cep 4.0 documentation there is a Custom Stream
> Processor Extention program [1]. There is a example of
> LinearRegressionStreamProcessor [1].
>

 As we have to train predictive models with Spark, you can write
 wrappers around regression/clustering models of Spark. Refer to Siddhi time
 series regression source codes[1][2]. You can write a streaming linear
 regression class for ML in a similar fashion by wrapping Spark mllib
 implementations. You can use the methods "addEvent", "removeEvent", etc.
 (may have to be changed according to requirements) for the similar purpose.
 You can introduce trainLinearRegression/LogisticRegression/Kmeans which
 does a similar thing as in createLinearRegression in those time series
 functions. In the processData method you can use Spark mllib classes to
 actually train models and return the model weights, evaluation metrics. So,
 converting streams into RDDs and retrieving information from the trained
 models shall happen in this method.

 In the stream processor extension example, you can retrieve those
 values then use them to train new models with new batches. Weights/cluster
 centers maybe passed as initialization parameters for the wrappers.

 Please note that we have to figure out the best siddhi extension type
 for this process. In the siddhi query, we define batch size, type of
 algorithm and number of features (there can be more). After batch size
 number of events received, train a model and save parameters, return
 evaluation metric. With the next batch, retrain the model initialized with
 previously learned parameters.

 We also may need to test the same scenario with a moving window, but I
 suspect that that approach may become so slow as a model is trained each
 time an event is received. So, we may have to change the number of slots
 the moving window moves at a time (eg: not one by one, but ten by ten).

 Once this is 

[Dev] [IS] Define the default authenticator/sequence to use a custom federated authenticator

2016-05-29 Thread Farasath Ahamed
Hi All,

When trying to set the "*Local & Outbound Authentication Configuration*"
for a Service Provider I noticed a default option. If someone wants to use
a custom/federated authenticator as the default option how can we achieve
this?

Based on a discussion with Darshana, I tried to achieve this by modifying
the default sequence in application-authentication.xml file found at
IS_HOME/repository/conf/identity as below,










Even then I am redirected to use the default BasicAuthenticator (username
and password). Are there any other changes that need to be done to engage a
federated/custom authenticator as the default throughout IS?


Thanks,
Farasath Ahamed
Software Engineer,
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware


Email: farasa...@wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] clarification on api publisher on summary tables

2016-05-29 Thread Rukshan Premathunga
Hi all,

Still we are publishing API creator for API publisher field for all the
event streams. Even in registry, API publisher is not maintain and only
creator field is updated. So can we continue with this behavior or do we
need to any changes to the event stream?

any suggestions?

Thanks and Regards.

On Fri, May 27, 2016 at 5:29 PM, Shavantha Weerasinghe 
wrote:

> Hi Nuwan/Ruckshan
>
> On API Manager if we have 3 separate users with creator/publisher and
> subscriber only user roles, once stats are published to analytics server,
> the summary tables show creator@carbon.super as the API Publisher. Is
> this the expected behavior.
>
> Should the system show the actual owner of the API or the person who
> published it
>
> regards,
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>


-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev