Re: [Dhis2-devs] [Dhis2-users] dhis version 2.29 is released

2018-03-08 Thread Saptarshi Purkayastha
Exciting release DHIS2 team! Loved the new dashboard app, maps app and the
progressive rendering pivot table.
Do you know when the Android tracker capture app will support the data view
sharing levels? That is an exciting development for our project that uses
the Android apps for tracking health worker training.

---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Assistant Professor of Health Informatics,
Indiana University - Purdue University Indianapolis.

On 7 March 2018 at 16:39, Lars Helge Øverland <l...@dhis2.org> wrote:

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Hi all,DHIS version 2.29 is out with many new features, apps and
> improvements.Login with admin/district on the demo
> <http://play.dhis2.org/2.29/> system to try it out.ANALYTICS
> FEATURES---Dashboard app: A new dashboard app is now available which lets
> you arrange the dashboard items in a completely flexible way. It features
> better dashboard search, allows you to create shortcuts by marking
> dashboards as favorites, switch between visualization types such as pivot,
> chart and map and insert free-text items. Dashboards can be shared,
> translated and filtered.Screenshot 1
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/29/dashboard-view.png>
> | 2
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/29/dashboard-edit-mode.png>
> | Demo <https://play.dhis2.org/2.29/dhis-web-dashboard/index.html> | Docs
> <https://docs.dhis2.org/2.29/en/user/html/dashboard.html>Maps app: A new
> maps app (previously GIS) is available, offering a new, intuitive and
> user-friendly interface for creating map layers. It lets you arrange the
> order of map layers in a simple way, and view the map data in a data table.
> Any number of map layers can be added to a map, even layers of the same
> type. The contents and order of map layers can be viewed in the left side
> menu.Screenshot 1
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/29/maps-analysis.png>
> | 2
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/29/maps-events.png>
> | Demo <https://play.dhis2.org/2.29/dhis-web-maps/#> | Docs
> <https://docs.dhis2.org/2.29/en/user/html/using_maps.html>Last value
> aggregation type: A new “last value” aggregation type is available for
> aggregate and event analytics for data elements and attributes. This
> aggregation type will use the last available value or event in the time
> dimension, and either sum or average across other dimensions. This is
> useful e.g. for facility surveys to analyse data based on the last
> observation, or for “patients currently on care” type of
> analysis.Screenshot
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/29/last-value-aggregation.png>
> | Demo <https://play.dhis2.org/2.29/dhis-web-pivot/#>Pivot table
> scalability: The pivot table rendering engine is now around 10x more
> scalable, and allows for very large pivot tables to be viewed in the web
> browser. This is accomplished through progressive rendering, i.e. the
> browser will only render what you currently see and not load the entire
> pivot table into the browser memory.Demo
> <https://play.dhis2.org/2.29/dhis-web-pivot/?id=mkNlpJL3RMT>Event reports
> table layout download: You can now download event reports in Excel or CSV
> format in the same tabular format which was rendered in the web
> browser.Screenshot
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/29/event-report-table-layout-download.png>Configurable
> financial year in analytics: The starting month of the financial year to
> use in all analytics apps can now be configured in the settings app.
> Available options are April, July and October.Screenshot
> <https://s3-eu-west-1.amazonaws.com/content.dhis2.org/releases/screenshots/29/financial-year-start-month-setting.png>
> | Demo <https://play.dhis2.org/2.29/dhis-web-settings/#/analytics>TRACKER
> FEATURES---Data capture and data view sharing levels: The sharing solution
> has been extended with two new levels for “data capture” and “data view”
> access for users and user groups. These levels apply to programs, program
> stages, data sets and category options, and replaces the link between user
> roles and data sets/programs. This offer

Re: [Dhis2-devs] Shift in strategy for DHIS2 Android development

2017-07-05 Thread Saptarshi Purkayastha
Thank you Ola for this announcement. We are extremely pleased to hear that
the Android development is going to be more open and easy to track. We are
using the SDK and a fork of the tracker application for a couple of health
worker training projects.

Awaiting to hear more as things progress.

---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Assistant Professor of Health Informatics,
Indiana University - Purdue University Indianapolis.

On 4 July 2017 at 16:31, Ola Hodne Titlestad <ol...@ifi.uio.no> wrote:

> Hi all,
>
> To respond to the increasing demand for Android apps for DHIS2 and keep up
> with the constant and rapid evolution of mobile technologies, HISP UiO
> management has decided to change the strategy for DHIS2 Android
> development. This decision is based on acknowledging that HISP UiO hasn’t
> delivered the high quality and timely Android products the DHIS2 community
> is expecting.
>
> Our approach to DHIS2 Android development will from now on be more
> distributed. This will make it easier to engage experienced senior Android
> experts around the world and allow the development to be more connected to
> the field and the variety of country use cases. Also, through a more
> collaborative roadmap process and frequent public communication, we intend
> to foster a thriving community for DHIS2 Android development and use.
>
> We have reached out to senior experts (business analysts, architects, and
> developers) outside UiO and asked for support to set up the necessary
> processes to restructure the DHIS2 Android development. We are partnering
> with professionals who are close to the community, share our values, and
> that we know well from previous collaborations.
>
> This will allow a diverse team of core developers to build a strong SDK as
> well as a suite of core apps. At the same time, we will enable the broader
> community to build upon this core with a range of locally developed custom
> apps, responding to the variety of use cases from countries. Key to the new
> approach is also to empower community involvement through a collaborative
> roadmap and testing process.
>
> UiO will maintain its central role in coordinating the overall process and
> making sure the Android activities are well aligned with the overall DHIS2
> platform.
>
> Stay tuned for more updates on Android apps in the near future.
>
> The HISP UiO management team
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] Org unit lists

2017-04-10 Thread Saptarshi Purkayastha
Hi Alvin,
John Mukulu shared the link to metadata in his first email -
https://github.com/dhis2/dhis2-metadata-repo

---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Assistant Professor of Health Informatics,
Indiana University - Purdue University Indianapolis.

On 9 April 2017 at 08:21, Alvin Marcelo <admarc...@up.edu.ph> wrote:

> PLs share link to the metadata on the github thanks --
>
>
>
> On Fri, Apr 7, 2017 at 1:51 PM, John Mukulu <john.f.muk...@gmail.com>
> wrote:
>
>> Hello again,
>> Thanks for the feedback.
>>
>> Yes, the github repository is meant to be the core repository for all
>> publicly shared repositories. If you have metadata you would like to
>> contribute, you're warmly welcome to do so.
>>
>> I will get back to you soon with a fully fledged app with full detailed
>> import preview.
>>
>> For metadata sharing within networks, which isn't soo public, we're also
>> looking into supporting external repositories, but that is in the very long
>> term plan.
>>
>> I recommend we use the github dhis2 repository for Sharing metadata at
>> this point.
>>
>> Cheers.
>>
>> John Francis Mukulu
>> Lead Developer, HISPTZ
>> University of Dar es salaam
>> http://hisptanzania.org/
>>
>> On Apr 7, 2017 03:41, "Saptarshi Purkayastha" <sun...@gmail.com> wrote:
>>
>> Thank you John for sharing that metabase2 app. The UX is great! I assume
>> its getting the repository data from the github repo. What would be nice is
>> to "preview the system" with the imported metadata and you could rollback
>> to your metadata. But the dhis2-live is a better way to deploy "previewing
>> of system" with a different metadata.
>>
>> Alvin, thank you for sharing that there is interest in AeHIN network
>> countries... I had assumed with so many implementations of DHIS2 across the
>> globe, there would be "real" metadata, than whats in the demo or training
>> databases. Would be great if repository of medicines is also available, in
>> something like the NDF
>> <https://www.nlm.nih.gov/research/umls/sourcereleasedocs/current/NDFRT/index.html>
>> at least for a region. Even in DHIS2 metadata format would be a good place
>> to be.
>>
>> ---
>> Regards,
>> Saptarshi PURKAYASTHA, Ph.D.
>> Assistant Professor of Health Informatics,
>> Indiana University - Purdue University Indianapolis.
>>
>> On 6 April 2017 at 20:13, Alvin Marcelo <admarc...@up.edu.ph> wrote:
>>
>>> Hi Saptarshi,
>>>
>>> Offhand, no we dont have a repository of metadata -- but yes we (AeHIN)
>>> is interested if there is going to be one.
>>>
>>> There are 12 DHIS2-implementing countries in AeHIN and they have been
>>> meeting annually at our general meetings. I think this would be a good
>>> project for them to do amongst themselves.
>>>
>>> For your information, the same thing (a repository of metadata) is
>>> planned for medicines to be led by Dr Boonchai -- perhaps we can use the
>>> same platform for the medicine and for the DHIS2 metadata?
>>>
>>> alvin
>>>
>>>
>>>
>>> On Fri, Apr 7, 2017 at 4:17 AM, Saptarshi Purkayastha <sun...@gmail.com>
>>> wrote:
>>>
>>>> I am assuming there is no repository, since I didnt get a response
>>>> back. Is there at least interest among implementers and developers, to be
>>>> able to share or host the metadata from different implementations?
>>>>
>>>> ---
>>>> Regards,
>>>> Saptarshi PURKAYASTHA, Ph.D.
>>>> Assistant Professor of Health Informatics,
>>>> Indiana University - Purdue University Indianapolis.
>>>>
>>>> On 28 March 2017 at 13:29, Saptarshi Purkayastha <sun...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi devs and users,
>>>>> Is there a metadata sharing repository, where implementers can get a
>>>>> list of metadata that is used by different implementers? The org units 
>>>>> list
>>>>> would be a useful starting place that many implementers in a country could
>>>>> share. But there is probably a whole list of indicators, tracker program
>>>>> forms (for standardized global programs) that could also be shared.
>>>>>
>>>>> Is there a repository some place? or plan for such a repository? May
>>>>> be it could simply be on the mailing list and people could share 

Re: [Dhis2-devs] [Dhis2-users] Org unit lists

2017-04-06 Thread Saptarshi Purkayastha
Thank you John for sharing that metabase2 app. The UX is great! I assume
its getting the repository data from the github repo. What would be nice is
to "preview the system" with the imported metadata and you could rollback
to your metadata. But the dhis2-live is a better way to deploy "previewing
of system" with a different metadata.

Alvin, thank you for sharing that there is interest in AeHIN network
countries... I had assumed with so many implementations of DHIS2 across the
globe, there would be "real" metadata, than whats in the demo or training
databases. Would be great if repository of medicines is also available, in
something like the NDF
<https://www.nlm.nih.gov/research/umls/sourcereleasedocs/current/NDFRT/index.html>
at least for a region. Even in DHIS2 metadata format would be a good place
to be.

---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Assistant Professor of Health Informatics,
Indiana University - Purdue University Indianapolis.

On 6 April 2017 at 20:13, Alvin Marcelo <admarc...@up.edu.ph> wrote:

> Hi Saptarshi,
>
> Offhand, no we dont have a repository of metadata -- but yes we (AeHIN) is
> interested if there is going to be one.
>
> There are 12 DHIS2-implementing countries in AeHIN and they have been
> meeting annually at our general meetings. I think this would be a good
> project for them to do amongst themselves.
>
> For your information, the same thing (a repository of metadata) is planned
> for medicines to be led by Dr Boonchai -- perhaps we can use the same
> platform for the medicine and for the DHIS2 metadata?
>
> alvin
>
>
>
> On Fri, Apr 7, 2017 at 4:17 AM, Saptarshi Purkayastha <sun...@gmail.com>
> wrote:
>
>> I am assuming there is no repository, since I didnt get a response back.
>> Is there at least interest among implementers and developers, to be able to
>> share or host the metadata from different implementations?
>>
>> ---
>> Regards,
>> Saptarshi PURKAYASTHA, Ph.D.
>> Assistant Professor of Health Informatics,
>> Indiana University - Purdue University Indianapolis.
>>
>> On 28 March 2017 at 13:29, Saptarshi Purkayastha <sun...@gmail.com>
>> wrote:
>>
>>> Hi devs and users,
>>> Is there a metadata sharing repository, where implementers can get a
>>> list of metadata that is used by different implementers? The org units list
>>> would be a useful starting place that many implementers in a country could
>>> share. But there is probably a whole list of indicators, tracker program
>>> forms (for standardized global programs) that could also be shared.
>>>
>>> Is there a repository some place? or plan for such a repository? May be
>>> it could simply be on the mailing list and people could share the metadata
>>> export files here.
>>>
>>> ---
>>> Regards,
>>> Saptarshi PURKAYASTHA, Ph.D.
>>> Assistant Professor of Health Informatics,
>>> Indiana University - Purdue University Indianapolis.
>>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Dr. Alvin B. Marcelo www.alvinmarcelo.com
> <http://www.alvinmarcelo.com/cv.html>
>
>
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Org unit lists

2017-04-06 Thread Saptarshi Purkayastha
I am assuming there is no repository, since I didnt get a response back. Is
there at least interest among implementers and developers, to be able to
share or host the metadata from different implementations?

---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Assistant Professor of Health Informatics,
Indiana University - Purdue University Indianapolis.

On 28 March 2017 at 13:29, Saptarshi Purkayastha <sun...@gmail.com> wrote:

> Hi devs and users,
> Is there a metadata sharing repository, where implementers can get a list
> of metadata that is used by different implementers? The org units list
> would be a useful starting place that many implementers in a country could
> share. But there is probably a whole list of indicators, tracker program
> forms (for standardized global programs) that could also be shared.
>
> Is there a repository some place? or plan for such a repository? May be it
> could simply be on the mailing list and people could share the metadata
> export files here.
>
> ---
> Regards,
> Saptarshi PURKAYASTHA, Ph.D.
> Assistant Professor of Health Informatics,
> Indiana University - Purdue University Indianapolis.
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Announcement of the DHIS2NZ app for DHIS2

2017-04-01 Thread Saptarshi Purkayastha
Cool collection of tracks... Great way to celebrate April Fools' Day.

---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Assistant Professor of Health Informatics,
Indiana University - Purdue University Indianapolis.

On 1 April 2017 at 09:01, J. Paul Mutali <mut...@gmail.com> wrote:

> H,
>
> thanks, made my day.
>
>
> JP
>
> On Sat, Apr 1, 2017 at 11:48 AM, Bob Jolliffe <bobjolli...@gmail.com>
> wrote:
>
>> funky
>>
>> On 31 March 2017 at 23:47, Mark Polak <m...@dhis2.org> wrote:
>>
>>> Hey All,
>>>
>>> Today we'd like to announce a new app for visualisation of data called
>>> DHIS2NZ.
>>>
>>> The app includes it's own one minute intro video. We have made a demo of
>>> the app available just for today.
>>>
>>> You will be able to log in with the usual username (admin) and password
>>> (district).
>>>
>>> Check it out here: https://play.dhis2.org/demo/ap
>>> i/apps/dhis2nz/index.html
>>>
>>> Enjoy!
>>>
>>> PS: Might not work in IE (of course) and maybe Safari :)
>>>
>>> --
>>> Regards,
>>>
>>>
>>> Mark Polak
>>> Software developer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org <https://www.dhis2.org/>
>>> m...@dhis2.org
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Org unit lists

2017-03-28 Thread Saptarshi Purkayastha
Hi devs and users,
Is there a metadata sharing repository, where implementers can get a list
of metadata that is used by different implementers? The org units list
would be a useful starting place that many implementers in a country could
share. But there is probably a whole list of indicators, tracker program
forms (for standardized global programs) that could also be shared.

Is there a repository some place? or plan for such a repository? May be it
could simply be on the mailing list and people could share the metadata
export files here.

---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Assistant Professor of Health Informatics,
Indiana University - Purdue University Indianapolis.
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Introduction to Community

2016-05-01 Thread Saptarshi Purkayastha
Congratulations Laavanye... Looking forward to the enhancements to
Dashboard app

---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Assistant Professor of Health Informatics, IUPUI

On 1 May 2016 at 00:55, LAAVANYE BAHL <laavanye.b...@gmail.com> wrote:

> Thank you everyone :)
> On 30 Apr 2016 23:01, "Araz Abishov" <a...@dhis2.org> wrote:
>
>> Welcome Laavanye!
>>
>> We are happy to have you in team during this summer.
>>
>> Best regards,
>>
>> —
>> Araz Abishov,
>> Android developer, DHIS 2
>> University of Oslo
>> https://www.dhis2.org/
>>
>> On April 30, 2016 at 10:42:15 AM, LAAVANYE BAHL (laavanye.b...@gmail.com)
>> wrote:
>>
>> Hi everyone,
>>
>> I am Laavanye Bahl studying Software Engineering at Delhi Technological
>> University, India. I have a lot of experience in software development,
>> especially mobile and desktop applications.
>>
>> I have been selected as a GSoC participant for the project - "Enhancing
>> Dashboard Android App
>> <https://summerofcode.withgoogle.com/projects/#5382475769446400>" by
>> generating the analytical objects dynamically and making the app work in
>> the offline mode.
>>
>> It feels great to be a part of a community of active developers and
>> members working on development and implementation of health information
>> systems across the world,
>>
>> I'm looking forward to an amazing summer working on the project, with the
>> HIS community, under the mentor ship of Araz Abishov.
>>
>> Regards,
>> Laavanye Bahl
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help : https://help.launchpad.net/ListHelp
>>
>>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Acknowledgement and Introduction to DHIS2 community

2016-05-01 Thread Saptarshi Purkayastha
Congratulations Shubham and welcome to the DHIS2 community. Looking forward
to working with you over the summer.

---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Assistant Professor of Health Informatics, IUPUI

On 1 May 2016 at 04:29, Shubham Bhadani <shubham.94...@gmail.com> wrote:

> Hello Respected Developers ,
>
> First of all I feel very privileged for my selection in GSoC for DHIS2 . I
> thank all the mentors for this opportunity to prove my worth . It will be
> my best summer contributing to DHIS2 .
>
> I am  Shubham 2nd year  Biotechnology student from Kolkata,India. I have
> interest in various domains , with focus on technology and health
> developement . I am passionate about learning new technologies and
> improving my skills.
>
> I am selected for the project Line listing record importer , under the
> mentorship of Sir Saptarshi P . The DHIS2 tracker allows tracking patients
> as well as other entities . My project is developement of open web
> application which is to be added to dhis2 tracker .
>
> I would also like to congratulate all other students selected . It feels
> great to be a part of a community of active developers and members working
> on development and implementation of health information systems across the
> world. I feel confident of completing my project in time.
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] HISP/DHIS2 accepted as a mentoring organization for Google Summer of Code

2016-03-01 Thread Saptarshi Purkayastha
Hi Devs,

DHIS2 has been accepted again this year to the Google Summer of Code (GSoC)
 program, as a mentoring
organization. In the past, we have participated twice in the program in
2013 and 2014, which has produced long term contributors to the project
like Araz Abishov.
I think more importantly the program gives us more visibility among new
contributors (students or otherwise) and makes us think about best ways to
groom new developers. Please welcome new students who will write to the
list about project ideas. Please help them troubleshoot setting up of the
dev environment  and getting started
with DHIS2 development.

Interested students, please send project related questions directly to the
mentors who are listed. If you have a new idea, please share it with the
users list. But if you have not spent enough time in the community and
implementing DHIS2, it is better if you discuss what's already listed in
the project ideas page. If you have trouble setting up the DHIS2 dev
environment, please write to the devs list, so that community members can
help you resolve issues. As with any interaction, follow good etiquette.
e.g. please search the list archive before shooting out an email. etc. etc.

Community members, please look at the ideas page -
https://www.dhis2.org/gsoc2016 and help us reach out to students in
countries where DHIS2 is being implemented. At HISP, we have always
believed in local capacity and we would like to see the same being
propagated through GSoC

HISP org -
https://summerofcode.withgoogle.com/organizations/5195725117849600/


---
Regards,
Araz and Saptarshi
GSoC 2016 admins
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Time stamp in Web API

2016-01-18 Thread Saptarshi Purkayastha
Hi Pamod
The convention is to generally do this on the client-side. If the Web API
is *correctly converting* local timezone to UTC and you see + at the
end of timestamps, it means the client can change this to whatever timezone
its supposed to be in. That seems to be the appropriate approach since
users of a web system can be on different timezones and it is the
client-side (JavaScript) to correctly display it to be user.

---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Visiting assistant professor
Department of BioHealth Informatics, IUPUI

On 17 January 2016 at 08:51, Pamod Amarakoon <pam...@gmail.com> wrote:

> Dear All,
>
> I currently have an instance of which server timezone, Postgresql time
> zone and java time zone has been set to Asia/Colombo. I can see the data
> been stored in database in local time stamp.
>
> But when retrieving data through web API time stamp is in UTC. Is it
> possible to change the timestamp of web API output to fall back to local
> time zone.
>
> Thank you.
>
> --
> Regards,
> Pamod Amarakoon
>
> Confidentiality Notice: the information contained in this email and any
> attachments may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this e-mail is strictly prohibited. If you have
> received this e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should not retain,
> copy or use this e-mail or any attachments for any purpose, nor disclose
> all or any part of the contents to any other person.
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] PostgreSQL in DHIS

2016-01-17 Thread Saptarshi Purkayastha
Dhis2 makes the tables when it is deployed during startup. So you don’t have to 
create any tables on your own. You will see Step 1 through 12 when dhis2 is 
first deployed using tomcat. If you are seeing those steps then tables should 
be created.
Please share your startup logs, so that we can discover any issues

--SP


From: Apoorv Patel
Sent: Sunday, January 17, 2016 21:34
To: Saptarshi Purkayastha
Subject: Re: PostgreSQL in DHIS

Yes I have done that and my server is set up. Now I want to create tables in my 
postgreSQL but I can't find anything like phpAdmin. Is there anything like that 
for DHIS to make changes in the database tables?
On Jan 17, 2016 9:31 PM, "Saptarshi Purkayastha" <sun...@gmail.com> wrote:
Have you followed the instructions here - 
http://dhis2.github.io/dhis2-docs/2.21/en/implementer/html/ch08s03.html
It has details about creating the database, user, connection settings etc.
Please reply back if you have any trouble.


---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Visiting assistant professor
Department of BioHealth Informatics, IUPUI

On 17 January 2016 at 13:28, Apoorv Patel <patelapoorv9...@gmail.com> wrote:
Hi Saptarshi,

I am trying to create a PostgreSQL database and tables in my instance but I am 
not able to find database admin to create it on the web apps list. Can you 
please guide me on how to go about that?

Thanks
Apoorv


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] PostgreSQL in DHIS

2016-01-17 Thread Saptarshi Purkayastha
Have you followed the instructions here -
http://dhis2.github.io/dhis2-docs/2.21/en/implementer/html/ch08s03.html
It has details about creating the database, user, connection settings etc.
Please reply back if you have any trouble.

---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Visiting assistant professor
Department of BioHealth Informatics, IUPUI

On 17 January 2016 at 13:28, Apoorv Patel <patelapoorv9...@gmail.com> wrote:

> Hi Saptarshi,
>
> I am trying to create a PostgreSQL database and tables in my instance but
> I am not able to find database admin to create it on the web apps list. Can
> you please guide me on how to go about that?
>
> Thanks
> Apoorv
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Dhis2 Android SDK setup

2016-01-14 Thread Saptarshi Purkayastha
This seems to be a problem with the Java SDK version you are using on your
machine. You are probably using JDK 8, where as the SDK is expecting Java 7.
You can either compile using Java 7 or change this file -
https://github.com/dhis2/dhis2-android-sdk/blob/master/core/build.gradle

I'm not quite sure what incompatibilities might occur after changing the
following in that file.
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8


---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Visiting assistant professor
Department of BioHealth Informatics, IUPUI

On 14 January 2016 at 01:26, Apoorv Patel <patelapoorv9...@gmail.com> wrote:

> Hi Team,
>
> I am trying to integrate the DHIS2 SDK into my project but when I try to
> set it up the gradle sync does not give any errors but when I try to run
> the app it gives me the following error
>
>
>
> UNEXPECTED TOP-LEVEL EXCEPTION:
> java.lang.RuntimeException: Exception parsing classes
> at com.android.dx.command.dexer.Main.processClass(Main.java:752)
> at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718)
> at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
> at
> com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645)
> at
> com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
> at
> com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
> at
> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
> at com.android.dx.command.dexer.Main.processOne(Main.java:672)
> at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
> at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
> at com.android.dx.command.dexer.Main.run(Main.java:277)
> at com.android.dx.command.dexer.Main.main(Main.java:245)
> at com.android.dx.command.Main.main(Main.java:106)
> Caused by: com.android.dx.cf.iface.ParseException: bad class file magic
> (cafebabe) or version (0034.)
> at
> com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)
> at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
> at
> com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
> at
> com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
> at com.android.dx.command.dexer.Main.parseClass(Main.java:764)
> at com.android.dx.command.dexer.Main.access$1500(Main.java:85)
> at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684)
> at com.android.dx.command.dexer.Main.processClass(Main.java:749)
> ... 12 more
> 1 error; aborting
> Error:Execution failed for task ':app:preDexDebug'.
> > com.android.ide.common.process.ProcessException:
> org.gradle.process.internal.ExecException: Process 'command 'C:\Program
> Files\Java\jdk1.8.0_65\bin\java.exe'' finished with non-zero exit value 1
>
> Can you give me some idea on how to go about solving this?
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs-core] faster pg_dump and pg_restore

2015-10-23 Thread Saptarshi Purkayastha
Thanks for sharing this Lars. I tried it now and restore works much faster
than before.
Can you please share the demo database in directory format here -
https://www.dhis2.org/downloads

---
Regards,
Saptarshi PURKAYASTHA
Visiting assistant professor
Department of BioHealth Informatics, IUPUI

On 23 October 2015 at 07:51, Lars Helge Øverland <larshe...@gmail.com>
wrote:

> Hi,
>
> just wanted to share a tip on how to dump and restore postgres databases
> using the "directory" format which allows for parallel jobs - much faster
> on multi-core machines:
>
> *dhis2db = db name*
> *dhis = db user*
> *dbdump = demo database output name*
> *-j 4 = 4 parallel jobs*
> *-Fd = directory format*
>
> *Dump:*
>
> pg_dump *dhis2db* -Fd -U dhis -T analytics* -j 4 -f *dbdump*
>
> *Restore:*
>
> pg_restore -d *dhis2db* -U dhis -j 4 *dbdump*
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org>
>
>
> --
> Mailing list: https://launchpad.net/~dhis2-devs-core
> Post to : dhis2-devs-core@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs-core
> More help   : https://help.launchpad.net/ListHelp
>
>
-- 
Mailing list: https://launchpad.net/~dhis2-devs-core
Post to : dhis2-devs-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs-core
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] java 8 required from dhis 2.20

2015-02-25 Thread Saptarshi Purkayastha
+1 for this... Java 8 has nice language features as well as excellent
runtime JVM improvements
DHIS2 community will benefit a lot from this move.

---
Regards,
Saptarshi PURKAYASTHA

On 25 February 2015 at 08:11, Lars Helge Øverland larshe...@gmail.com
wrote:

 Hi,

 Java 7 reaches end of life on April 2017 and will not receive free updates
 beyond that.

 http://www.oracle.com/technetwork/java/eol-135779.html

 Java 8 also comes with a range of new features we would like to take
 advantage of.

 https://www.techempower.com/blog/2013/03/26/everything-about-java-8/

 As a result we will start using Java 8 from DHIS 2.20. (The next release
 is 2.19). This means that to deploy 2.20 you will have to update the Java
 SDK on your server to Java 8. Java 8 is already available for Linux,
 Windows and Mac OS X.

 regards,

 Lars


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Support for Java version 7 terminates in April 2015

2015-01-26 Thread Saptarshi Purkayastha
Hi Calle,
For my very small demo dataset and random clicking on some links, DHIS2
works fine on 1.8.0_25
So, it is working well for me. What in Java 8_u25 was not working for you?
May be some unit tests were failing?

---
Regards,
Saptarshi PURKAYASTHA

On 25 January 2015 at 14:53, Calle Hedberg calle.hedb...@gmail.com wrote:

 Hi

 I just got an update notification for java 8.31 - and with it a
 notification that Java 7 will no longer be supported after April 2015.

 I had no problems running DHIS2 under 8.05, then it would not run
 under 8.25 (some switches required, I guess), so I reverted back to
 Java 7.71 (now 7.75).

 Any feedback on issues running DHIS2 under 8.31 would be appreciated -
 if it runs fine, it would make sense to shift to Java 8 in an
 organised manner during the first 3 months of 2015.

 Regards
 Calle


 ***

 Calle Hedberg

 46D Alma Road, 7700 Rosebank, SOUTH AFRICA

 Tel/fax (home): +27-21-685-6472

 Cell: +27-82-853-5352

 Iridium SatPhone: +8816-315-19274

 Email: calle.hedb...@gmail.com

 Skype: calle_hedberg

 ***

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Oracle database support

2014-10-06 Thread Saptarshi Purkayastha
Hi,

There was some discussion back in 2010 on the mailing list that Oracle
dialect was being worked on.

Does someone have the dialect? I just checked and we don't have the
implementation in trunk. Only Postgres, MySQL, H2 and HSQL. There is also a
reference in amplecode quick library where there is a map of supported DBs
and it has MSSQL in it, but its correlated dialect isn't in the codebase.
Oracle 10g is very close to Postgres 9 I think, so that should be fairly
easy to add I think?

--Saptarshi Purkayastha

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] interesting article on ssh port numbersh

2014-09-28 Thread Saptarshi Purkayastha
Thanks Lars, for sharing the interesting article.
I also recommend that people use fail2ban http://www.fail2ban.org. It is
a simple tool that looks at logs to fend brute force

---
Regards,
Saptarshi PURKAYASTHA


On 28 September 2014 16:37, Bob Jolliffe bobjolli...@gmail.com wrote:

 Some interesting thoughts but i wouldn't buy his main argument (I've read
 it before).  The last comment by 'Dicer; is important.  Of course your sshd
 can be discovered (using nmap or the like) but it takes a little time.
 Time which is generally more profitably spent hunting down the next port 22
 listener.

 For the annoying -P problem of scp (and other progarms like rsync) which
 expect ssh on port 22, that's what ~/.ssh/config is for :-)  See
 http://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/
 for example.

 Having said that its really important to know that shifting the port is
 one of a number of measures, not a solution in itself - the more important
 being disabling root access and password authentication.

 Port knocking is clever .. used to do this on SA gov periphery firewalls.
 Haven't really bothered in recent times, but maybe something to consider in
 these turbulent times.

 Meanwhile i continue to shift my ssh port and encourage others to do the
 same :-)

 Cheers
 Bob

 On 28 September 2014 17:09, Lars Helge Øverland larshe...@gmail.com
 wrote:

 Why putting ssh on another port than 22 is a bad idea:


 https://www.adayinthelifeof.nl/2012/03/12/why-putting-ssh-on-another-port-than-22-is-bad-idea/

 Lars

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] halvdan grelland joins as developer

2014-06-20 Thread Saptarshi Purkayastha
Welcome Halvdan... Good to hear you join the team!!

---
Regards,
Saptarshi PURKAYASTHA


On 20 June 2014 15:25, Lars Helge Øverland larshe...@gmail.com wrote:

 Hi all,

 I have the pleasure to announce that Halvdan Grelland has joined the team
 as software developer on a 30% basis.

 Halvdan is currently a student at University of Oslo and has demonstrated
 solid skills during the dhis-related course. He has previously worked for
 the norwegian defence research establishment
 http://www.ffi.no/en/Sider/default.aspx.

 We are happy to get you on the team. Welcome!

 regards,

 Lars



 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Import Demo Database in live version

2014-05-27 Thread Saptarshi Purkayastha
Hi Gianluca,

It is also advisable to use deploy dhis.war to tomcat instead of using the
dhis-live
You will still have to do the following.

You should download the demo database from here -
http://www.dhis2.org/downloads
Install PostgreSQL and have it running.
Check the sample database section. There are also instructions to import
either using the pgAdmin restore or psql statement.

Please look at instructions to modify from h2 to postgres here -
http://www.dhis2.org/development
Look in the Database setup section and you will have to change the
hibernate.properties file. This should be in the dhis-live/conf folder.

---
Regards,
Saptarshi PURKAYASTHA
My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 27 May 2014 15:07, gian_c...@libero.it gian_c...@libero.it wrote:

 Hi,

 I' m Gianluca Carbone and I'm working for the GSOC2014. I would like to
 import
 demo dastabase in my live version of DHIS2. Could anyone explain the steps
 to
 do it ?

 Thank You in advance.

 Regards,
 Gianluca Carbone.

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [GSoC 2014] Congratulations and Welcoming Students to DHIS2

2014-04-23 Thread Saptarshi Purkayastha
Dear Students and Mentors,

As most of you might have seen, DHIS2 is participating in its 2nd year as a
mentoring organization for Google Summer of Code 2014. Last year we had 4
students, all of whom developed useful functionality during the summer.

Congratulations to the 6 students who will work with us over the summer!!
We hope that you will have a lot of fun and the community will appreciate
your work at the end of this summer. The following projects and students
are below:

1. Jonas Hörsch https://code.launchpad.net/~coroa - A decision-support
tool for stronger immunization program
Mentors: Sophie Newland, Richard Anderson

2. Kamil Kwasny - Scriptable SMS parsing
Mentors: Ngô Thanh Long, Peder Andreas Nergaard

3. Araz Abishov http://arazabishov.wordpress.com/ - Enhanced android
client for DHIS2
Mentors: Morten Olav Hansen, Olav Poppe, Peder Andreas Nergaard,

4. Gianluca Carbone http://www.gianlucacarbone.it - WebDriver based
framework for automated test scripts
 Mentors: Saptarshi Purkayastha, Jan Henrik Øverland

5. Anum Hassan http://dhis2gsoc.blogspot.co.uk/ - Allow data entry from
OpenDataKit
Mentors: Jim Grace, Saptarshi Purkayastha

6. J. Ricardo de Juan Cajide http://ricardodejuan.wordpress.com/ - JSON
enabled storage API
Mentors: Morten Olav Hansen, Abyot Gizaw


The next few weeks, as mentioned in the GSoC
timelinehttp://www.google-melange.com/gsoc/events/google/gsoc2014,
is the *Community Bonding Period till 19th May*. We believe this is the
most crucial period and is an important indicator if the student will do
well over the summer.

As students, you should ask questions, improve your GSoC application, make
project deliverables, understand the project goals and ways to reach it.
You should *create a blog* and announce it to the developers list, so that
others from the community can follow your work. As mentors, you should
answer questions from your students and *at least have one Skype/phone
call*with them to explain to them your vision about the project. The
reason why
Google runs GSoC (and we agree) is to make current students become long
term contributors to open-source. This happens when you communicate and
become active community players.

Congratulations again to the students!!

---
Regards,
Saptarshi and Andreas
(DHIS2 Org Admins for GSoC 2014)
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] GSOC Idea

2014-03-03 Thread Saptarshi Purkayastha
Hi Aagam,

Thank you for your interest in DHIS 2 project. Please signup for the
developers mailing list
Contribute to discussions there and try to play with DHIS 2 and
understanding the concepts of data modeling.
You should also download the latest trunk and build DHIS2 and deploy it on
tomcat.
You should look at the project ideas - http://dhis2.org/gsoc2014

Once you understand the scope of the application, you will be able to make
suggestions to what mobile apps can be useful to DHIS2.
You should make these suggestions in your GSoC application.

Feel free to write to the list and discussing your app ideas with the
community.


---
Regards,
Saptarshi PURKAYASTHA


On 25 February 2014 21:59, Aagam S Shah aaga...@gmail.com wrote:

 Hey Saptarshi,

 I am Aagam Shah from DA-IICT 3rd year B.Tech student. I saw thatDHIS is
 selected as an organization for GSOC and you are one of the mentor of
 it. Going through the ideas of Android - the field in which I have good
 experience, the idea for creating Mobile App using GPS seemed good for
 me.

 A brief introduction on my projects:
 IIT Delhi Intern: I interned at IIT Delhi for Developing an Android App
 for the Delhi Drainage Master Plan which is of Delhi Gov. I was the
 Android Leader at the project and developed the app which you can find
 here. In that we used Google Maps, Cloud based server and man more
 technologies.
 Pill Scheduler: An android app that schedules the Pill and alarms the
 user when it is the time to take pills and shows the pill information.
 SIG Android: I have been teaching Android to students in my college
 where me and some other friends have created Student Interest Group for
 Android.
 Webmaster of Google Developers Group- DA-IICT
 Contributor at WordPress-Android: Implemented Pull-To-Refresh Posts,
 added support for G+,Picasa images, and fixed many bugs.

 I would like to know that, is there any work should I start on so that
 it gives you clear vision on the project. Also IRC- chat would be
 suitable to discuss more ideas on it.

 Waiting for your reply,

 Regards,
 Aagam Shah
 --
 This message was sent from Launchpad by
 Aagam S Shah (https://launchpad.net/~aagam94)
 using the Contact this user link on your profile page
 (https://launchpad.net/~sunbiz).
 For more information see
 https://help.launchpad.net/YourAccount/ContactingPeople

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [GSoC-2014] Android and HTML5 features

2014-02-28 Thread Saptarshi Purkayastha
Hi Abhinav,

You should try and understand the data management in DHIS2 and the
different modules.
See the demo here - http://apps.dhis2.org/demo

You can look at our existing Android mobile applications:
Data Capture for DHIS2 -
https://code.launchpad.net/~araz-abishov-gsoc/dhis2/dhis2-android-app
- Download
App https://play.google.com/store/apps/details?id=org.dhis2.mobilehl=en
Or smartphone interfaces - http://apps.dhis2.org/demo/mobile/
We also have JavaME apps. Project page is here :-
https://launchpad.net/dhis-mobile

Feel free to ask questions regarding any of these apps or places where you
get stuck.
In the meantime, before the application process starts, it will be good if
you could share your experiences of starting DHIS2 development... what are
the difficult parts, what are the challenges, what frameworks are difficult
to understand etc.
This will be useful to other students who are starting to be DHIS 2
developers.

---
Regards,
Saptarshi PURKAYASTHA


On 27 February 2014 04:19, gizmoabhi...@gmail.com wrote:

  I am a 3rd year engineering student from BITS Pilani, India. I am
 interested in taking up the project for development of android / html5
 services for smartphones. I have lots of experience in mobile app
 development on android and windows platform.
 Can you guide me where I can get started and form the basic concept of the
 mobile application?


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [GSOC 2014] Allow data entry from OpenDataKit / JSON enabled storage API

2014-02-28 Thread Saptarshi Purkayastha
Hi Anum,

Welcome to the project. Thank you for your interest in DHIS 2 development.
While the student applications period is nearing, we'd like to see that
you've become comfortable with DHIS 2 development.
That means being able to build DHIS 2 using maven, using launchpad and
coding with eclipse.

OpenDataKit (ODK) http://opendatakit.org is a project that uses XForms
for form layout and sending data. It is an Android application that used by
different projects.
The goal of the project that you mention is interoperability with XForm
clients like ODK and other JavaROSA complaint client
You should try to understand the XForms format -
http://opendatakit.org/help/form-design/

Once you've understood the format, the next step would be to
generate/transform (XML transform) from our DHIS 2 XML
(DXF2)http://www.dhis2.org/doc/snapshot/en/user/html/ch28s06.htmlinto
XForms.
Once you are able to generate XForms, that should be opened in ODK and data
entry can be done. After data entry ODK posts the data to a DHIS 2 server
that is able to take the XForms and import it into the DHIS2 datavalues.

I realize that most of what I mentioned above is difficult to grasp... but
putting some efforts to understand the broader picture will help you
understand what needs to be done.

In the meantime, before the application process starts, it will be good if
you could share your experiences of starting DHIS2 development... what are
the difficult parts, what are the challenges, what frameworks are difficult
to understand etc.
This will be useful to other students who are starting to be DHIS 2
developers.


---
Regards,
Saptarshi PURKAYASTHA



On 28 February 2014 18:33, Anum Naveed anumnaveed1...@gmail.com wrote:

 Hi All,

 I am a female student of Masters in computer science. Prior to that I
 graduated with bachelors in computer science (4 years) with CGPA 3.61 on a
 scale of 4. I have extensive programming experience mainly in Android game
 development, JAVA, HTML and C/C++. I have worked with MySQL and NoSQL
 MongoDB in various projects.

 I am interested in two project ideas which looks really exciting to me.
 Allow data entry from OpenDataKit
 JSON enabled storage API

 I am setting up DHIS framework on my home server to get familiarise with
 the code base. I will develop the initial understanding of the problem and
 write up the proposed solution proposal. Please can you give me initial
 pointers on how to begin with the android project code for 'Allow data
 entry from OpenDataKit'. I mainly want to know which particular code base
 shall I download for that.
 Thanks for all the help.
 Looking forward to your reply.
 Best Regards,
 Anum

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] GSOC: Android and HTML5 features (Project)

2014-02-28 Thread Saptarshi Purkayastha
Hi Gaurav,

Thank you for your interest in DHIS 2.
Please read other emails that have been sent to GSoC students on the list.

You should start with building and deploying DHIS 2. Document and share
this on the list so other students starting out can find it useful.
Since you are interested in mobile apps packaged using Cordova, look at
some example projects that have done that in DHIS2.
Here are some links:
 -
https://wiki.uio.no/mn/ifi/inf5750/index.php/Trust_us,_we%27re_Scientists!_Visualization/Description
 -
https://wiki.uio.no/mn/ifi/inf5750/index.php/%28APE%29_Geolocation_data_entry
 - https://wiki.uio.no/mn/ifi/inf5750/index.php/Geo-3
 -
https://wiki.uio.no/mn/ifi/inf5750/index.php/Mandalorians_Geolocation_data_entry

Get some good ideas and include them as part of the GSoC application.

---
Regards,
Saptarshi PURKAYASTHA



On 28 February 2014 10:33, Gaurav gauravsain...@gmail.com wrote:

  Hello Team,

 I am under-graduate planning to participate in GSOC 2014. I found this
 project (Android and HTML5 features) very interesting and is keen to work
 on this project as my GSOC project this summer. I want some initial help
 and guide, so how Can I start now and what should be my intial steps, as I
 want to start as soon as possible.

 I am thinking of extending the mobile version, by using Apache Cordova for
 developing a hybrid app. This way we will have same codebase for multiple
 platform (Android, Windows, iOS etc.). The Idea of mine is to use AngularJs
 + IonicFramework to build a Hybrid Application. IonicFramework is
 specifically made for app development using Cordova/Phonegap. It overcomes
 many shortcoming of JQM (like slow behaviour and click/touch problem),
 which mainly was used previously. With AngularJs we have power on routing
 and various other features. I am currently working on two application using
 this same framework. I have integrated Google Maps, geolocation API and
 handled data using JSON request/response in one of this application.
 Other than the client side languages, I have expirince of working in
 JavaEE, PostgreSQL, Maven and Ant build Tools, Git and SVN and Eclipse.
 Below are my linkedIn profile.
 LinkedIn: http://in.linkedin.com/pub/gaurav-saini/37/687/254
 I am really very excited to work on this project with this new framework
 in scope. I have researched a lot before and found this perfect for modern
 smart-phones.

 --
 Regards,
 *Gaurav Saini*

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [GSoC 2014] Questions regarding Android and HTML5 features

2014-02-28 Thread Saptarshi Purkayastha
Hi Bhargav,

Didnt miss it, just wanted to gather a few more students before replying :)
Please look at the other email to which I just replied. It has some example
apps that have been attempted. Some are rudimentary, but those were built
in 3 weeks. You've got 3 months!

DHIS2 has a number of features that still do not have a mobile interface.
The DHIS 2 dashboard is one such place... so a mobile dashboard will be
useful. A messaging (DHIS2 messages) mobile app will be useful. Also an app
that can share and comment on interpretations will be useful. You can also
come up with your own suggestions.

Do read the other emails, to see what you can do till the GSoC application
process starts.

---
Regards,
Saptarshi PURKAYASTHA


On 28 February 2014 19:16, Bhargav Golla bhargav.go...@gmail.com wrote:

 Hello

 I hope my mail hasn't missed anyone's attention. I would be very much
 obliged if someone could provide their feedback regarding these questions.

 Thanks


 Bhargav Golla
 Developer. Freelancer.
  Github http://www.github.com/bhargavgolla | 
 LinkedINhttp://www.linkedin.com/in/bhargavgolla
  | Website http://www.bhargavgolla.com/


 On Wed, Feb 26, 2014 at 11:14 AM, Bhargav Golla 
 bhargav.go...@gmail.comwrote:

 Hello

 Congrats to DHIS on being selected as a mentor organization.

 I am Bhargav Golla, a graduate student in Computer Science at Clemson
 University, US. I am an avid mobile and web app developer. I worked on
 Phonegap apps during GSoC 2012 and GSoC 2013 with Apache Software
 Foundation and have developed many Windows Phone apps. The native android
 app I developed for Exotel (a startup in cloud telephony in India) is still
 being actively used by Exotel's clientele of over 1000 firms. My Github
 account http://github.com/bhargavgolla will provide much more details
 about my developer expertise. I am particularly interested in Android and
 HTML5 features ideas at DHIS.

 I have a few questions regarding the Android and HTML5 features idea.

1. I have observed from DHIS website that there is Mobile solution
already available (http://www.dhis2.org/mobile). What other features
are required in this idea?
2. Are we considering developing a native android application instead
of the web application?

 I would be very much obliged if I am provided with answers to these
 questions and whatever questions that may arise in future as they will help
 me in writing a good proposal and in turn get chosen to work with DHIS.

 Regards
 Bhargav Golla
 Developer. Freelancer.
 Github http://www.github.com/bhargavgolla | 
 LinkedINhttp://www.linkedin.com/in/bhargavgolla
  | Website http://www.bhargavgolla.com/



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [GSOC] Scriptable SMS parsing

2014-02-28 Thread Saptarshi Purkayastha
Hi Mayank,

Welcome to the community.
I'm glad to hear that you've completed installation without any issues. I
hope you can help other students resolve issues that they come up with on
the mailing list.

As you might have already seen, DHIS 2 can connect with an SMS gateway.
This is the documentation page -
http://www.dhis2.org/doc/snapshot/en/user/html/ch24s05.html
Most of this work was done by a UiO Master student, Magnus Korvald.
If you've got some time read his thesis -
https://www.duo.uio.no/bitstream/handle/10852/37426/korvald_master.pdf?sequence=1

The goal of the project is to be able to read incoming SMS through a
scripting language. A user should be able to write rules and map incoming
text to DHIS2 data elements.
Your experience from natural language processing could be useful, since you
can give us ideas on how to improve SMS data detection.

Long and Peder Andreas will be able to tell you more, if you can come up
with more concrete suggestions.

---
Regards,
Saptarshi PURKAYASTHA


On 26 February 2014 23:45, Mayank Jain mayankkrj...@gmail.com wrote:

 Hi,
 I am pre-final year student at IIIT-Hyderabad , India pursuing my B Tech
 Honors and MS in Natural Language Processing field. I have been involved
 with Open-Source development  since past one year and also participated in
 GSOC - 13 with Sahana Software Foundation.
 I am interested in working for DHIS2 this summer on the project Scriptable
 SMS parsing.I would be very much obliged if someone could guide me on how
 to proceed on this project.
 I am done with the installation part and currently I am going through the
 documentation.









 *Regards,Mayank JainIIIT-H, Hyderabad +91-7799144432
 %2B91-7799144432http://www.linkedin.com/in/mayankkrjain
 http://www.linkedin.com/in/mayankkrjain https://github.com/mayankkrjain/
 https://github.com/mayankkrjain/https://launchpad.net/~mayankkrjain
 https://launchpad.net/~mayankkrjain *


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [GSoC] DHIS2 - JSON enabled storage API

2014-02-28 Thread Saptarshi Purkayastha
Hi Ricardo,

Welcome to the DHIS2 community.
Building from source, installing and playing with DHIS 2 will go a long way.
This will help you understand data modeling and the terms used in DHIS 2.

Do read the other emails that have been sent to the list to GSoC aspirants.

---
Regards,
Saptarshi PURKAYASTHA


On 25 February 2014 20:38, J. Ricardo de Juan Cajide 
jricardo.dej...@gmail.com wrote:

 Hi,

 my name is Ricardo de Juan, I am currently finishing my Computer Science
 Engineering  in University of A Coruña (Spain).
 I have been studying a whole year in NTNU (Norway) like exchange student.

 At present, I am programming my own idea to submit as final project in my
 computing engineering, it's about a agile methodology web application in
 Django. Also I have worked with:
 - J2EE technologies like Spring, Hibernate, JDBC.
 - PostgreSQL, MySQL, Oracle.
 - REST, SOAP
 - XML JSON

 https://github.com/Raicar/

 Then, I am interested on idea JSON enabled storage API, I think
 medicine's SW is so interesting to help middle -income countries in their
 health system saving lives.

 Therefore, I will start to compile and to install DHIS2 code, for that, I
 will follow the next instructions:

 http://www.dhis2.org/development

 Next, I will read DHIS2 documentation:

 http://www.dhis2.org/documentation

 I would like to know what more I need to apply GSoC 2014 with us in DHIS2
 project.

 Best regards,

 Ricardo.


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [GSoC 2014] Questions regarding Android and HTML5 features

2014-02-28 Thread Saptarshi Purkayastha
Hi Germine,

Sharing requirements and user-interface mockups will be helpful to work in
teams.
If your work is going to be open-source, any GSoC student can work with
your codebase.
The rule for GSoC is that the student should be doing independent work,
such that the student's code can be verified to be their own.

The GSoC roadmap is 3-months and if you are looking to start implementation
in 2 weeks, it will be difficult to expect that from GSoC work.
The GSoC student will be able to use your work and build better solutions
based on your feedback.
This is our goal with student participation, such that they become better
community players.
You may also ask your 2 students to apply to the GSoC programme. We cant
guarantee slots, as we expect it to be highly competitive.

You may want to create blueprints in launchpad for a unit of work related
to the project.
 If you already have a project tracker (like github, JIRA etc.), we can
also use that.

---
Regards,
Saptarshi PURKAYASTHA


On 28 February 2014 19:52, Seide, Germine gse...@futuresgroup.com wrote:

  Hello team,
 It is a good idea to have more DHIS 2 features available on mobile. I am
 working with 2 students on mainly the dashboard and customize report for
 DHIS 2. We need to finalize the interfaces and we were planning to start
 implementation in two weeks.
 How can we join the team?
 Germine


  Le 28 févr. 2014 à 08:56, Saptarshi Purkayastha sun...@gmail.com a
 écrit :

Hi Bhargav,

  Didnt miss it, just wanted to gather a few more students before replying
 :)
  Please look at the other email to which I just replied. It has some
 example apps that have been attempted. Some are rudimentary, but those were
 built in 3 weeks. You've got 3 months!

  DHIS2 has a number of features that still do not have a mobile interface.
 The DHIS 2 dashboard is one such place... so a mobile dashboard will be
 useful. A messaging (DHIS2 messages) mobile app will be useful. Also an app
 that can share and comment on interpretations will be useful. You can also
 come up with your own suggestions.

  Do read the other emails, to see what you can do till the GSoC
 application process starts.

 ---
 Regards,
 Saptarshi PURKAYASTHA


 On 28 February 2014 19:16, Bhargav Golla bhargav.go...@gmail.com wrote:

 Hello

  I hope my mail hasn't missed anyone's attention. I would be very much
 obliged if someone could provide their feedback regarding these questions.

  Thanks


  Bhargav Golla
 Developer. Freelancer.
 Github http://www.github.com/bhargavgolla | 
 LinkedINhttp://www.linkedin.com/in/bhargavgolla
  | Website http://www.bhargavgolla.com/


   On Wed, Feb 26, 2014 at 11:14 AM, Bhargav Golla 
 bhargav.go...@gmail.com wrote:

 Hello

  Congrats to DHIS on being selected as a mentor organization.

  I am Bhargav Golla, a graduate student in Computer Science at Clemson
 University, US. I am an avid mobile and web app developer. I worked on
 Phonegap apps during GSoC 2012 and GSoC 2013 with Apache Software
 Foundation and have developed many Windows Phone apps. The native android
 app I developed for Exotel (a startup in cloud telephony in India) is still
 being actively used by Exotel's clientele of over 1000 firms. My Github
 account http://github.com/bhargavgolla will provide much more details
 about my developer expertise. I am particularly interested in Android and
 HTML5 features ideas at DHIS.

  I have a few questions regarding the Android and HTML5 features idea.

1. I have observed from DHIS website that there is Mobile solution
already available (http://www.dhis2.org/mobile). What other features
are required in this idea?
2. Are we considering developing a native android application
instead of the web application?

 I would be very much obliged if I am provided with answers to these
 questions and whatever questions that may arise in future as they will help
 me in writing a good proposal and in turn get chosen to work with DHIS.

  Regards
   Bhargav Golla
 Developer. Freelancer.
 Github http://www.github.com/bhargavgolla | 
 LinkedINhttp://www.linkedin.com/in/bhargavgolla
  | Website http://www.bhargavgolla.com/



   ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Support for comma delimited identifiers in the API?

2013-12-11 Thread Saptarshi Purkayastha
Spring calls these Matrix Variables and is very easy to support using
Spring MVC.
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.htm

I like the idea.

---
Regards,
Saptarshi PURKAYASTHA

On 11 December 2013 05:49, Jason Pickering jason.p.picker...@gmail.comwrote:

 Hi there.

  I have been working with another REST API recently and one of the
 features is the support for comma delimited lists as part of a API request.
 From this example from the docs..

 curl 
 http://apps.dhis2.org/dev/api/completeDataSetRegistrations?dataSet=pBOMPrpg1QXdataSet=BfMAe6ItzgtstartDate=2013-01-01endDate=2013-01-31orgUnit=YuQRtpLP10IorgUnit=vWbkYPRmKySchildren=true;
  -H Accept:application/xml -u admin:district -v


 It would be useful to support this request as well..

 curl 
 http://apps.dhis2.org/dev/api/completeDataSetRegistrations?dataSet=pBOMPrpg1QXdataSet=BfMAe6ItzgtstartDate=2013-01-01endDate=2013-01-31orgUnit=YuQRtpLP10I,vWbkYPRmKySchildren=true;
  -H Accept:application/xml -u admin:district -v

 In some cases, we have many dozens or hundreds of orgunit UIDs in the
 requests, and it might be just a bit simpler to have these delimited.

 Thoughts?

 Regards,
 Jason






 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Support for comma delimited identifiers in the API?

2013-12-11 Thread Saptarshi Purkayastha
Infact the , (comma) is meant to be used for this, as is mentioned here:
http://tools.ietf.org/html/rfc3986#section-3.3 . See last paragraph, last 5
sentences.
Also Spring docs suggest using commas -
http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-ann-matrix-variables

---
Regards,
Saptarshi PURKAYASTHA


On 11 December 2013 13:13, Lars Helge Øverland larshe...@gmail.com wrote:

 Hi Jason,

 thanks for the suggestion. No doubt there is a need for a compact format
 for items.

 Only problem is that the , character is defined as reserved in the URL
 spec:

 http://www.ietf.org/rfc/rfc1738.txt p2.2

 and causes e.g. spring mvc to split the value into multiple query params.

 For analytics we use ; for delimiting, which is also reserved, but is at
 least not causing trouble with spring mvc.

 Would ; be okay? If so please write a blueprint.

 Lars






 On Wed, Dec 11, 2013 at 5:49 AM, Jason Pickering 
 jason.p.picker...@gmail.com wrote:

 Hi there.

  I have been working with another REST API recently and one of the
 features is the support for comma delimited lists as part of a API request.
 From this example from the docs..

 curl 
 http://apps.dhis2.org/dev/api/completeDataSetRegistrations?dataSet=pBOMPrpg1QXdataSet=BfMAe6ItzgtstartDate=2013-01-01endDate=2013-01-31orgUnit=YuQRtpLP10IorgUnit=vWbkYPRmKySchildren=true;
  -H Accept:application/xml -u admin:district -v


 It would be useful to support this request as well..

 curl 
 http://apps.dhis2.org/dev/api/completeDataSetRegistrations?dataSet=pBOMPrpg1QXdataSet=BfMAe6ItzgtstartDate=2013-01-01endDate=2013-01-31orgUnit=YuQRtpLP10I,vWbkYPRmKySchildren=true;
  -H Accept:application/xml -u admin:district -v

 In some cases, we have many dozens or hundreds of orgunit UIDs in the
 requests, and it might be just a bit simpler to have these delimited.

 Thoughts?

 Regards,
 Jason







 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS2 WSDL?

2013-11-27 Thread Saptarshi Purkayastha






DHIS2 provides a REST or REST-like interface over HTTP.
So with just those 4 obvious verbs, I dont see that we really need a WSDL.

To send data from an EHR to DHIS2, you should create a report within your EHR 
to match the reporting frequency, data elements + catcombos and add those as an 
XML dataValueSet
This is documented here - 
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s09.html

You would probably need to exchange metadata before to get the UUIDs for the 
dataelements etc.
If this is fairly fixed, should be fairly easy... if it isn't fixed you should 
read the metadata using - 
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s05.html
and then read from those and compare them with your EHR.

It can be quite challenging to make it work in the first pass... but if you 
come back with specific questions, once you start integrating, we can help you 
better.

---
Regards,
Saptarshi PURKAYASTHA


 From: eddi...@gmail.com
 To: sun...@gmail.com
 Subject: DHIS2 WSDL?
 Date: Wed, 27 Nov 2013 12:21:24 +
 
 Hi,
 
 Does DHIS2 have a WSDL that I can use? I want to build a module in our
 java based EHR system that will automatically upload data into our DHIS2
 instance.
 
 Eddie
 -- 
 This message was sent from Launchpad by
 Edwin Mulwa (https://launchpad.net/~eddiemu)
 using the Contact this team's admins link on the DHIS 2 Users team page
 (https://launchpad.net/~dhis2-users).
 For more information see
 https://help.launchpad.net/YourAccount/ContactingPeople


  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS2 WSDL?

2013-11-27 Thread Saptarshi Purkayastha
Hi Murod,

Good to hear from you.
The standard way in which WSDL is used (atleast 2.0 in context of SOAP), is to 
describe the Service in terms of Endpoints, Binding, Interface, Operation and 
Types. 
Most of this is self-descriptive in REST paradigm and infact not recommended 
for RESTful services that should support HATEOAS. I know there is the WADL 
standard, but its a rarely used standard and doesn't have much to offer for 
well documented web services. 

So, I wouldn't imagine that the WSDL document will give metadata information. A 
WSDL document allows clients of web services to generate stubs surrounding the 
service.
Instead, I think an XForm or DHISReport template will represent the metadata 
information in a better way.

I agree its not 4 words!! But once Edwin and his team starts the integration 
process and comes back with specific questions, we can guide them better.

---
Regards,
Saptarshi PURKAYASTHA
Date: Wed, 27 Nov 2013 20:01:27 +0500
Subject: Re: [Dhis2-devs] DHIS2 WSDL?
From: mlati...@gmail.com
To: eddi...@gmail.com
CC: sun...@gmail.com; dhis2-devs@lists.launchpad.net

Hi Saptarshi,
I thought the whole point of using WSDL was to answer to You would probably 
need to exchange metadata before to get the UUIDs for the dataelements etc.
If this is fairly fixed, should be fairly easy... if it isn't fixed you should 
read the metadata using

and all is fairly easy after. That is not just 4 words, that is lots of 
coordination and research.
regards,murod

On Wed, Nov 27, 2013 at 7:44 PM, Edwin Mulwa eddi...@gmail.com wrote:

Hi Saptarsh,

I have the same thought process as you have described below. I will let the 
group know how it progresses and/or if I have any questions.


Thanks a lot!



Edwin

 

On Wed, Nov 27, 2013 at 4:31 PM, Saptarshi Purkayastha sun...@gmail.com wrote:












DHIS2 provides a REST or REST-like interface over HTTP.
So with just those 4 obvious verbs, I dont see that we really need a WSDL.

To send data from an EHR to DHIS2, you should create a report within your EHR 
to match the reporting frequency, data elements + catcombos and add those as an 
XML dataValueSet



This is documented here - 
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s09.html

You would probably need to exchange metadata before to get the UUIDs for the 
dataelements etc.



If this is fairly fixed, should be fairly easy... if it isn't fixed you should 
read the metadata using - 
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s05.html



and then read from those and compare them with your EHR.

It can be quite challenging to make it work in the first pass... but if you 
come back with specific questions, once you start integrating, we can help you 
better.




---
Regards,
Saptarshi PURKAYASTHA


 From: eddi...@gmail.com
 To: sun...@gmail.com



 Subject: DHIS2 WSDL?
 Date: Wed, 27 Nov 2013 12:21:24 +
 
 Hi,
 
 Does DHIS2 have a WSDL that I can use? I want to build a module in our
 java based EHR system that will automatically upload data into our DHIS2



 instance.
 
 Eddie
 -- 
 This message was sent from Launchpad by
 Edwin Mulwa (https://launchpad.net/~eddiemu)



 using the Contact this team's admins link on the DHIS 2 Users team page
 (https://launchpad.net/~dhis2-users).
 For more information see



 https://help.launchpad.net/YourAccount/ContactingPeople


  



___

Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help   : https://help.launchpad.net/ListHelp



  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Timestamp returning date in web api call for datavlaue set

2013-11-19 Thread Saptarshi Purkayastha
Rajib probably meant for this Web API call.
Trying out the Web API Call mentioned in the doc on Reading Large bulks of 
data value
http://apps.dhis2.org/demo/api/dataValueSets.xml?dataSet=pBOMPrpg1QXdataSet=BfMAe6ItzgtstartDate=2013-01-01endDate=2013-01-31orgUnit=YuQRtpLP10IorgUnit=vWbkYPRmKySchildren=true

Yes, I can see the timestamp lists only date and I agree would be good that its 
a full timestamp instead of date only.

---
Regards,
Saptarshi PURKAYASTHA

From: knu...@gmail.com
Date: Tue, 19 Nov 2013 10:13:57 +0100
To: rajibs...@yahoo.com
CC: dhis2-devs@lists.launchpad.net
Subject: Re: [Dhis2-devs] Timestamp returning date in web api call for 
datavlaue set

Hi Rajib,
Looking at the following query, there is in fact no dataelement lastupdated for 
dataValueSets, perhaps you are referring to completedDate?


http://apps.dhis2.org/demo/api/dataValueSets.xml?dataSet=pBOMPrpg1QXperiod=201201orgUnit=DiszpKrYNg8


Knut



On Mon, Nov 18, 2013 at 1:28 PM, Rajib Sengupta rajibs...@yahoo.com wrote:


Hello,


We
 are using DHIS2 2.13 as the backend system for Kolkata Medical 
Emergency System. The concept note of the project can be found here: 
http://www.missionarogya.org/p/kmes.html. The online portal is using the 
web-apis

The datavaluesets web-api calls are returning the lastupdated timestamp for the 
dataelement. But it returns it as a date instead of a timestamp as following: 
timestamp=2013-10-16



Example calls from the demo: 
http://apps.dhis2.org/demo/api/dataValueSets?dataSet=pBOMPrpg1QXperiod=201201orgUnit=DiszpKrYNg8



http://apps.dhis2.org/demo/api/dataValueSets?dataSet=pBOMPrpg1QXstartDate=2013-10-15endDate=2013-10-17orgUnit=DiszpKrYNg8orgUnit=DiszpKrYNg8children=false




We will really appreciate if this can be solved.


Thanks,

Rajib


___



Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help   : https://help.launchpad.net/ListHelp




-- 
Knut StaringDept. of Informatics, University of Oslo+4791880522http://dhis2.org



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp   
  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Timestamp returning date in web api call for datavlaue set

2013-11-19 Thread Saptarshi Purkayastha
I feel it would be good as a full ISO 8601 string.
2013-11-19T14:01:54 with or without the timezone.

Surprisingly, in the call that I pasted in my last email, for 3 datavalue there 
is no timestamp attribute.
Also the link which Knut sent doesn't have timestamp attribute. It will be good 
if they are consistent and with timestamp.

I like the lastupdated name instead of timestamp. This also allows to follow-up 
if the values have been changed or not since the last time they were read.

---
Regards,
Saptarshi PURKAYASTHA

From: morte...@gmail.com
Date: Tue, 19 Nov 2013 12:15:41 +0100
Subject: Re: [Dhis2-devs] Timestamp returning date in web api call for 
datavlaue set
To: sun...@gmail.com
CC: knu...@gmail.com; rajibs...@yahoo.com; dhis2-devs@lists.launchpad.net

So what do we want here, a full timestamp as in numbers, or a full ISO 8601 
string? We have had it likes this for several releases now, and it has the 
potential to break external users.
I'm not too happy with the name timestamp, but I guess that's minor..

--
Morten


On Tue, Nov 19, 2013 at 12:08 PM, Saptarshi Purkayastha sun...@gmail.com 
wrote:





Rajib probably meant for this Web API call.
Trying out the Web API Call mentioned in the doc on Reading Large bulks of 
data value
http://apps.dhis2.org/demo/api/dataValueSets.xml?dataSet=pBOMPrpg1QXdataSet=BfMAe6ItzgtstartDate=2013-01-01endDate=2013-01-31orgUnit=YuQRtpLP10IorgUnit=vWbkYPRmKySchildren=true



Yes, I can see the timestamp lists only date and I agree would be good that its 
a full timestamp instead of date only.

---
Regards,
Saptarshi PURKAYASTHA

From: knu...@gmail.com


Date: Tue, 19 Nov 2013 10:13:57 +0100
To: rajibs...@yahoo.com
CC: dhis2-devs@lists.launchpad.net


Subject: Re: [Dhis2-devs] Timestamp returning date in web api call for 
datavlaue set

Hi Rajib,
Looking at the following query, there is in fact no dataelement lastupdated for 
dataValueSets, perhaps you are referring to completedDate?




http://apps.dhis2.org/demo/api/dataValueSets.xml?dataSet=pBOMPrpg1QXperiod=201201orgUnit=DiszpKrYNg8




Knut



On Mon, Nov 18, 2013 at 1:28 PM, Rajib Sengupta rajibs...@yahoo.com wrote:




Hello,




We
 are using DHIS2 2.13 as the backend system for Kolkata Medical 
Emergency System. The concept note of the project can be found here: 
http://www.missionarogya.org/p/kmes.html. The online portal is using the 
web-apis

The datavaluesets web-api calls are returning the lastupdated timestamp for the 
dataelement. But it returns it as a date instead of a timestamp as following: 
timestamp=2013-10-16





Example calls from the demo: 
http://apps.dhis2.org/demo/api/dataValueSets?dataSet=pBOMPrpg1QXperiod=201201orgUnit=DiszpKrYNg8





http://apps.dhis2.org/demo/api/dataValueSets?dataSet=pBOMPrpg1QXstartDate=2013-10-15endDate=2013-10-17orgUnit=DiszpKrYNg8orgUnit=DiszpKrYNg8children=false








We will really appreciate if this can be solved.




Thanks,



Rajib


___





Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help   : https://help.launchpad.net/ListHelp




-- 
Knut StaringDept. of Informatics, University of Oslo+4791880522

http://dhis2.org



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp   
  

___

Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help   : https://help.launchpad.net/ListHelp



  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Web API - Search by id

2013-11-05 Thread Saptarshi Purkayastha
Hi Jason,

I am not opposed to it really and think it would be a nice to have (just as
 it would to be able to search on any property of an object), but what is
 the real use case here?


The real use-case here is that in Custom Data Entry code, I want to make
some Web API calls.
I can easily get the ID on that page and most functionality for web
interface exposes only IDs. This includes the .action URLs that I want to
use through a DHIS2 app.
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Web API - Search by id

2013-11-04 Thread Saptarshi Purkayastha
The Web API documentation here: 
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s04.html
suggests that you can search a resource by its id, code and name. 
I tried the following: 
http://apps.dhis2.org/demo/api/organisationUnits/search/559
But it says 
Object not found for query: 559So, does it only work for code and name and not 
for id?

---
Regards,
Saptarshi PURKAYASTHA
  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Saptarshi Purkayastha



Why would one use the search at all in this case of using the UID?
You can directly get the resource with the UID


http://apps.dhis2.org/demo/api/organisationUnits/ImspTQPwCqd gives Sierra Leone


http://apps.dhis2.org/demo/api/organisationUnits/search/Sierra%20Leone is the 
search

---
Regards,
Saptarshi PURKAYASTHA
From: janhenrik.overl...@gmail.com
Date: Mon, 4 Nov 2013 16:36:25 +0100
Subject: Re: [Dhis2-devs] Web API - Search by id
To: sun...@gmail.com
CC: dhis2-devs@lists.launchpad.net

Hi, try the uid. For a web API user there is only one id (which is the uid). We 
don't want to confuse him by saying uid in the docs as it implies that there 
is an id as well.



On Mon, Nov 4, 2013 at 4:11 PM, Saptarshi Purkayastha sun...@gmail.com wrote:





The Web API documentation here: 
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s04.html
suggests that you can search a resource by its id, code and name. 


I tried the following: 
http://apps.dhis2.org/demo/api/organisationUnits/search/559
But it says 
Object not found for query: 559

So, does it only work for code and name and not for id?

---
Regards,
Saptarshi PURKAYASTHA
  

___

Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help   : https://help.launchpad.net/ListHelp




  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Saptarshi Purkayastha
It is generally considered to be bad practice in the design of Web API or REST 
APIs that two URLs point to the same resources.
Also I would think that people who want to juggle between existing web 
functionality and Web API, would like to use internal IDs to get the UID and 
then use the UID for web API calls. This makes it more flexible to use and 
switch between the two IDs depending what functionality you want to use, either 
from core web interface (uses IDs) or Web API (uses UIDs)

---
Regards,
Saptarshi PURKAYASTHA
From: janhenrik.overl...@gmail.com
Date: Mon, 4 Nov 2013 16:57:26 +0100
Subject: Re: [Dhis2-devs] Web API - Search by id
To: sun...@gmail.com
CC: dhis2-devs@lists.launchpad.net

It's just for convenience. If you make an app that looks up organisation units 
by id, code or name you won't have to change the base url based on the 
parameter.



On Mon, Nov 4, 2013 at 4:47 PM, Saptarshi Purkayastha sun...@gmail.com wrote:








Why would one use the search at all in this case of using the UID?
You can directly get the resource with the UID




http://apps.dhis2.org/demo/api/organisationUnits/ImspTQPwCqd gives Sierra Leone


http://apps.dhis2.org/demo/api/organisationUnits/search/Sierra%20Leone is the 
search

---


Regards,
Saptarshi PURKAYASTHA
From: janhenrik.overl...@gmail.com
Date: Mon, 4 Nov 2013 16:36:25 +0100
Subject: Re: [Dhis2-devs] Web API - Search by id


To: sun...@gmail.com
CC: dhis2-devs@lists.launchpad.net



Hi, try the uid. For a web API user there is only one id (which is the uid). We 
don't want to confuse him by saying uid in the docs as it implies that there 
is an id as well.



On Mon, Nov 4, 2013 at 4:11 PM, Saptarshi Purkayastha sun...@gmail.com wrote:





The Web API documentation here: 
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s04.html
suggests that you can search a resource by its id, code and name. 




I tried the following: 
http://apps.dhis2.org/demo/api/organisationUnits/search/559
But it says 
Object not found for query: 559



So, does it only work for code and name and not for id?

---
Regards,
Saptarshi PURKAYASTHA
  

___

Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help   : https://help.launchpad.net/ListHelp




  

  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Web API - Search by id

2013-11-04 Thread Saptarshi Purkayastha
Brajesh,
There are too many people on this mailing list and I 
think its inappropriate to spam everyone with out-of-topic and in my 
opinion nonsensical sentences.
I consider this trolling and I request you not to send such emails.

Core team,
1. Do you agree this is a valid requirement? or will this never be implemented?
2. Should we just remove search by uid?

---
Regards,
Saptarshi PURKAYASTHA

Date: Tue, 5 Nov 2013 03:54:04 +0800
From: brajesh.mur...@yahoo.com
To: mlati...@gmail.com; l...@roland.bz
CC: dhis2-devs@lists.launchpad.net
Subject: Re: [Dhis2-devs] Web API - Search by id


 Hello Mobilars and Saptarshi,

Agreed with SOAP is now old fashioned, but we should remember one thing that 
DHIS2 development programme and its deployment is primarily focused on 
developing and under developed country to improve their Health, Nutrition and 
Population Sector Program and its primary diameter of development(but not 
radious of development) should be focused on Mother and Child Health (MCH) as 
well as Rehabilitation and Child Health (RCH) Programme only. I am sure in most 
of the developing and under developed countries from kids to their parents even 
house surgeon and clinical doctors still  they are using every day SOAP 
products to make their hands clean and jerms protected. 

But i am little bit surprised
 suspicious with Mobilars and Saptarshi, whether you both are using it or not 
in your day to day life, perhaps quite sure 100 % that Weivao and Alex both 
have started using it every day to make their hands clean and jirms protected. 

Agreed with Mobilars that SOAP is old fashioned now a days and there are so 
much new developments has been happened in this area, but still these days 
there are so many old fashioned concepts are being used in developing and under 
developed countries like long back Fat Man (FM) doped in Nagasaki detonation 
causes nuclear explosion and destroying so many lives, but now a days in so 
many metropolitan cities this FM concept are being used as doping melodious 
musics, news, game commentary various live saving advertisements and so many 
audio programmes to make ppl feel good and enjoy their every day life.  

So in short, i can say, adhering to the old fashioned ideas like SOAP/Knut and 
HTTP/Bob interfaces are
 not as bad as just quickly sticking with alpha release of REST type of several 
applied science products and  api's like examination controllers which are not 
even properly tested and pass user acceptance test for expected requirements. 
For mapping and searching single resource, i think no need to use url as  
co-ordinate geomatory type of concept with multiple url for finding and 
searching one resource kept in DHIS 2 deployed application, rather it should be 
more clear in requirement analysis that target object or resource is static, 
not moving projectile. I think in DHIS 2 application development program, 
resources are in web-apps deployed on web server and its more likely static 
some where at a particular instance of time frame not inside flying machine.

Agreed with Saptarshi, requirement is little tough to use SOAP in DHIS 2 
development programe, perhaps I think more qualified ppls thinks simple 
problems in more complex
 ways, because they put so many bundles of unwanted ideas in their head and 
that comes and reflect in their new development programme areas leads and 
produce new development products and approach of simple thing in more complex 
paralytic ways. And Saptarshi, you can't be-leave, i know some of the Phd 
aspirants rangers engaged in DHIS 2 development programme, they even don't take 
proper shower every day not because they are not aware about its use and 
implications but rather because their head are full with other process and they 
don't have that much of time to go for shower, pardon but their uid's are quite 
confidential in India. Therefor I am expecting SOAP web api module development 
programme should have ppl who are only bachelors and enrolled in DHIS 2 
development programme and should be engaged in any family welfare health 
programme.
If such team is available than its fine if not than it must be introduced in 
DHIS 2 development programe so that
 they can think about the prospective in more likely neutral way not likely 
ionized way.   

Regards,
Brajesh Murari
 


 On Monday, 4 November 2013 10:21 PM, Murod Latifov mlati...@gmail.com 
wrote:
And of course if one does not belong to any of those categories listed by 
Brajesh. To me it looks like no one gets qualified for this job, inside and 
outside DHIS2 team. Very tough requirements Brajesh. Agree with Mobilarsh on 
open source concept though.

Best of luck Brajesh!On Mon, Nov 4, 2013 at 9:35 PM, Lars Kristian Roland 
l...@roland.bz wrote:

Not sure if this was ironic, but in case it wasn't: I respectfully disagree. 
SOAP is old fashioned and should not be woken from the dead. 


But it is open source software, so one may of course implement SOAP

Re: [Dhis2-devs] Error in creating dhis database

2013-10-19 Thread Saptarshi Purkayastha
On this page - http://www.dhis2.org/development
scroll down to database setup and you'll find changes to hibernate.properties 
that needs to be done for MySQL 

---
Regards,
Saptarshi PURKAYASTHA
From: morte...@gmail.com
Date: Fri, 18 Oct 2013 11:47:35 +0200
To: wnthksn...@gmail.com
CC: dhis2-devs@lists.launchpad.net
Subject: Re: [Dhis2-devs] Error in creating dhis database

Hi,
Can you post the log? it sounds like you are running a db in memory, which 
means that the configuration you are using is wrong. Looking at the log will 
give you hints about this.


You can read about postgresql setup 
at:http://www.dhis2.org/doc/snapshot/en/implementer/html/ch08s02.html#d5e451


--
Morten


On Fri, Oct 18, 2013 at 11:44 AM, awanth sen wnthksn...@gmail.com wrote:


Hi,i have setup dhis server in ubuntu, with postgresql database. the server is 
running fine. but whenever my tomcat6 restarts my database is deleted. i have 
to re create the database. the dataabse is empty. can anyone suggest me as to 
why this is happening?



also is there anyway that i can change my database from postgresql to mysql?
thank you
-- 


---
AWANTHIKA SENARATHUndergraduateDepartment of Electronics and Telecommunication 
Engineering


University of Moratuwa



___

Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help   : https://help.launchpad.net/ListHelp





___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp   
  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Wierd ClassCastException on WebAPI calls

2013-10-14 Thread Saptarshi Purkayastha



On certain browsers and client's I've seen a wierd ClassCastException thrown 
from the server.
The status returned is 500.
But this happens only on certain clients in IE8 and Android ICS.
It works fine with Chrome, Firefox etc.

May be its related to accept header and the mimeType its sending for text/html. 
But this is only a wild guess.
Will be good to fix before the 2.13 release.

---
Regards,
Saptarshi PURKAYASTHA

  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Hello, can you help me with a query with web api.

2013-10-01 Thread Saptarshi Purkayastha
Hi Sushil,

I've tried that the dataValueSets allows for reading data values, based on 
startDate and endDate... but not indicators.
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s11.html

So you will have to calculate indicators based on their definition on your own.
There is a small bug that I remember seeing sometime back that throws a 
NullPointerException if you pass only one orgUnit. The workaround is that you 
will have to pass a dummy orgunit (say the root orgUnit) that will not have 
data for the required dataset.

Does this work for you??

---
Regards,
Saptarshi PURKAYASTHA
From: knu...@gmail.com
Date: Tue, 1 Oct 2013 13:05:43 +0200
To: larshe...@gmail.com
CC: sushilch...@gmail.com; dhis2-devs@lists.launchpad.net
Subject: Re: [Dhis2-devs] Hello, can you help me with a query with web api.

Hi Sushil,
The API does not have extensive support for daily data yet. There are no 
relative periods for days, so you have to list them each explicitly, using the 
MMdd format:

http://www.dhis2.org/doc/snapshot/en/user/html/ch25s03.html

Unfortunately, I think this means you cannot get daily data for a whole year in 
one query, because the URL would be more than 9*365 (over 3000) characters 
long. So you would probably have to split it.


I agree that for daily data (what is the use case?), start and end date would 
be much more convenient. But you could build that logic in the javascript that 
constructs the query URL.


Knut



On Tue, Oct 1, 2013 at 12:20 PM, Lars Helge Øverland larshe...@gmail.com 
wrote:


Thanks Namrata for the good explanation.
Sushil, you cannot use start and end dates for the /analytics resource, you 
must use the standard period types (frequencies) as described here. Note that 
you can define fixed and relative periods in your query. Docs here:



http://www.dhis2.org/doc/snapshot/en/user/html/ch25s21.html

Lars




On Mon, Sep 30, 2013 at 6:52 PM, Namrata Nehete n.neh...@gmail.com wrote:



Hi,

To get data for relative period (last week, last month etc) we use,

http://serverURL/api/analytics.json?dimension=dx:Uvn6LCg7dVUdimension=pe:LAST_WEEKfilter=ou:ImspTQPwCqd






To get data by specifying period we use,

http://serverURL/api/analytics.json?dimension=dx:Uvn6LCg7dVUdimension=pe:20130924;20130930filter=ou:ImspTQPwCqd

I am not sure how to get data for indicator by specifying start date and end 
date.






You should ask on dev list for that. 
---
Regards,
Namrata Nehete.


On Mon, Sep 30, 2013 at 3:54 PM, Knut Staring knu...@gmail.com wrote:





Hi Sushil,
Remember you can also ask such questions on the dev list (are you a member)?
DHIS 2 developers dhis2-devs@lists.launchpad.net







Knut




On Mon, Sep 30, 2013 at 11:32 AM, Sushil Chitrakar sushilch...@gmail.com 
wrote:







Hello Namrata, I hope you are all doing well.
I was going though a issue in api checking if you know the solution.








I was trying to get data for couple of indicators on the daily basis from a 
startdate to a enddate or say a yearly data for a whole year daily basis.

I tried putting StartDate and enddate and chekced the daily parameter as well. 
But was not help, can you give a example for this if you have one or suggest me 
a solution.








Let me know.
Regards,Sushil


-- 
Knut StaringDept. of Informatics, University of Oslo+4791880522




http://dhis2.org





___

Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help   : https://help.launchpad.net/ListHelp






-- 
Knut StaringDept. of Informatics, University of Oslo+4791880522http://dhis2.org



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp   
  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Removing camel integration module

2013-10-01 Thread Saptarshi Purkayastha
I would like to see Etags supported with our web API, if removing camel
The point is that then we can listen to the changes using ETags and check 
modification for data when new ETags are generated for the same request.
Even shallow ETags would be a good first pass, if camel is removed.

---
Regards,
Saptarshi PURKAYASTHA
Date: Tue, 1 Oct 2013 11:26:55 +0100
From: bobjolli...@gmail.com
To: dhis2-devs@lists.launchpad.net
Subject: [Dhis2-devs] Removing camel integration module

We have decided to remove the camel integration module from the dhis2 war file 
in the next release.
As the web api has matured it is now more feasible to run the likes of apache 
camel or mule or similar software as external clients of the api. 

RegardsBob

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp   
  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Mobile visualizer

2013-09-26 Thread Saptarshi Purkayastha
Hi Yuriy,

This is excellent. The video looks quite nice.
Its working quite well and I congratulate for the great work done over the 
summer.

---
Regards,
Saptarshi PURKAYASTHA
Date: Thu, 26 Sep 2013 11:04:17 +0300
Subject: Re: Mobile visualizer
From: yuriybug...@gmail.com
To: larshe...@gmail.com
CC: sun...@gmail.com; dhis2-devs@lists.launchpad.net

Hello guys,

It my final evaluation demo video of Mobile 
Visualizer   which I was developing as participated student of GSOC 2013
 program during this summer . 

link : 
http://www.youtube.com/watch?v=cqUYr07TKtA 
and blog post : 
http://mobile-visualizer.blogspot.com/2013/09/gsoc-2013-dhis-2-mobile-visualizer.html

So,
 in future I will fix some minor issues with charts , make more deeply 
testing, implement some missing feature with data selection 
and charts 
options and also I want implement automation testing of my app and 
migration to new chart library when  it will available.

Thanks,
  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Alteration of datavalue:lastupdate to timestamp

2013-08-23 Thread Saptarshi Purkayastha
+1 for it to be TIMESTAMP

---
Regards,
Saptarshi PURKAYASTHA
My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 23 August 2013 10:04, Jason Pickering jason.p.picker...@gmail.comwrote:

 Hi Devs,
 I would like to know what the feeling is about upgrading the lastupdated
 proprerty of datavalues to a timestamp instead of a data. The requirement
 I have in mind is related to data auditing, and having a time stamp as
 opposed to a date is useful for this purpose. It would seem this should be
 a timestamp anyway, since it is in reference to a specific point in time
 when a data value was updated.

 Any thoughts?

 Regards,
 Jason


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Strange request from 127.0.0.1

2013-07-19 Thread Saptarshi Purkayastha
Hi Jason,

On 19 July 2013 22:26, Jason Pickering jason.p.picker...@gmail.com wrote:


 On a related note Bob,  do you know how to get the real IP of the server
 into the Tomcat logs? The header directive is necessary, but does not show
 up in my Tomcat logs with the user's IP. I somehow think it is not possible
 but maybe I am missing something.


I am assuming you are getting the client IP shown correctly in the access
logs in tomcat.
The server IP is showing 127.0.0.1 because that what its connector has been
bound to. Change the connector's address to the public address and it will
show you that in the logs.

Connector
port=8080
protocol=HTTP/1.1
address=public-IP here
connectionTimeout=2
redirectPort=8443
  /


If its dynamic address, it will be problematic though...

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Mobile visualizer progress

2013-07-01 Thread Saptarshi Purkayastha
  I think a video demo of the mobile app is a good idea. Blogging about it
is also good.
If u have any problems with the API or thinking about UI, please send us a
mockup and discuss before moving too far forward.
Good going and thanks for suggesting the video demo idea

Sent from my Windows Phone
 --
From: Yuriy Ivanovich yuriybug...@gmail.com
Sent: ‎01-‎07-‎2013 12:40
To: Saptarshi Purkayastha sun...@gmail.com
Cc: Lars Helge Øverland larshe...@gmail.com;
dhis2-devs@lists.launchpad.net
Subject: Re: Mobile visualizer progress

Hello guys,

Any updates ?


Best Regards,


2013/6/29 Yuriy Ivanovich yuriybug...@gmail.com

 So , if You enjoy my proposal about video reporting I will make it on next
 weekly report
 .
 In this week I worked with DHIS APP.  I already can call API from my
 application. I getting dimensions and filled by it comboboxes for series,
 categories and filters. Also, I designed UI for list of dimensions. So in
 next week I will implement functionality for list of dimensions and using
 other API for getting needed information.

 Best Regards,


 2013/6/28 Yuriy Ivanovich yuriybug...@gmail.com

 Hello guys,

 I have one proposal for my weekly reports. I would make video reports
 about my progress. I think that it will be more informative for you.

 What do you think about this?

 Best Regards.


 2013/6/23 Yuriy Ivanovich yuriybug...@gmail.com

 Hello guys.

 I want to make some little report. What I did in this first week.

 I made functionality for logging to DHIS from my application ignoring
 CORS issue on Google Chrome.  So, application  logging to DHIS , JSESSIONID
 stored in Cookie and after that I have possibility calling DHIS API
 because  JSESSIONID automatically inserted in other request headers. And
 also I can verify if credentials are correct.

 So now I can start working on the one of the main part of application .
 It is task with calling DHIS api and obtaining data for future graphs.

 Best Regards,
 --
 *Yuriy Bugryn* | *Junior Software Developer*

  skype : tojayura




 --
 *Yuriy Bugryn* | *Junior Software Developer*

 skype : tojayura




 --
 *Yuriy Bugryn* | *Junior Software Developer*

 skype : tojayura




-- 
*Yuriy Bugryn* | *Junior Software Developer*

skype : tojayura
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] Translations to French and Spanish

2013-06-26 Thread Saptarshi Purkayastha
Hi Jason,

Does this make use of the launchpad translations?
I've seen projects that use prop2po/po2prop and use the launchpad
translations

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 26 June 2013 17:32, Jason Pickering jason.p.picker...@gmail.com wrote:

 For those of you who are not familiar with the whole process, I have setup
 an online translation server to facilitate the translations of DHIS2 to
 multiple languages, which does not involve the process of downloading the
 source code and using the i18n tool. This is more appropriate when you are
 using translators, who may not be familiar with these tools and just need
 something simple, or for large groups of people who may just want to crank
 out the translation collaboratively, and not worry about setting up the dev
 environment.

 What I mean by sync is that the translations on the translation server
 need to be merged with the source code. Translators can do their work, and
 then once they are done (with the entire system or a particular module) ,
 the translations can be merged with a particular branch. Usually, we have
 done this with trunk and then asked for backports to the stable branch. Up
 until now, we have synchronized the translations with trunk, but in theory,
 they could be merged with 2.11 or 2.12.

 I have not updated this for a while though, but it is easily done. Some
 translations teams (French) have preferred to use the i18n tool, while
 others (Spanish) have preferred to use the translation server. Whatever
 works for your workflow. :)


 Hope this helps to clarify.

 Best regards,
 Jason




 On Wed, Jun 26, 2013 at 5:07 PM, Juan M Alcántara Acosta 
 jmalcant...@apunto.com.mx wrote:

 Thank you Lars
 I just read the guide and I see it mainly deals with documentation of the
 system, this includes the translation of the interface?
 Regards,
 JM



 El 26/06/2013, a las 05:31, Lars Helge Øverland larshe...@gmail.com
 escribió:

 Hi Juan,

 yes we have an active community of translators. I am aware that labels
 for some of the new features in 2.12 is not yet translated. Hopefully we
 will be able to fix that soon.

 From your name it seems you know a word or two of Spanish; if you feel
 like contributing to the docs, the process is well documented here:


 http://www.dhis2.org/doc/snapshot/en/implementer/dhis2_documentation_guide.pdf

 Otherwise, Jason Pickering is overseeing the documentation effort and he
 might be able to assist you if you get stuck.

 best regards,

 Lars






 On Tue, Jun 25, 2013 at 10:12 PM, Juan M Alcántara Acosta 
 jmalcant...@apunto.com.mx wrote:

 Hello everyone
 Is someone currently working on the translation of the interface to
 Spanish and French?
 Best regards,
 JM
 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-us...@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp




 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] Translations to French and Spanish

2013-06-26 Thread Saptarshi Purkayastha
Sorry, I missed the earlier email, which had the link to the Pootle instance

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 26 June 2013 17:35, Saptarshi Purkayastha sun...@gmail.com wrote:

 Hi Jason,

 Does this make use of the launchpad translations?
 I've seen projects that use prop2po/po2prop and use the launchpad
 translations

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 On 26 June 2013 17:32, Jason Pickering jason.p.picker...@gmail.comwrote:

 For those of you who are not familiar with the whole process, I have
 setup an online translation server to facilitate the translations of DHIS2
 to multiple languages, which does not involve the process of downloading
 the source code and using the i18n tool. This is more appropriate when you
 are using translators, who may not be familiar with these tools and just
 need something simple, or for large groups of people who may just want to
 crank out the translation collaboratively, and not worry about setting up
 the dev environment.

 What I mean by sync is that the translations on the translation server
 need to be merged with the source code. Translators can do their work, and
 then once they are done (with the entire system or a particular module) ,
 the translations can be merged with a particular branch. Usually, we have
 done this with trunk and then asked for backports to the stable branch. Up
 until now, we have synchronized the translations with trunk, but in theory,
 they could be merged with 2.11 or 2.12.

 I have not updated this for a while though, but it is easily done. Some
 translations teams (French) have preferred to use the i18n tool, while
 others (Spanish) have preferred to use the translation server. Whatever
 works for your workflow. :)


 Hope this helps to clarify.

 Best regards,
 Jason




 On Wed, Jun 26, 2013 at 5:07 PM, Juan M Alcántara Acosta 
 jmalcant...@apunto.com.mx wrote:

 Thank you Lars
 I just read the guide and I see it mainly deals with documentation of
 the system, this includes the translation of the interface?
 Regards,
 JM



 El 26/06/2013, a las 05:31, Lars Helge Øverland larshe...@gmail.com
 escribió:

 Hi Juan,

 yes we have an active community of translators. I am aware that labels
 for some of the new features in 2.12 is not yet translated. Hopefully we
 will be able to fix that soon.

 From your name it seems you know a word or two of Spanish; if you feel
 like contributing to the docs, the process is well documented here:


 http://www.dhis2.org/doc/snapshot/en/implementer/dhis2_documentation_guide.pdf

 Otherwise, Jason Pickering is overseeing the documentation effort and he
 might be able to assist you if you get stuck.

 best regards,

 Lars






 On Tue, Jun 25, 2013 at 10:12 PM, Juan M Alcántara Acosta 
 jmalcant...@apunto.com.mx wrote:

 Hello everyone
 Is someone currently working on the translation of the interface to
 Spanish and French?
 Best regards,
 JM
 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-us...@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp




 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Mobile Visualizer

2013-06-18 Thread Saptarshi Purkayastha
Thanks Yuriy
Looking forward to see your work over the summer.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 18 June 2013 02:28, Yuriy Ivanovich yuriybug...@gmail.com wrote:

 Hello guys

 I already created repository and blog  which you asked:

 1. Launchpad branches :
 https://code.launchpad.net/~yuriy-bugryn/dhis2/dhis-web-mobile-visualizer

 2. Blog where I will making my weekly report about progress in my project
 http://mobile-visualizer.blogspot.com/

 Best Regards,
 Yuriy Bugryn


 2013/6/17 Saptarshi Purkayastha sun...@gmail.com

 Hi Yuriy,

 Thanks for asking this question. Since the coding period is about to
 start, it will be useful for all GSoC students to create their launchpad
 branches for the summer coding here - https://code.launchpad.net/dhis2

 We expect that you create your branches here and be the owners of the
 branches. The mentors for your project as well as other community members
 will be able to follow your progress. We also suggest that you maintain a
 blog and make a weekly post highlighting the progress that you are making
 with your projects.


 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 On 17 June 2013 14:29, Yuriy Ivanovich yuriybug...@gmail.com wrote:

 Hello Saptarshi,

 Yes , it is because I developing on localhost and the server which I
 using is http://apps.dhis2.org/demo.


 Thanks for your answer ,

 I will use solution number 2 :   start Chrome with flags: chrome.exe
 --disable-web-security -–allow-file-access-from-files

 Because I run DHIS server on my local server pc and developing web app
 on my laptop.


 And I have another question :

 Where I should create repository for my project ?

 Many thanks,
 Yuriy Bugryn



 2013/6/17 Saptarshi Purkayastha sun...@gmail.com

 Hi Yuriy,

 Why do you get a cross-domain issue??
 Is it because you are developing on localhost and the server you are
 using is http://apps.dhis2.org/demo http://apps.dhis2.org/dev?
 All DHIS2 URLs support Basic Authentication... so all you have to do is
 pass the authorization headers.
 Thus, I dont think we need a separate URL for authentication. Also
 tokens for getting this done during the summer is not feasible IMO.

 To deal with cross-domain calls, I suggest you to do either one of the
 two things.
 1. Put all your CSS, HTML, JS inside a folder in expanded tomcat dhis
 and run tomcat. You'll be hosted in the same tomcat as DHIS2 and hence not
 have cross-domain issues
 2. If you wish to work with the your mobile app from localhost and make
 calls to dhis2 demo, you can start Chrome with flags:
 chrome.exe --disable-web-security -–allow-file-access-from-files (or
 similar in Linux)

 Also, since this will be mobile app, the mobile browser WebView or what
 have you for the different platforms, allow cross-domain calls. So that
 will not be a deployment problem.

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 On 17 June 2013 02:45, Yuriy Ivanovich yuriybug...@gmail.com wrote:

 Hello guys,

 I already started working on my task with Mobile Visualizer .

 The first point in my plan is : Implement authentication
 functionality.

 So, I started working on first point and get some problems.

 It is very inconveniently using standart way of authentication  . I
 get problems with Cross-domain and other.

 So, I suggest implements some new security for accessing for API.

 It will be look like :

 Client makes a request to .../authenticate (unprotected URL) with
 credentials; server returns a secure token which contains enough
 information for the server to validate future requests.

 Client makes subsequent requests to various (protected) URLs,
 appending the previously obtained token as a query parameter.

 Since we use Spring already, the solution will make use of Spring
 Security.

 So , I think this solution will be very useful for my future
 application and for future external applications which use DHIS API.

 If you agree with me I can start investigating how to implement this
 functionality.

 Best Regards,
 Yuriy Bugryn

 --
 *Yuriy Bugryn* | *Junior Software Developer*

 skype : tojayura





 --
 *Yuriy Bugryn* | *Junior Software Developer*

 skype : tojayura





 --
 *Yuriy Bugryn* | *Junior Software Developer*

 skype : tojayura

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Mobile Visualizer

2013-06-17 Thread Saptarshi Purkayastha
Hi Yuriy,

Why do you get a cross-domain issue??
Is it because you are developing on localhost and the server you are using
is http://apps.dhis2.org/demo http://apps.dhis2.org/dev?
All DHIS2 URLs support Basic Authentication... so all you have to do is
pass the authorization headers.
Thus, I dont think we need a separate URL for authentication. Also tokens
for getting this done during the summer is not feasible IMO.

To deal with cross-domain calls, I suggest you to do either one of the two
things.
1. Put all your CSS, HTML, JS inside a folder in expanded tomcat dhis and
run tomcat. You'll be hosted in the same tomcat as DHIS2 and hence not have
cross-domain issues
2. If you wish to work with the your mobile app from localhost and make
calls to dhis2 demo, you can start Chrome with flags:
chrome.exe --disable-web-security -–allow-file-access-from-files (or
similar in Linux)

Also, since this will be mobile app, the mobile browser WebView or what
have you for the different platforms, allow cross-domain calls. So that
will not be a deployment problem.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 17 June 2013 02:45, Yuriy Ivanovich yuriybug...@gmail.com wrote:

 Hello guys,

 I already started working on my task with Mobile Visualizer .

 The first point in my plan is : Implement authentication functionality.

 So, I started working on first point and get some problems.

 It is very inconveniently using standart way of authentication  . I get
 problems with Cross-domain and other.

 So, I suggest implements some new security for accessing for API.

 It will be look like :

 Client makes a request to .../authenticate (unprotected URL) with
 credentials; server returns a secure token which contains enough
 information for the server to validate future requests.

 Client makes subsequent requests to various (protected) URLs, appending
 the previously obtained token as a query parameter.

 Since we use Spring already, the solution will make use of Spring Security.

 So , I think this solution will be very useful for my future application
 and for future external applications which use DHIS API.

 If you agree with me I can start investigating how to implement this
 functionality.

 Best Regards,
 Yuriy Bugryn

 --
 *Yuriy Bugryn* | *Junior Software Developer*

 skype : tojayura

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Mobile Visualizer

2013-06-17 Thread Saptarshi Purkayastha
Hi Yuriy,

Thanks for asking this question. Since the coding period is about to start,
it will be useful for all GSoC students to create their launchpad branches
for the summer coding here - https://code.launchpad.net/dhis2

We expect that you create your branches here and be the owners of the
branches. The mentors for your project as well as other community members
will be able to follow your progress. We also suggest that you maintain a
blog and make a weekly post highlighting the progress that you are making
with your projects.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 17 June 2013 14:29, Yuriy Ivanovich yuriybug...@gmail.com wrote:

 Hello Saptarshi,

 Yes , it is because I developing on localhost and the server which I using
 is http://apps.dhis2.org/demo.


 Thanks for your answer ,

 I will use solution number 2 :   start Chrome with flags: chrome.exe
 --disable-web-security -–allow-file-access-from-files

 Because I run DHIS server on my local server pc and developing web app on
 my laptop.


 And I have another question :

 Where I should create repository for my project ?

 Many thanks,
 Yuriy Bugryn



 2013/6/17 Saptarshi Purkayastha sun...@gmail.com

 Hi Yuriy,

 Why do you get a cross-domain issue??
 Is it because you are developing on localhost and the server you are
 using is http://apps.dhis2.org/demo http://apps.dhis2.org/dev?
 All DHIS2 URLs support Basic Authentication... so all you have to do is
 pass the authorization headers.
 Thus, I dont think we need a separate URL for authentication. Also tokens
 for getting this done during the summer is not feasible IMO.

 To deal with cross-domain calls, I suggest you to do either one of the
 two things.
 1. Put all your CSS, HTML, JS inside a folder in expanded tomcat dhis and
 run tomcat. You'll be hosted in the same tomcat as DHIS2 and hence not have
 cross-domain issues
 2. If you wish to work with the your mobile app from localhost and make
 calls to dhis2 demo, you can start Chrome with flags:
 chrome.exe --disable-web-security -–allow-file-access-from-files (or
 similar in Linux)

 Also, since this will be mobile app, the mobile browser WebView or what
 have you for the different platforms, allow cross-domain calls. So that
 will not be a deployment problem.

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 On 17 June 2013 02:45, Yuriy Ivanovich yuriybug...@gmail.com wrote:

 Hello guys,

 I already started working on my task with Mobile Visualizer .

 The first point in my plan is : Implement authentication functionality.

 So, I started working on first point and get some problems.

 It is very inconveniently using standart way of authentication  . I get
 problems with Cross-domain and other.

 So, I suggest implements some new security for accessing for API.

 It will be look like :

 Client makes a request to .../authenticate (unprotected URL) with
 credentials; server returns a secure token which contains enough
 information for the server to validate future requests.

 Client makes subsequent requests to various (protected) URLs, appending
 the previously obtained token as a query parameter.

 Since we use Spring already, the solution will make use of Spring
 Security.

 So , I think this solution will be very useful for my future application
 and for future external applications which use DHIS API.

 If you agree with me I can start investigating how to implement this
 functionality.

 Best Regards,
 Yuriy Bugryn

 --
 *Yuriy Bugryn* | *Junior Software Developer*

 skype : tojayura





 --
 *Yuriy Bugryn* | *Junior Software Developer*

 skype : tojayura

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] introducing jim grace

2013-05-31 Thread Saptarshi Purkayastha
Great to have you work with us...
Welcome onboard!!

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 31 May 2013 11:26, Lars Helge Øverland larshe...@gmail.com wrote:

 Hi all,

 this week we have the great pleasure of getting Jim Grace on board as a
 new member of the DHIS 2 developer team. Jim has long and extensive
 experience from IT including operating systems, databases, project
 management and has done some groundbreaking research and development within
 network protocols.

 Lately Jim has been working in for FACES http://www.faces-kenya.org/ in 
 Kisumu,
 Kenya as a data analyst, overseeing PEPFAR reporting in DHIS, and hence
 already has a solid understanding of the DHIS 2 software.

 We wish you a warm welcome to our team.

 best regards,

 Lars


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Welcoming our Google Summer of Code 2013 interns!!

2013-05-27 Thread Saptarshi Purkayastha
Congratulations to all our GSoC 2013 interns!!
We received 4 slots from Google for student internship positions over the
summer. We are very pleased, since we are participating in the Summer of
Code for the first time. We welcome the following students, their projects
and mentors

 - Araz Abishov - Android application for DHIS2 (Mentors: Olav  Long)
 - Florian Cech - Dialplan (PBX) generation for patient communication
(Mentors: Saptarshi  Tran)
 - Yuriy Bugryn - Mobile visualizer (Mentors: Lars Øverland  Roshan)
 - Rosu Ovidui - Metadata import/export (Mentors: Morten  Bob)

Students, please work with your mentors to finalize the proposal through
this week with clear deliverables, so that we can evaluate your progress
during the mid-term evaluation.

Yuriy and Rosu, you will have to make large changes to your proposals to
reflect some of the new ideas for which you've been selected. These are
different from what is part of your current applications. Please work with
your mentors closely and quickly to reflect the new ideas in the
applications.

Other students who did not get the slots, we would still like to work with
you.
If we have mentors available for your projects, you can still work with us.
We won't be able to pay you anything, but we'll ensure that you have a good
time learning with us. Please write back to us and we can plan on how we
can work together.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] hibernate_sequence is working by default in Postgres

2013-05-16 Thread Saptarshi Purkayastha
DHIS2 uses the hibernate_sequence to generate the id and even if you create
another sequence that will not be used.
This is the general way in which the Postgres Dialect operates.
If we've imported data outside of hibernate, there will be mismatch with
the sequence generator and this is the current problem you are facing.

One approach for us could be to change the dialect to be able to deal with
this problem, such that every auto-increment column has its own sequence.
That sequence can be used if data is imported into the database.
Here is some discussion around that -
http://grails.1312388.n4.nabble.com/One-hibernate-sequence-is-used-for-all-Postgres-tables-td1351722.html

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 15 May 2013 12:27, Uddin Fatema fatema...@gmail.com wrote:

 Dear All,
  I converted MySql Database In Postgres with Data.  Conversion is good.

 However, I face few bugs about insert new dataelement or datset.  It is
 shows duplicate id.

 For solving this bug, I created dataelementid_seq sequence for auto
 incremented dataelement id and set as a default value of dataelemtid column
 in dataelement table.

 Unfortunately, Now If  i am create a new dataelemt then it is not taking
 the default value which one i set in dataelementid colum. It is taking the
 curvalue of hibernate_sequence. Not from my new dataelementid_seq.

 The sequence step are follows:
 
 CREATE SEQUENCE dataelementid_seq
   INCREMENT 1
   MINVALUE 1
   MAXVALUE 9223372036854775807
   START 1
   CACHE 1;
 ALTER TABLE dataelementid_seq
   OWNER TO postgres;

 SELECT MAX(dataelementid) FROM dataelement
 SELECT nextval('dataelementid_seq');
 SELECT setval('dataelementid_seq', (SELECT MAX(dataelementid) FROM
 dataelement));

 Set default value: nextval('dataelementid_seq'::regclass)
 -
 Have any one any solution about default value.

 *Fatema Uddin**
 *
 *Junior Advisor HIS*
 Priority Area Health
 Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH
 House10/A, Road 90, Gulshan 2, Dhaka 1212, Bangladesh
 *Office location:*
 Monitoring  Evaluation Unit
 Ministry of Health and Family Welfare
 Janashankha Bhaban (2nd Floor), Azimpur
 Dhaka 1205, Bangladesh

 Phone: +880 2 966 53 13
 Fax:   +880 2 966 53 14
 **

 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-us...@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Migrating from MySQL to PostgreSQL

2013-05-07 Thread Saptarshi Purkayastha
Hello DHIS users and devs,

Apologies for the long email... Should have probably been multiple blogpost
to reduce its length...

I recently encountered a situation with a very large implementation of
DHIS2 having problems generating data mart.
Thus no reports were generated and only data entry was being done. I
thought I'd share some of the experiences to solve these issues, so that it
might be useful to other implementers.
Some changes will be needed in the DHIS2 source, so sending this to the dev
list also, where dev-related discussions can follow-up.

While PostgreSQL is our recommended database, many implementations have
also used MySQL.
My findings clearly highlight that DHIS2 performs much better on PostgreSQL
and there are also some bugs related to MySQL dialect.
Total org units - 26303
Total Monthly datasets - 9
Total Daily dataset - 1
Total Yearly dataset - 3

The implementation has about 34 million datavalues (non-zero)... but I
pruned it for my benchmarking. I added 1-million datavalues and ran the
data mart.
The results are from my fairly good laptop (quad-core i7; 8GB RAM; tuned
JVM; tuned MySQL 5.5 (4GB RAM); tuned PostgreSQL 9.2 (4GB RAM); 240GB SSD)
Using DHIS2 2.11. When doing MySQL benchmark turned off all services
including postgres and vice versa.
Java Opts:  -Xmx3G -Xms768m -XX:MaxPermSize=512m
Java version: 1.7.0_21 x64
Java vendor: Oracle Corporation OS name: WindowsMySQL = datamart completed
in 3hrs 46min 12sec
PostgreSQL = datamart completed in 2hrs 5min 16sec

So, it is obvious that PostgreSQL is doing datamart much faster. The
advantages might scale better if larger number of datavalues
One could argue MySQL 5.6 has many performance improvements, I didn't have
time to explore that.
The migration to PostgreSQL has some challenges. Following are steps I
followed:

 - Take the mysqldump
 - replace bit(1) to tinyint(1) in the SQL file
 - You'll see that column names are camelCase. This is an issue because
postgres will added a double quotes around to get case-sensitivity, which
MySQL by default nicely excludes.
So you'll have to make all column names to lowercase and remove the quote
characters. I did this with a simple java program. There are 150-odd column
names that need changes.
 - Used Navcat premium (trial version or SQLSquirrel also has this
feature). Data transfer is the name of the feature that will move data
from MySQL to Postgres
 - In MySQL non-standard use of boolean (which came only a few yrs back),
its converted to smallint in Postgres. I wrote a JDBC program to change
column type from smallint to boolean. A single table example is as follows
that can be made into a looping procedure as well in pure PSQL.
ALTER TABLE indicator ALTER COLUMN annualized TYPE boolean
USING CASE WHEN annualized = 0 THEN FALSE
   WHEN annualized = 1 THEN TRUE
   ELSE NULL
END;
 - remove NULL values from minimumvalue column of minmaxdatalement table
DELETE from minmaxdatalement WHERE minimumvalue=NULL
 - remove NULL values from maximumvalue column of minmaxdatalement table
DELETE from minmaxdatalement WHERE maximumvalue=NULL
 - remove NULL values from name column of relationshiptype table
DELETE from relationshiptype WHERE name=NULL
 - blobs to bytea conversion is a mess and I had to truncate. Probably a
JDBC based connector program will do better conversion, but I just
truncated it and accepted the data loss to systemsetting and usersetting :-)
*
Devs*:
We need to make all column names lowercase in hbm.xml files in code. This
will ensure portability and is generally a good practice.
We should also have a convention of using last_updated instead of
lastUpdated in column names, as is the common practice.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [GSoC] Interested in participation

2013-04-18 Thread Saptarshi Purkayastha
Hi Rafaela,

Thank you for your interest in contributing to the DHIS2 project.
We are in the process of changing some of the projects to make them
possible for students who are new to DHIS2.
From the question that have been coming from the students, we realize that
some of the projects might require quite a bit of understanding of DHIS2
before they can be attempted. So, we are trying to simplify the projects.
I would request you to keep checking the projects page -
http://dhis2.org/gsoc2013

Also would be good if you hung out at the IRC.
There are other students and you might be going through the same problems
of starting DHIS2 development as others.
They will help you or you could walk through those issues along with them.
Our IRC is at irc.freenode.net #dhis channel

You could also look at these:
GSoc 2013 next steps - https://lists.launchpad.net/dhis2-devs/msg21942.html
Look at bugs to be solved - goo.gl/X8OBf
Project ideas and mentor list - http://dhis2.org/gsoc2013

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 17 April 2013 19:49, Rafaela Voiculescu rafaela.voicule...@gmail.comwrote:

 *

 Hello,

 My name is Rafaela. I am currently pursuing a MSc program in Computer
 Science at the Technical University of Denmark, after finishing my Computer
 Engineering BSc program at POLITEHNICA University in Bucharest.

 I have a big passion for self development and an equal passion for IT and
 programming. I have experience with Java, Android, C/C++ and python
 development. I am a very fast learner and I am a goal oriented type of
 person. I also find it important to work with deadlines and I have
 experience with working in international projects.

 I am looking for a challenge in doing something that matters and that can
 help society. While I was browsing through the project ideas submitted to
 Google Summer of Code I found your project and I think that your work is
 amazing!

 I especially like the idea about the mobile application for a health
 worker workplan! I instantly thought about applying for this! I think it is
 something that can make a difference. While I think the idea of monitoring
 mothers and their children from ante-natal care to post-natal care and
 further is a very good usability case, I also consider that the app can be
 made to be used in other cases as well (e.g. tracking patients who have
 suffered from strokes or suffer from diabetes for instance). As I see it,
 the app can be made in a way in which the purpose of the workplan can be
 generated based on the patient’s need. Also, I believe the app needs to be
 easily extendable in the future, because this has a high potential and it
 can have a high impact on society.

 I also took a look and played with the demo (apps.dhis2.org/demo) and I
 saw there are some steps already made in the mobile direction. I wanted to
 ask if the project would involve taking this further or would it involve
 making a new app from scratch. However I suppose that since the steps seem
 to be only for a web version, in order to provide offline functionality, a
 native application would be better.

 I would be interested in having more information about the purpose you
 have considered for this idea and also, I would be very interested what
 else can I do before applying in order to get even more familiarized with
 the project.

 Have a nice day,
 Rafaela Voiculescu*

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] GSoC 2013

2013-04-18 Thread Saptarshi Purkayastha
Hi Shruti,

Thank you for your interest in contributing to the DHIS2 project.
Each of the project that you listed, require understanding the data model
and domain model of DHIS2.
The following slides might give an overarching idea -
http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/dhis-2.pdf

Being able to connect ODK to DHIS2 has many advantages. It is a widely used
client application and many projects in the countries where we have DHIS2
implementations use ODK. The core of ODK is the JavaRosa Xforms standard. -
http://opendatakit.org/help/form-design/
Understanding this, will be required, so that the submitted Xforms from
JavaRosa can be imported into DHIS2.

The native DHIS2 exchange format is called DXF 2.0. An XSLT transform to
convert an Xforms to DXF and vice-versa, might be one approach to do this
integration between ODK and DHIS2. You could suggest another approach.
Please look through these and feel free to come back with questions on
this.

Also would be good if you hung out at the IRC.
There are other students and you might be going through the same problems
of starting DHIS2 development as others.
They will help you or you could walk through those issues along with them.
Our IRC is at irc.freenode.net #dhis channel

You could also look at these:
GSoc 2013 next steps - https://lists.launchpad.net/dhis2-devs/msg21942.html
Look at bugs to be solved - goo.gl/X8OBf
Project ideas and mentor list - http://dhis2.org/gsoc2013

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 17 April 2013 21:10, shruti gupta shruti22011...@gmail.com wrote:

 Hello everyone,

 I am a third year undergraduate student pursuing a degree in Information
 Systems. I am interested to work with DHIS-2 . GSoC 2013 is a great
 opportunity to give it a start.

 I have worked on Probabilistic Graphical Models with Roostats(CERN), for
 Google Summer of Code - 2012. The project consisted of construction and
 sampling of Bayesian Belief Networks.

 I had taken up a formal course in Software Development for Portable
 Devices at my institute. The major component of this course was Android
 application development. As a semester project, I also developed an Android
 app for a travel startup. The app currently uses local server and the
 companies' algorithms. It has to be ported on their server. The basic
 version of the app is ready, with few customizations required to be
 launched.
 Currently I am working on a team project on Wireless Network Management
 System, where my part is related with making the front-end user (Android)
 application for the system with ROR back-end.

 I am really interested in Android Application Development and Natural
 Language Processing. I have gone through the list of projects provided on
 GSoC-2013 page. Given my skill set, I am interested in the following
 projects:


- Create metadata sharing tools to export  import subsets of DHIS2
metadata.
- Allow data entry from OpenDataKit (ODK*) http://opendatakit.org*
- Mobile application for Health worker workplan

 Currently, I am going through the documentation, as provided here:
 http://dhis2.org/documentation

 I am also going through th demo app. I am also trying to understand ODK.
 Please let me know further pointers, so that it would be a good time to
 start building the application.


 Hope to hear from you soon,

 Shruti.

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] GSoc 2013

2013-04-15 Thread Saptarshi Purkayastha
Hi Kushagra,

Thank you for your interest in contributing to the DHIS2 project.
Excited to hear that you are comfortable with Struts, Java and XML.
I'd love to hear concrete ideas about how you'd work with metadata sharing.
Important to understand for this project is the metadata in DHIS2.

The DHIS2 developer's list might be the appropriate place to have developer
discussions.
Please signup here: https://launchpad.net/~dhis2-devs

Also would be good if you hung out at the IRC.
There are other students and you might be going through the same problems
of starting DHIS2 development as others.
They will help you or you could walk through those issues along with them.
Our IRC is at irc.freenode.net #dhis channel

You could also look at these:
GSoc 2013 next steps - https://lists.launchpad.net/dhis2-devs/msg21942.html
Look at bugs to be solved - goo.gl/X8OBf
Project ideas and mentor list - http://dhis2.org/gsoc2013

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE

Hi,

 I am Kushagra Singh, a Computer Science student fromBirla Institute of
 Technology and Science, Pilani from India. I am persuing my M.Sc. (Tech)
 Information Systems from here.

 I am interested in the project - Create metadata sharing tools to
 export  import subsets of DHIS2 metadata.

 I am well experienced in Java and have used frameworks - Struts 2 ,
 Spring, Hibernate and iBatis.
 I am very comfortable with Struts and XML technologies, APIs for XML in
 Java like JAXB, Stax etc.

 Currently, I am going through the resources provided for importing/
 exporting metadata in DHIS2. I will be grateful if you can provide me
 suggestions on how to proceed to better understand the project before
 working on my proposal.

 Thanks,
 Kushagra
 --
 This message was sent from Launchpad by
 Kushagra Singh (https://launchpad.net/~kushagresingh)
 using the Contact this team's admins link on the DHIS 2 developers team
 page (https://launchpad.net/~dhis2-devs).

 For more information see
 https://help.launchpad.net/YourAccount/ContactingPeople


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Non-gregorian calendar systems

2013-04-13 Thread Saptarshi Purkayastha
I think we should be Calendar agnostic in code and like most i18n capable
systems, not expect the timestamp in the database to be Calendar-specific
Postgres for instance uses Julian calendar internally. But still supports
many different systems, much more than standard SQL asks for.
Java similar uses long values, instead of Calendar-specific representations.

My point is, Java, Postgres (and MySQL) are well designed to work by being
calendar-agnostic.
Also, 
Joda-timehttp://joda-time.sourceforge.net/apidocs/org/joda/time/chrono/package-summary.htmlprovides
nice Chronology classes for different calendars, which we can use
for localized storing, retrieving or converting

For the JavaME app in one of the releases, we did have a custom calendar
component.
Having it display BS, Ethiopian or anything else, should be fairly easy.
But yes, very few low-end Java phones are locale specific.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 13 April 2013 10:36, Jason Pickering jason.p.picker...@gmail.com wrote:

 Hi Saptarshi,
 Yes, I  cannot speculate really why DHIS2 only supports the Gregorian
 calendar, but this issue I think has been discussed a few times on the list
 before (perhaps for other countries).

 I feel the best approach would be to store all of the data with Gregorian
 dates, but what is shown through the web UI would be the calendar system of
 the particular instance. I am not even sure if databases like Postgres and
 MySQL (much less the operating system itself) would support non Gregorian
 calendar systems.

 As for data exchange, I see no immediate need for this, but if data is
 stored in Gregorian format ( I suppose the de facto international
 standard), then perhaps data exchange would be somewhat easier, but this is
 just speculation of course.

 Thanks for the link to the BS date picker. Does not seem to difficult to
 solve at least this problem.The bigger issue as I see it would be data
 entry through mobiles. At least the J2ME app uses the system calendar, and
 do not think that non-Gregorian systems are even supported on any phone?

 Best regards,
 Jason





 On Fri, Apr 12, 2013 at 5:16 PM, Saptarshi Purkayastha 
 sun...@gmail.comwrote:

 Hi Jason,

 When you say the system currently only support Gregorian calendar, I
 wonder if that's a fact of JavaScript widgets
 But while I was writing this email, a quick search in the code base shows
 that we've instantiated Gregorian calendar at many places instead of using
 the more localized Calendar.getInstance(). The first task would be move to
 using this

 Secondly, is conversion between Gregorian dates and some other calendar
 really required. If data is exchanged between different systems with
 different calendars, this is important. But if we are storing a timestamp
 in database, it should be fine to store it in the locale calendar. So I am
 not too keen, unless really required to use the maps that allow co-relating
 dates between calendar systems.

 Thirdly, there are quite a few (and fairly easy to write new JavaScript
 calendars) to suite different locales. The care that we need to take is
 being able to retrieve the correct calendar based on the set locale. A
 simple BS calendar JS -
 http://sajanmaharjan.com.np/my-works/nepali-datepicker-ui/

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 On 12 April 2013 12:56, Jason Pickering jason.p.picker...@gmail.comwrote:

 Hi Devs,
 I have a question regarding non-Gregorian (Western) calendar systems.
 This issue has come up in a couple of different places which I know of,
 namely Ethiopia (Ethiopian calendar) and Afghanistan (Solar Hijri
 calendar). Currently, the system only supports a Gregorian calendar system,
 but I am trying to think of ways how we can support different
 ones, specifically the Bikram Sambat (BS) calendar system used in Nepal.


 There appears to be no easy way to convert between a Gregorian
 calendar. I dug out some code here
 https://github.com/bahadurbaniya/Date-Converter-Bikram-Sambat-to-English-Date
  which
 will convert between Gregorian dates and BS dates (but not the other way
 around). The approach is to use a look-up table, because of the fact that
 it seems to be difficult (if not impossible) to calculate the
 conversion algorithmically.

 This leads me to my question. Would it be possible that we consider
 adding a Calendar system to the application. The default would be
 Gregorian, which is currently the case. The Second alternative might be
 Bikram Sambat. This would require someone to prepopulate the system with
 periods (BS months, quarters and years)   which would be calculated through
 some other means (common Lisp code 
 herehttp://emr.cs.uiuc.edu/~reingold/calendar.l which
 may be able to do this). These would be in Gregorian periods, but instead
 of the system calculating future periods, they would

Re: [Dhis2-devs] Non-gregorian calendar systems

2013-04-13 Thread Saptarshi Purkayastha
Not joda-time exactly... but JSR310, which learnt most things from joda-time
This has been in the Java8 release since last 6 months or so

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 13 April 2013 13:33, Bob Jolliffe bobjolli...@gmail.com wrote:

 On 13 April 2013 13:26, Saptarshi Purkayastha sun...@gmail.com wrote:

 I think we should be Calendar agnostic in code and like most i18n capable
 systems, not expect the timestamp in the database to be Calendar-specific
 Postgres for instance uses Julian calendar internally. But still supports
 many different systems, much more than standard SQL asks for.
 Java similar uses long values, instead of Calendar-specific
 representations.

 My point is, Java, Postgres (and MySQL) are well designed to work by
 being calendar-agnostic.
 Also, 
 Joda-timehttp://joda-time.sourceforge.net/apidocs/org/joda/time/chrono/package-summary.htmlprovides
  nice Chronology classes for different calendars, which we can use
 for localized storing, retrieving or converting


 Am I right in thinking joda-time is now integrated into the java.time
 package of java 8?



 For the JavaME app in one of the releases, we did have a custom calendar
 component.
 Having it display BS, Ethiopian or anything else, should be fairly easy.
 But yes, very few low-end Java phones are locale specific.


 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 On 13 April 2013 10:36, Jason Pickering jason.p.picker...@gmail.comwrote:

 Hi Saptarshi,
 Yes, I  cannot speculate really why DHIS2 only supports the Gregorian
 calendar, but this issue I think has been discussed a few times on the list
 before (perhaps for other countries).

 I feel the best approach would be to store all of the data with
 Gregorian dates, but what is shown through the web UI would be the calendar
 system of the particular instance. I am not even sure if databases like
 Postgres and MySQL (much less the operating system itself) would support
 non Gregorian calendar systems.

 As for data exchange, I see no immediate need for this, but if data is
 stored in Gregorian format ( I suppose the de facto international
 standard), then perhaps data exchange would be somewhat easier, but this is
 just speculation of course.

 Thanks for the link to the BS date picker. Does not seem to difficult to
 solve at least this problem.The bigger issue as I see it would be data
 entry through mobiles. At least the J2ME app uses the system calendar, and
 do not think that non-Gregorian systems are even supported on any phone?

 Best regards,
 Jason





 On Fri, Apr 12, 2013 at 5:16 PM, Saptarshi Purkayastha sun...@gmail.com
  wrote:

 Hi Jason,

 When you say the system currently only support Gregorian calendar, I
 wonder if that's a fact of JavaScript widgets
 But while I was writing this email, a quick search in the code base
 shows that we've instantiated Gregorian calendar at many places instead of
 using the more localized Calendar.getInstance(). The first task would be
 move to using this

 Secondly, is conversion between Gregorian dates and some other calendar
 really required. If data is exchanged between different systems with
 different calendars, this is important. But if we are storing a timestamp
 in database, it should be fine to store it in the locale calendar. So I am
 not too keen, unless really required to use the maps that allow co-relating
 dates between calendar systems.

 Thirdly, there are quite a few (and fairly easy to write new JavaScript
 calendars) to suite different locales. The care that we need to take is
 being able to retrieve the correct calendar based on the set locale. A
 simple BS calendar JS -
 http://sajanmaharjan.com.np/my-works/nepali-datepicker-ui/

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 On 12 April 2013 12:56, Jason Pickering jason.p.picker...@gmail.comwrote:

 Hi Devs,
 I have a question regarding non-Gregorian (Western) calendar systems.
 This issue has come up in a couple of different places which I know of,
 namely Ethiopia (Ethiopian calendar) and Afghanistan (Solar Hijri
 calendar). Currently, the system only supports a Gregorian calendar 
 system,
 but I am trying to think of ways how we can support different
 ones, specifically the Bikram Sambat (BS) calendar system used in Nepal.


 There appears to be no easy way to convert between a Gregorian
 calendar. I dug out some code here
 https://github.com/bahadurbaniya/Date-Converter-Bikram-Sambat-to-English-Date
  which
 will convert between Gregorian dates and BS dates (but not the other way
 around). The approach is to use a look-up table, because of the fact that
 it seems to be difficult (if not impossible) to calculate the
 conversion algorithmically.

 This leads me to my question. Would it be possible that we

Re: [Dhis2-devs] Non-gregorian calendar systems

2013-04-12 Thread Saptarshi Purkayastha
Hi Jason,

When you say the system currently only support Gregorian calendar, I wonder
if that's a fact of JavaScript widgets
But while I was writing this email, a quick search in the code base shows
that we've instantiated Gregorian calendar at many places instead of using
the more localized Calendar.getInstance(). The first task would be move to
using this

Secondly, is conversion between Gregorian dates and some other calendar
really required. If data is exchanged between different systems with
different calendars, this is important. But if we are storing a timestamp
in database, it should be fine to store it in the locale calendar. So I am
not too keen, unless really required to use the maps that allow co-relating
dates between calendar systems.

Thirdly, there are quite a few (and fairly easy to write new JavaScript
calendars) to suite different locales. The care that we need to take is
being able to retrieve the correct calendar based on the set locale. A
simple BS calendar JS -
http://sajanmaharjan.com.np/my-works/nepali-datepicker-ui/

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 12 April 2013 12:56, Jason Pickering jason.p.picker...@gmail.com wrote:

 Hi Devs,
 I have a question regarding non-Gregorian (Western) calendar systems. This
 issue has come up in a couple of different places which I know of, namely
 Ethiopia (Ethiopian calendar) and Afghanistan (Solar Hijri calendar).
 Currently, the system only supports a Gregorian calendar system, but I am
 trying to think of ways how we can support different ones, specifically
 the Bikram Sambat (BS) calendar system used in Nepal.


 There appears to be no easy way to convert between a Gregorian calendar.
 I dug out some code here
 https://github.com/bahadurbaniya/Date-Converter-Bikram-Sambat-to-English-Date
  which
 will convert between Gregorian dates and BS dates (but not the other way
 around). The approach is to use a look-up table, because of the fact that
 it seems to be difficult (if not impossible) to calculate the
 conversion algorithmically.

 This leads me to my question. Would it be possible that we consider adding
 a Calendar system to the application. The default would be Gregorian,
 which is currently the case. The Second alternative might be Bikram
 Sambat. This would require someone to prepopulate the system with periods
 (BS months, quarters and years)   which would be calculated through some
 other means (common Lisp code 
 herehttp://emr.cs.uiuc.edu/~reingold/calendar.l which
 may be able to do this). These would be in Gregorian periods, but instead
 of the system calculating future periods, they would have to be
 pre-calculated and entered/imported into the system somehow.

 The second part of this (which I think may be more difficult) is the use
 of the JavaScript Gregorian calendar throughout the system. For data entry
 of aggregate data, it would not to be too problematic. But for the tracker
 module (and other places in the system), a Gregorian Javascript widget is
 used, and it would seem to be potentially difficult to replace this.

 Could the developers comment on feasibility and possible level of effort?

 Best regards,
 Jason


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] DHIS2 participating in Google Summer of Code 2013

2013-04-08 Thread Saptarshi Purkayastha
Dear DHIS2 developers and users,

Today Google 
announcedhttp://google-opensource.blogspot.no/2013/04/mentoring-organizations-for-google.htmlthat
HISP https://www.mn.uio.no/ifi/english/research/networks/hisp/ (for DHIS2
development) has been selected as a mentoring organization for the Google
Summer of Code (GSoC) 2013 program. We feel happy that we've got the
opportunity to attract the best students to work with us over the summer on
projects that will help build tools to improve health systems. Please
spread the word among university students to apply to our project with full
zest on existing ideas, new ideas and engage in discussions with us (over
email - developers list or at the IRC - irc.freenode.net/#dhis ). I invite
all of you to hangout at the IRC.

In the coming days, we will have a number of interested students come with
their queries and questions to the list. They'd suggest their own project
ideas as well as discuss some of our suggested project
ideashttp://dhis2.org/gsoc2013.
Hopefully we'll all welcome them with open hearts and minds, and make them
part of our community.

--- About GSoC Program ---
Now in its ninth year, Google Summer of Code is a program designed to pair
university students from around the world with mentors at open source
projects in such varied fields as academic research, language translations,
content management systems, games, and operating systems. Since 2005, over
6,000 students from 90 countries have completed the Google Summer of Code
program with the support of over 350 mentoring organizations. Students gain
exposure to real-world software development while earning a stipend for
their work and an opportunity to explore areas related to their academic
pursuits, thus “flipping bits, not burgers” during their school break. In
return, mentoring organizations have the opportunity to identify and
attract new developers to their projects as these students often continue
their work with the organizations after Google Summer of Code concludes.

Below is the timeline:
 - Monday, April 8th - Accepted organization announcement
 - April 22nd to May 3rd - Student applications period
 - May 24th: Accepted students are announced
 - Till June 16th: Community bonding period
Get to know your fellow interns and mentors.
Communicate about the project, create designs and plan
 - June 17th: Coding begins
 - July 29th: Mentors send Google a mid-term evaluation of your work
 - Sep 16th: Plan to finish coding by this date. Polish code after this
 - Sep 23rd: Pencils down. Stop coding. Mentors submit their final
evaluation
 - Oct 1st: Results of evaluations are announced
For the internship, Google grants
$4500 to the student and $500 to the mentoring organization.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] GSOC 2013 Information

2013-04-08 Thread Saptarshi Purkayastha
Dear Ovidiu Rosu,

Lars forwarded me this email and I'd like to highlight that we are still in
the process of finalizing the projects.
But we have some project ideas already on our page -
http://dhis2.org/gsoc2013
These projects are new ideas, but use existing frameworks, technologies and
APIs

A good way to get started would be to compile the DHIS2 codebase and
install it.
http://dhis2.org/development - Follow the instructions from this page for
the same.
Then look through the frameworks like Struts, Hibernate and how they are
used in DHIS2. Ask questions where you get stuck and have trouble
understanding. In the process we will improve our developer documentation
and provide starting steps for DHIS2 development.

 - Will be good to signup for a launchpad.net ID
 - Signup for the  dhis2-devs mailing list...
 - Playing around with the demo - apps.dhis2.org/demo
 - Follow through the documentation -
http://dhis2.org/doc/snapshot/en/implementer/dhis2_implementation_guide_en_full.html
 - Look at the presentations -
http://dhis2.org/download/presentations/presentations.zip

These might help you give conceptual understanding about DHIS2 that will be
useful for becoming a developer on the platform.

PS: To the dev list, please help bring together other pieces of
documentation that might be useful for incoming students

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 9 April 2013 00:55, Lars Helge Øverland larshe...@gmail.com wrote:



 -- Forwarded message --
 From: Ovidiu Rosu
 Date: Mon, Apr 8, 2013 at 11:33 PM
 Subject: GSOC 2013 Information
 To: Lars Helge


 Hello,

 First I would like to introduce myself, my name is Ovidiu Rosu a Computer
 Science student (2nd year) from Romania looking to participate in the
 Google Summer of Code 2013 program.

 I am writing this e-mail because I've read your GSOC 2013 Project ideas /
 information (concerning the dhis2 project) and it got me really interested.
 It is the first time I've read about your project and to be honest the idea
 of using software in order to improve the health care system in poorer
 countries is really noble.

 I would like to know how to get involved in the project and try to
 contribute to it as part of my application. Are the Project ideas already
 in development or will they be implemented from scratch ?

 Where do you recommend me to start in order to get involved in your
 project ?(since this is the first time I'm getting involved in a project of
 this magnitude). Can I somehow contribute to it before the GSOC 2013 coding
 part starts?

 I will leave my contact details here:
 contact details hidden

 Thank you for your time.

 Best regards.

 --
 - Ovidiu Rosu



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Metadata's use of List

2013-04-06 Thread Saptarshi Purkayastha
If you are sorting it, the order of insertion and keeping it in order isn't
useful I guess.
Also, one could also use a ordered Set like LinkedHashSet or TreeSet
(obviously slightly slower in operation).

Would you be open to making that change, but I think in terms of expected
behavior we'd have metadata to be Collection of unique objects.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 6 April 2013 15:34, Morten Olav Hansen morte...@gmail.com wrote:


 On Fri, Apr 5, 2013 at 1:28 AM, Saptarshi Purkayastha sun...@gmail.comwrote:

 Is there a reason not to use a Set here instead?


 I'm sure some of them can be made sets. But I think the main reason was
 that we wanted a stable order. For most of the types, this doesn't matter,
 but for organisation units, we are exporting according to level. Not sure
 how useful this is, since I'm currently also doing the sort before starting
 a OU import.

 This is also used for generating the API web-pages, so that all types are
 sorted on names. Which makes paging etc more stable.

 I guess you could also use a SortedSet for this.

 --
 Morten

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Metadata's use of List

2013-04-04 Thread Saptarshi Purkayastha
Hi Morten and others,

Today when Bob and me were looking through the Metadata class, we saw List
was used.
We were hoping that the metadata objects would be unique and we'd like them
to be unique in the import-export.
We were planning to iteratively get some metadata (data elements,
categories etc.) and put them together to output as DXF.

Is there a reason not to use a Set here instead?

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Upgrade postgres - Security update available

2013-04-04 Thread Saptarshi Purkayastha
Hi,

PostgreSQL has released an important security update -
http://www.postgresql.org/support/security/faq/2013-04-04/
All those using postgres 9.x on cloud hosted databases or with ports open
for remote access (already a bad idea), should definitely upgrade
Even for others its a good idea to upgrade.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] DHIS version 2.11 is released

2013-03-25 Thread Saptarshi Purkayastha
Hi Paulo,

Lars had sent this information for tips for server admins doing upgrades:
https://lists.launchpad.net/dhis2-users/msg01950.html

PS: Please subscribe to the list for posting messages and receiving
important information like this

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 25 March 2013 13:30, Paulo Grácio paulogra...@gmail.com wrote:

 Congratulations for the achivement!

 Is there any information about how to upgrade from version 2.10 to 2.11?

 Kind regards,
 Paulo Grácio

 On 22 March 2013 19:05, Lars Helge Øverland larshe...@gmail.com wrote:
 
  Hi all,
 
  DHIS version 2.11 is out and we have some great features for you:
 
 
  - Web-based pivot table: Allows you to create pivot tables with data
  aggregated along all data dimensions, including data element/organisation
  unit group sets. Data dimensions can be arranged freely on columns, rows
 and
  as filters. You can include totals and subtotals on all axis and control
 the
  table density and font size under options. Your pivots can be saved as
  favorites and downloaded to your local computer. This design goal is to
  allow users to create their own reports with the data they need without
 any
  involvement of super-users.
 
  A pivot table with immunization indicators for last 4 quarters by
 facility
  ownership, type and location can be made like this (log in with
  admin/district):
 
  http://apps.dhis2.org/demo/dhis-web-pivot/app/index.html?id=XWXTmFUffng
 
  A pivot table with number of diagnosis by facility ownership and type
 with
  totals and subtotals looks like this (notice that diagnosis are data
 element
  groups):
 
  http://apps.dhis2.org/demo/dhis-web-pivot/app/index.html?id=vlnZeGhgw1T
 
  A pivot table for vaccines, broken down on categories, age group and
 point
  of service, last 12 months:
 
  http://apps.dhis2.org/demo/dhis-web-pivot/app/index.html?id=z31v4RMNqnu
 
  A pivot table with reporting rates, major forms for public facilities by
  location and type, last 12 months:
 
  http://apps.dhis2.org/demo/dhis-web-pivot/app/index.html?id=VHewKMjyLnR
 
  We encourage you to play around - select dimension items for the left
 menu
  and arrange dimensions from Layout in the top menu. Documentation can
 be
  found here:
 
  http://dhis2.org/doc/snapshot/en/user/html/ch15.html
 
 
 
  - Data analytics Web-API resource: A flexible API for retrieving
 aggregated,
  analytical data for all data dimensions using a simple query syntax. The
  pivot table module is built on top of this API. It allows developers of
  third-party apps and web portals to connect to DHIS 2 and query for any
 type
  of aggregated data, where any number of dimensions and filters can be
  specified. Data can be retrieved in json, jsonp, xml, csv, html and xls
  (Excel) format and responses can be constrained with criteria like
 greater
  than, equals and so on.
 
  A query for retrieving data for certain data elements, periods and
  organisation units might look like this:
 
 
 http://apps.dhis2.org/demo/api/analytics?dimension=dx:fbfJHSPpUQD;cYeuwXTCPkUdimension=pe:2012Q1;2012Q2dimension=ou:O6uvpzGd5pu;lc3eMKXaEfw
 
  Documentation can be found here:
 
  http://dhis2.org/doc/snapshot/en/user/html/ch25s18.html
 
 
 
  - Sharing: Several objects including chart, pivot table, map, indicator
 and
  data set can now be shared and have fine-grained access control. An
 object
  can be made private to yourself, shared with any number of user groups
 or be
  made available for all. You can grant edit or view-only rights to other
  people. You can create user groups directly from the dashboard. Who
 should
  be allowed to create public objects can be controlled through user roles.
 
  This functionality is useful for example in a scenario where entities
 like
  health programs and implementing partners need to create indicators and
  reports which should be available only for members of their
 organisation. In
  this case, an organisation can create a user group for their staff, then
  develop charts and maps which could be made available for that
 organisation
  only. General reports made by the ministry could still be shared with all
  and made publicly available.
 
  Another use-case is that of an international NGO with operations in
 multiple
  countries. Here, user groups could be set up for each country and
  indicators, resources, charts and reports which are country-specific
 could
  be made available for staff working in that country only, without
 appearing
  in lists for staff working in other countries. Indicators and reports
 which
  are applicable for all counties could be made accessible for all. The
  sharing solution also opens up for great possibilities when combined with
  the self-registration of user account feature.
 
  Documentation here:
 
  http://dhis2.org/doc/snapshot/en/user/html/ch07.html
 
 
 
  - DXF 2 meta-data exchange: You can now import

[Dhis2-devs] WebDriver-based functional testing free for OSS projects

2013-03-06 Thread Saptarshi Purkayastha
We've had some functional testing done that was using manual scripts that a
tester needed to follow.
That proved useful for getting DHIS2 certified, but it is pretty hard to
manage regressions and that too across different browsers.
Being able to automate using WebDriver (Selenium2) seems like a useful step
forward.

SauceLabs https://saucelabs.com/pricing is providing their cloud-hosted,
testing platform available to open-source projects for free of cost.
They have a wide variety of browsers and platforms supported and helps us
avoid regressions and allows upto-date functional testing.

We should hope to migrate those manual scripts to automated using this.
I think it will be a very useful exercise in the long term for functional
testing of DHIS2.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Bug 1085070] Re: emails-hardcoded-from-dhis2.org

2013-02-12 Thread Saptarshi Purkayastha
+1 for using localhost:25 by default

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 12 February 2013 13:30, Bob Jolliffe bobjolli...@gmail.com wrote:

 You are right of course.  The fix fixed only one of the 3 issues and
 that incompletely.  Call it a plaster rather than a fix.

 A proper fix requires the addition of fields in the email setup
 configuration which currently has just hostname, username and
 password.

 In addition what is required are:
 port number, reply to address (these could be populated with defaults)
 and probably a checkbox for no smtp authentication required.

 I know Lars was concerned about having too much to configure but I
 think the above would be fine provided there were sensible defaults.
 Lars, what do you think.

 Talking of which, I don't know how most implementations are
 configuring mail, but for an internet hosted server (which is
 increasingly our target) I *think* the most sensible
 zero-configuration default is to just point to localhost:25 with no
 authentication.  I think most internet servers will have a local exim
 or postfix installed for sending out system alerts and the like.  If
 not they probably should :-)

 Bob

 On 12 February 2013 12:05, jason.p.pickering 1085...@bugs.launchpad.net
 wrote:
  Hi Bob,
  This looks like an incomplete fix actually. I think the username and
 password issue is OK from the code, but emails are still hard coded from
 nore...@dhis.org.
 
  Regards,
  Jason
 
 
  ** Changed in: dhis2
 Status: Fix Committed = Incomplete
 
  --
  You received this bug notification because you are a member of DHIS 2
  developers, which is subscribed to DHIS.
  https://bugs.launchpad.net/bugs/1085070
 
  Title:
emails-hardcoded-from-dhis2.org
 
  Status in DHIS 2 - District Health Information Software:
Incomplete
 
  Bug description:
Emails sent from the server (2.10) are sent by default on port 587 (no
way to configure this). Also, the mails always are from
nore...@dhis2.org.  Not really sure this is a bug so much as a
blueprint, but anyway, wanted to report it.
 
  To manage notifications about this bug go to:
  https://bugs.launchpad.net/dhis2/+bug/1085070/+subscriptions
 
  ___
  Mailing list: https://launchpad.net/~dhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~dhis2-devs
  More help   : https://help.launchpad.net/ListHelp

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS-Live not working with Linux

2013-02-01 Thread Saptarshi Purkayastha
I would suggest to make the first line to call sh:

#!/bin/sh

This I believe is more portable compared to expecting bash. Not that bash
isn't available, but still chances are that might be unavailable in other
systems

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 1 February 2013 11:11, Bob Jolliffe bobjolli...@gmail.com wrote:

 Hi Neeraj

 This strange error seems to indicate you don't have a bash shell which
 is odd, or if you do its not being used.

 I see the error when I type 'sh startup.sh'.

 But when I explicitly type 'bash startup.sh' all is fine.  Or even
 just './startup.sh'

 Can you confirm how you are starting this script?  Maybe you have a
 shortcut which explicitly calls 'sh'.

 Also I would not suggest that dhis-live is the best option for running
 on ubuntu server if this is meant to be for production use.  It uses a
 pre-canned set of JAVA_OPTS which you would more likely want to tune
 to your environment.

 Bob



 On 1 February 2013 10:01, Neeraj Gupta neeraj.h...@gmail.com wrote:
  Lars,
 
  Below is the content of startup.sh
 
  #!/bin/bash
 
  # get ready to catch errors
  trap ctrl-c INT
  trap unexpected-exit ERR
 
  function ctrl-c () {
  echo
  echo 
  echo Keyboard interrupt
  echo DHIS2 live exited
  echo 
  exit
  }
 
  function unexpected-exit () {
  echo 
  echo DHIS2 live exited with an error
  echo Make sure you have a java runtime in your path
  echo 
  read -p Press any key to exit
  }
 
  echo Starting DHIS2 live ...
  # java -jar dhis2-live.jar
  DHIS2LIVE=`dirname $0`
  #$JAVA_HOME/bin/
  java  -jar $DHIS2LIVE/dhis2-live.jar
  echo DHIS2 live exited normally
 
 
 
  On Fri, Feb 1, 2013 at 3:14 PM, Lars Helge Øverland larshe...@gmail.com
 
  wrote:
 
  Hi Neeraj,
 
  can you post the contents of the startup.sh script?
 
  Lars
 
 
  On Fri, Feb 1, 2013 at 11:26 AM, Neeraj Gupta neeraj.h...@gmail.com
  wrote:
 
  Hi Devs,
 
  I was trying to work with DHIS Live on Ubuntu Server 11.10 , but I am
  unable to run it, when i am running startup.sh it is saying
  trap: ERR: bad trap
  /home/dhis-live/startup.sh: 7: Syntax error: ( unexpected
 
  Downloaded it from http://www.dhis2.org/downloads
 
  Tried it on windows and it worked fine.
  Does DHIS-Live work with Linux also or it works with windows only?
 
 
 
  --
  Thanks,
  Neeraj Gupta
 
  ___
  Mailing list: https://launchpad.net/~dhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~dhis2-devs
  More help   : https://help.launchpad.net/ListHelp
 
 
 
 
 
  --
  Thanks,
  Neeraj Gupta
 
  ___
  Mailing list: https://launchpad.net/~dhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~dhis2-devs
  More help   : https://help.launchpad.net/ListHelp
 

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS-Live not working with Linux

2013-02-01 Thread Saptarshi Purkayastha
oops, my bad.
This is a bash script with function calls. You'll need to work with it.

You'll need to verify that the first line is indeed
*#!/bin/bash*
and the file has executable permissions

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 1 February 2013 11:11, Bob Jolliffe bobjolli...@gmail.com wrote:

 Hi Neeraj

 This strange error seems to indicate you don't have a bash shell which
 is odd, or if you do its not being used.

 I see the error when I type 'sh startup.sh'.

 But when I explicitly type 'bash startup.sh' all is fine.  Or even
 just './startup.sh'

 Can you confirm how you are starting this script?  Maybe you have a
 shortcut which explicitly calls 'sh'.

 Also I would not suggest that dhis-live is the best option for running
 on ubuntu server if this is meant to be for production use.  It uses a
 pre-canned set of JAVA_OPTS which you would more likely want to tune
 to your environment.

 Bob



 On 1 February 2013 10:01, Neeraj Gupta neeraj.h...@gmail.com wrote:
  Lars,
 
  Below is the content of startup.sh
 
  #!/bin/bash
 
  # get ready to catch errors
  trap ctrl-c INT
  trap unexpected-exit ERR
 
  function ctrl-c () {
  echo
  echo 
  echo Keyboard interrupt
  echo DHIS2 live exited
  echo 
  exit
  }
 
  function unexpected-exit () {
  echo 
  echo DHIS2 live exited with an error
  echo Make sure you have a java runtime in your path
  echo 
  read -p Press any key to exit
  }
 
  echo Starting DHIS2 live ...
  # java -jar dhis2-live.jar
  DHIS2LIVE=`dirname $0`
  #$JAVA_HOME/bin/
  java  -jar $DHIS2LIVE/dhis2-live.jar
  echo DHIS2 live exited normally
 
 
 
  On Fri, Feb 1, 2013 at 3:14 PM, Lars Helge Øverland larshe...@gmail.com
 
  wrote:
 
  Hi Neeraj,
 
  can you post the contents of the startup.sh script?
 
  Lars
 
 
  On Fri, Feb 1, 2013 at 11:26 AM, Neeraj Gupta neeraj.h...@gmail.com
  wrote:
 
  Hi Devs,
 
  I was trying to work with DHIS Live on Ubuntu Server 11.10 , but I am
  unable to run it, when i am running startup.sh it is saying
  trap: ERR: bad trap
  /home/dhis-live/startup.sh: 7: Syntax error: ( unexpected
 
  Downloaded it from http://www.dhis2.org/downloads
 
  Tried it on windows and it worked fine.
  Does DHIS-Live work with Linux also or it works with windows only?
 
 
 
  --
  Thanks,
  Neeraj Gupta
 
  ___
  Mailing list: https://launchpad.net/~dhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~dhis2-devs
  More help   : https://help.launchpad.net/ListHelp
 
 
 
 
 
  --
  Thanks,
  Neeraj Gupta
 
  ___
  Mailing list: https://launchpad.net/~dhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~dhis2-devs
  More help   : https://help.launchpad.net/ListHelp
 

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 8361: Introduced new logo for login page, light blue and green skin. Added svg versions to resources.

2012-10-07 Thread Saptarshi Purkayastha
Looks awesome...
I've always hated the old logo, which couldn't be used on posters or
scalable versions.
I would still have liked to see more describing or product explaining logo

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 3 October 2012 18:34, nore...@launchpad.net wrote:

 
 revno: 8361
 committer: Lars Helge Øverland larshe...@gmail.com
 branch nick: dhis2
 timestamp: Wed 2012-10-03 12:33:08 +0200
 message:
   Introduced new logo for login page, light blue and green skin. Added svg
 versions to resources.
 removed:

 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/logo_mobile.jpg
 added:

 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/logo_mobile.png
   resources/logo/
   resources/logo/png/
   resources/logo/png/logo_banner.png
   resources/logo/png/logo_front.png
   resources/logo/svg/
   resources/logo/svg/logo_banner.svg
   resources/logo/svg/logo_front.svg
   resources/logo/svg/logo_promo1.svg
   resources/logo/svg/logo_promo2.svg
 modified:

 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/green/green.css

 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/green/logo_banner.png

 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/light_blue/light_blue.css

 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/light_blue/logo_banner.png

 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/login.css

 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/login_mobile.css

 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/login.vm

 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/login_mobile.vm

 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/security/logo_front.png

 dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/interpretation.js


___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] defining datavalueset reports for dhis2 web api

2012-07-16 Thread Saptarshi Purkayastha
Hi Bob,

This is very interesting.
Much closer to xforms where the form is sent without the dataValues and can
be filled with values and sent back.

Some comments:
1.) I wonder though why you are sending all the dataElements in the xml??
Is that required or we should be able to generate only those required on a
dataSet or section of a form?
2.) There should be a dataType field for the elements or are u suggesting
chatty conversation to get the types??

Other than that I wonder if the client has to deal with the transform. Or
was this just an example to generate it and will be done on the server-side.
I would suggest that the client should be able to set Accept headers and
get the template in formats that you mentioned in your email...

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 16 July 2012 12:57, Bob Jolliffe bobjolli...@gmail.com wrote:

 Sharing some thoughts about using the web-api for facility reporting 

 Setting up a client to produce datavalueset reports using the web api
 gets a bit complicated when you are using categorycombos.  The problem
 is that you can retrieve the metadata for a dataset, but that just
 gives you the list of dataelements to report - but finding out which
 categoryoptioncombos are required for each dataelement involves quite
 a bit more querying of the api.

 Creating an sdmx style data structure definition is difficult because
 of the raggedness of our datasets (they are not neat datacubes with
 uniform dimensionality).  So another way to approach this is to
 acquire report templates for each datavalueset - ie. retrieve the
 template from dhis and the client is then only required to configure
 itself to provide the values for each row in the template.

 The web api doesn't provide these directly, but they are easy enough
 to generate off the metadata.  At a minimum you require the datasets,
 the dataelements and the categoryoptioncombos.  If the client is a
 facility based system (like openmrs) then its really not necessary to
 get the list of 1000's of orgunits.

 Using the attached xsl and the url below is my first stab at this:

 curl -v -X GET -u admin:district
 
 http://apps.dhis2.org/demo/api/metaData.xml?assumeTrue=falsecategoryOptionCombos=truedataElements=truedataSets=true
 
 | xsltproc dxf2template.xslt - |xmllint --format -

 The resulting output (also attached) is I think the minimum
 information required to fully configure a datavalueset producer based
 on a template, using dxf2, sdmx, csv, xforms  or what have you.  I am
 assuming that a facility already 'knows' its facility identifier or
 code.

 Bob

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] defining datavalueset reports for dhis2 web api

2012-07-16 Thread Saptarshi Purkayastha
On 16 July 2012 15:21, Bob Jolliffe bobjolli...@gmail.com wrote:


 If you just want the specification for a single datavalueset template
 then you really do just need the list of dataelements for that
 datavalueset.  Notice that you do already have that list of required
 dataelements in the dataset xml - unfortunately this list format (it
 is generic for all identifiable objects)  doesn't contain the
 categorycombo so a bit of duplication is required.


Yes, I was thinking if this duplication can be avoided. So only the
required disAggregations are received...


 There should.  I was assuming numeric but I guess that is not fair.


Although the type might be dataType like you did in the next xslt, it'd
still not be able to do the xforms/javarosa-style xforms because its
datatype and not viewtype. Like I could represent a multi-select through
checkbox or list etc. So, that case of having view-representation is still
missing.


 I agree that the client's life could be made easier if such a
 transform was done on the server side.  I just put this out as a
 feeler to see if people who are building dxf2 clients might find it
 useful.   Of course its not a big problem to do on the client side and
 has the advantage of not needing to build consensus around what a
 standard representation should be.  But such a representation
 available from the server could make building clients even easier.


xslt is fairly memory intensive because its in-memory. The newest XSLT 3.0
standard brings streaming, but that's not what you are using. This means
that clients need a lot of memory on large transforms and I'm thinking of
mobile when I was referring to be able to get this transform done on the
server-side.


 Where would you map it?  If you want to get all the reports like I
 have done then something like application/reportTemplate+xml on
 metadata url might do,  The idea being that a client could read in the
 list which templates it wanted to configure/save.

 Slightly more chatty but maybe also sensible (but I think maybe more
 complicated to implement), would be to use
 application/reportTemplate+xml on the dataset url (with the
 restricted list of dataelements).


a small nitpick that mime-types are generally not camelCase.
Yes, but we could have the client configure/save the XSLT on the server and
on next calls get that response only. Sadly, javarosa-xforms uses text/xml
and nothing more specific :-( . Some mobile client could nicely send an
XSLT for JSON and get that representation from the server for
reportTempate??

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE



 Bob

 
  ---
  Regards,
  Saptarshi PURKAYASTHA
 
  My Tech Blog:  http://sunnytalkstech.blogspot.com
  You Live by CHOICE, Not by CHANCE
 
 
  On 16 July 2012 12:57, Bob Jolliffe bobjolli...@gmail.com wrote:
 
  Sharing some thoughts about using the web-api for facility reporting
 
 
  Setting up a client to produce datavalueset reports using the web api
  gets a bit complicated when you are using categorycombos.  The problem
  is that you can retrieve the metadata for a dataset, but that just
  gives you the list of dataelements to report - but finding out which
  categoryoptioncombos are required for each dataelement involves quite
  a bit more querying of the api.
 
  Creating an sdmx style data structure definition is difficult because
  of the raggedness of our datasets (they are not neat datacubes with
  uniform dimensionality).  So another way to approach this is to
  acquire report templates for each datavalueset - ie. retrieve the
  template from dhis and the client is then only required to configure
  itself to provide the values for each row in the template.
 
  The web api doesn't provide these directly, but they are easy enough
  to generate off the metadata.  At a minimum you require the datasets,
  the dataelements and the categoryoptioncombos.  If the client is a
  facility based system (like openmrs) then its really not necessary to
  get the list of 1000's of orgunits.
 
  Using the attached xsl and the url below is my first stab at this:
 
  curl -v -X GET -u admin:district
 
  
 http://apps.dhis2.org/demo/api/metaData.xml?assumeTrue=falsecategoryOptionCombos=truedataElements=truedataSets=true
 
  | xsltproc dxf2template.xslt - |xmllint --format -
 
  The resulting output (also attached) is I think the minimum
  information required to fully configure a datavalueset producer based
  on a template, using dxf2, sdmx, csv, xforms  or what have you.  I am
  assuming that a facility already 'knows' its facility identifier or
  code.
 
  Bob
 
  ___
  Mailing list: https://launchpad.net/~dhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~dhis2-devs
  More help   : https://help.launchpad.net/ListHelp
 
 

___
Mailing list: https

[Dhis2-devs] Web API Usage

2012-03-12 Thread Saptarshi Purkayastha
Dear devs,

Is there documentation about the web-api. Like what resources support
GET/POST? I see a list of all the resources and 4 representations, but is
there more detailed documentation??

I also recently saw commits from Lars that implementing caching for WebAPI.
Is there any reason not to use ETags for the purpose?? That will enable to
check if new content is exposed by the web service or not and seems like
the standard way for update checks.

Is there a way to create organization units through the Web API?? If not
the web api, are there any considerations to adding org units on-the-fly,
attaching datasets and collecting data. I vaguely remember having to do
something with resource tables. Is that still necessary??

Too many questions probably in one email... but all somehow related to one
another.


---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Java performance

2012-03-12 Thread Saptarshi Purkayastha
This is not only surprising, but also seems like there might have been some
problem in the way the benchmark behaves.
I have seen better or in the worst-case similar performance after upgrades
from Sun JRE6 to openJDK7

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


2012/3/10 Lars Helge Øverland larshe...@gmail.com

 Hi,

 as you know Oracle has withdrawn the Operating System Distributor
 License for Java which means that Oracle JDK has been removed from
 Linux package repositories. Another issue is that Oracle will no
 longer post public updates to JDK 6 after November 2012. So which JDK
 to choose for DHIS installations has become a question.

 In that regard I have done some bench-marking running a full data mart
 export using various JDK versions on Ubuntu 64bit. Each test was done
 3 times and the result is the average time.

 Sun JDK 6   2h 36m
 OpenJDK 6  3h 24m
 Oracle JDK 7   3h 25m
 OpenJDK 7  3h 34m

 A bit surprisingly Sun JDK 6 is far ahead. Will continue to
 investigate the reasons for this and monitor JDK 7 performance in
 future updates.


 Lars

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Web API Usage

2012-03-12 Thread Saptarshi Purkayastha
Thank you so much for the info Lars.
Sounds like we should be getting POST/PUT on many resources... I'd like to
vote on the org unit creation to priority :-)

Didn't realize what you were solving with the caching... but for the
client-side trying to check if new data is available, ETags are generally
useful.
Like you explain, you are solving a different problem, so it might not be
relevant.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


2012/3/12 Lars Helge Øverland larshe...@gmail.com

 On Mon, Mar 12, 2012 at 4:32 PM, Saptarshi Purkayastha sun...@gmail.com
 wrote:
  Dear devs,
 
  Is there documentation about the web-api. Like what resources support
  GET/POST? I see a list of all the resources and 4 representations, but is
  there more detailed documentation??

 It is only /dataValueSets and /messages which support post. The rest
 supports get only for now.


 
  I also recently saw commits from Lars that implementing caching for
 WebAPI.
  Is there any reason not to use ETags for the purpose?? That will enable
 to
  check if new content is exposed by the web service or not and seems like
 the
  standard way for update checks.

 Server-side validation / etag based caching is not useful in this
 scenario since the main purpose (besides saving network usage) is to
 reduce the load on the server - if you are to produce reliable
 hashes/etags then you will have to generate those reports/charts first
 anyway. The idea now is to use the knowledge of when the data in the
 reports are refreshed. And then we might as well use expiration
 caching (cache-control/expiry headers) and let the client cache the
 representations completely and thus avoid the validation round-trip.
 Will write some more about this later.




 
  Is there a way to create organization units through the Web API?? If not
 the
  web api, are there any considerations to adding org units on-the-fly,
  attaching datasets and collecting data. I vaguely remember having to do
  something with resource tables. Is that still necessary??

 No not at the moment but we will include it later.

 Resource tables are not required.

 
  Too many questions probably in one email... but all somehow related to
 one
  another.
 
 
  ---
  Regards,
  Saptarshi PURKAYASTHA
 
  My Tech Blog:  http://sunnytalkstech.blogspot.com
  You Live by CHOICE, Not by CHANCE
 
  ___
  Mailing list: https://launchpad.net/~dhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~dhis2-devs
  More help   : https://help.launchpad.net/ListHelp
 

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS version 2.7 is released

2012-02-19 Thread Saptarshi Purkayastha
Upgrading from 2.6 which had data elements in hindi has converted all of
those data elements to ?? (question marks)
Is this a problem in which UTF-8 characters were represented in earlier
versions and now it has been fixed or some other problem??
The database was using charset UTF-8 and the collation that was able to
work with multiple languages.

Anyway to fix the ?? back to the language text back again??

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


2012/2/18 Lars Helge Øverland larshe...@gmail.com

 Hi all,


 DHIS version 2.7 is released. The improvements this time are: (demo
 login is admin/district)


 1) Translation of database content: Most database content, including
 data elements, indicators, validation rules, groups and group sets can
 now be translated to any language. Each user can independently decide
 what language to use in the system. To translate an object click on
 the blue translation icon next to the object in the various lists.
 Later in the settings module under general user settings you can set
 your preferred language.

 This functionality is useful for countries with more than one
 widespread language or when English is needed as a second language.
 This functionality has already been field tested in Tanzania with
 Swahili and English.


 http://apps.dhis2.org/demo/dhis-web-maintenance-datadictionary/dataElement.action


 2) Chart options in data visualizer module: Support for several
 options for chart including i) Domain and range axis labels for
 displaying the units of measure of the chart ii) Target line for
 displaying the desired target value iii) Trend line for displaying the
 trend of the chart data iv) Hide legend and title to make more space
 for the chart itself v) Dynamic inclusion of the organisation unit of
 the currently logged in user on order to make charts more reusable in
 the dashboard. The user interface for the chart options can be found
 in the bottom left corner.


 http://apps.dhis2.org/demo/dhis-web-visualizer/app/index.html?uid=nwqNUFG9Vky


 3) Option sets: Support for pre-defined sets of options for name-based
 data. You can define any kind of options, for instance an option set
 called Delivery type where Normal, Breach, Caesarian and
 Assisted would be the options. This option set can later be
 associated with any number of data elements. When doing data entry in
 name-based records module those elements will then appear in the form
 as drop-down lists with auto-completion support.

 The user interface for defining option sets are found in data
 administration module. Option sets can be associated with data
 elements in the add / update data element interface. Int the demo
 below select any facility and then the Delivery returns program:

 http://apps.dhis2.org/demo/dhis-web-caseentry/anonymousRegistration.action


 4) Data locking: New and improved solution for locking of data entry
 forms. With the new solution you define a number of expiry days for
 each data set which is relative to the end date of the data entry
 period. So when the number of expiry days has passed after the end
 date of a period, that period will be locked for further data entry.
 You can cater for special situations where data entry should be
 allowed despite the automatic locking through the lock exception user
 interface in data administration module.


 http://apps.dhis2.org/demo/dhis-web-maintenance-dataadmin/lockException.action


 5) Improved messaging: i) Paging - all messages can now be browsed
 page by page ii) Follow up - messages can be marked for later
 follow-up by clicking on the familiar star next to it iii) Faster
 navigation - buttons for marking a message as unread, remove it and go
 back are  included also at the bottom of the read message screen.

 http://apps.dhis2.org/demo/dhis-web-dashboard-integration/message.action


 6) Full data mart export: A new user interface in reports module for
 easily doing full data mart exports. You can select the period types
 and start- and end-date for which periods to include in the export.
 Full export implies that all organisation units, data elements and
 indicators are included in the export process. This means that you
 don't have to worry about getting invalid data marts as a result of
 e.g. not including all organisation unit levels. This interface
 provides you with continuous feedback so that you can easily track
 progress of the process.

 http://apps.dhis2.org/demo/dhis-web-reporting/displayDataMartForm.action



 You download the new version from here as WAR file or Live package:

 http://dhis2.org/downloads

 Documentation and Javadocs can be found here:

 http://dhis2.org/documentation

 Launchpad page is here:

 https://code.launchpad.net/~dhis2-devs-core/dhis2/2.7



 best regards,

 the DHIS 2 development team

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post

[Dhis2-devs] Lighweight DHIS for organization unit management and data entry

2012-02-02 Thread Saptarshi Purkayastha
Hi,

Has anyone built a lightweight version of DHIS for offline data entry??
Excluding all the analytics and datamart services.
Basically want to only allow creating organization units and do data entry
for these organization units on low-end netbooks. It is probably easy to
just remove the not-required web modules from the web-portal pom.xml , but
I want to remove those services that are not required from maintainence
module.

Is there documentation somewhere for dependencies or someone already has a
lightweight version of DHIS for dataentry only??

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Lighweight DHIS for organization unit management and data entry

2012-02-02 Thread Saptarshi Purkayastha
Data entry and organization unit management.
That is all that is required.

Did you remove the services as well?? those that are not required??

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 2 February 2012 17:23, Jason Pickering jason.p.picker...@gmail.comwrote:

 I built a data entry only version just by modification of the pom for use
 on Amazon micro instances, but sounds like you need additional stuff?

 Regards,
 Jason

 --
 Sent from my mobile
 On Feb 2, 2012 12:56 PM, Saptarshi Purkayastha sun...@gmail.com wrote:

 Hi,

 Has anyone built a lightweight version of DHIS for offline data entry??
 Excluding all the analytics and datamart services.
 Basically want to only allow creating organization units and do data
 entry for these organization units on low-end netbooks. It is probably easy
 to just remove the not-required web modules from the web-portal pom.xml ,
 but I want to remove those services that are not required from maintainence
 module.

 Is there documentation somewhere for dependencies or someone already has
 a lightweight version of DHIS for dataentry only??

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Lighweight DHIS for organization unit management and data entry

2012-02-02 Thread Saptarshi Purkayastha
Great... this is what I'm looking for.
Will the Android phones be using HTML5 offline support in the browsers??
Or are we talking about a mobile application/browser-view that uses the
web-api (REST services)??

I'm thinking organization unit management, so that those can be added as
well.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 2 February 2012 17:15, Lars Kristian Roland l...@roland.bz wrote:

 This is in the short term plans. Morten and a master student will be
 working on on a light-weight browsing client with offline support (for
 example for use on Android phones).

 Lars

 2012/2/2 Saptarshi Purkayastha sun...@gmail.com

  Hi,

 Has anyone built a lightweight version of DHIS for offline data entry??
 Excluding all the analytics and datamart services.
 Basically want to only allow creating organization units and do data
 entry for these organization units on low-end netbooks. It is probably easy
 to just remove the not-required web modules from the web-portal pom.xml ,
 but I want to remove those services that are not required from maintainence
 module.

 Is there documentation somewhere for dependencies or someone already has
 a lightweight version of DHIS for dataentry only??

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp




 --
 Lars Kristian Roland
 Research Fellow, Department of Informatics, University of Oslo
 Email: l...@roland.bz - rol...@ifi.uio.no
 Phone: +47 90733036



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Lighweight DHIS for organization unit management and data entry

2012-02-02 Thread Saptarshi Purkayastha
A survey where households become organization units with the given
co-ordinates.
And then fill the form for that household.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 2 February 2012 17:51, Knut Staring knu...@gmail.com wrote:

 Hi Saptarshi,

 Could you describe the use case a bit more? Could you not achieve what you
 want by defining a user role that only has access to orgunit management and
 not the rest?

 Knut

 On Thu, Feb 2, 2012 at 1:06 PM, Saptarshi Purkayastha sun...@gmail.comwrote:

 Great... this is what I'm looking for.
 Will the Android phones be using HTML5 offline support in the browsers??
 Or are we talking about a mobile application/browser-view that uses the
 web-api (REST services)??

 I'm thinking organization unit management, so that those can be added as
 well.

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 On 2 February 2012 17:15, Lars Kristian Roland l...@roland.bz wrote:

 This is in the short term plans. Morten and a master student will be
 working on on a light-weight browsing client with offline support (for
 example for use on Android phones).

 Lars

 2012/2/2 Saptarshi Purkayastha sun...@gmail.com

  Hi,

 Has anyone built a lightweight version of DHIS for offline data entry??
 Excluding all the analytics and datamart services.
 Basically want to only allow creating organization units and do data
 entry for these organization units on low-end netbooks. It is probably easy
 to just remove the not-required web modules from the web-portal pom.xml ,
 but I want to remove those services that are not required from maintainence
 module.

 Is there documentation somewhere for dependencies or someone already
 has a lightweight version of DHIS for dataentry only??

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp




 --
 Lars Kristian Roland
 Research Fellow, Department of Informatics, University of Oslo
 Email: l...@roland.bz - rol...@ifi.uio.no
 Phone: +47 90733036




 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp




 --
 Knut Staring
 Dept. of Informatics, University of Oslo
 +4791880522
 http://dhis2.org


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Web module build

2012-01-26 Thread Saptarshi Purkayastha
Will this be done for the 2.6 branch??

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


2012/1/25 Saptarshi Purkayastha sun...@gmail.com

 Ignore my last question...
 It works as expected... Nice!!

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 2012/1/25 Saptarshi Purkayastha sun...@gmail.com

 awesome...
 I always missed doing this and it was time consuming to do run-war

 Should it also be looking at the webapp folder for any other webapp that
 is in dependency??

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE



 2012/1/25 Lars Helge Øverland larshe...@gmail.com

 To developers,

 It is now possible to run the maven jetty plugin with the run goal
 (instead of the run-war goal) in trunk, which means jetty will read
 source code files directly instead of assembling everything into a WAR
 and deploy it.

 This implies that changes you do to velocity templates, javascripts,
 css files etc take effect immediately and there is no need to restart
 the jetty plugin.

 In other words you can now execute:

 mvn jetty:run




 This should save some development time. The problem was related to the
 war-type dependency we have on the dhis-web-commons-resources project.
 Maven jetty plugin version 6.1.12.rc2 + handles the problem of
 multiple web app resource directories automatically through the war
 dependency mechanism. In order to have Velocity find templates I have
 added a short velocity.properties file to each web project which
 points a file resource loader to the dhis-web-commons-resources
 project directory (the current directory is searched by default).




 Lars

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp




___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Web module build

2012-01-24 Thread Saptarshi Purkayastha
awesome...
I always missed doing this and it was time consuming to do run-war

Should it also be looking at the webapp folder for any other webapp that is
in dependency??

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


2012/1/25 Lars Helge Øverland larshe...@gmail.com

 To developers,

 It is now possible to run the maven jetty plugin with the run goal
 (instead of the run-war goal) in trunk, which means jetty will read
 source code files directly instead of assembling everything into a WAR
 and deploy it.

 This implies that changes you do to velocity templates, javascripts,
 css files etc take effect immediately and there is no need to restart
 the jetty plugin.

 In other words you can now execute:

 mvn jetty:run




 This should save some development time. The problem was related to the
 war-type dependency we have on the dhis-web-commons-resources project.
 Maven jetty plugin version 6.1.12.rc2 + handles the problem of
 multiple web app resource directories automatically through the war
 dependency mechanism. In order to have Velocity find templates I have
 added a short velocity.properties file to each web project which
 points a file resource loader to the dhis-web-commons-resources
 project directory (the current directory is searched by default).




 Lars

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Web module build

2012-01-24 Thread Saptarshi Purkayastha
Ignore my last question...
It works as expected... Nice!!

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


2012/1/25 Saptarshi Purkayastha sun...@gmail.com

 awesome...
 I always missed doing this and it was time consuming to do run-war

 Should it also be looking at the webapp folder for any other webapp that
 is in dependency??

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE



 2012/1/25 Lars Helge Øverland larshe...@gmail.com

 To developers,

 It is now possible to run the maven jetty plugin with the run goal
 (instead of the run-war goal) in trunk, which means jetty will read
 source code files directly instead of assembling everything into a WAR
 and deploy it.

 This implies that changes you do to velocity templates, javascripts,
 css files etc take effect immediately and there is no need to restart
 the jetty plugin.

 In other words you can now execute:

 mvn jetty:run




 This should save some development time. The problem was related to the
 war-type dependency we have on the dhis-web-commons-resources project.
 Maven jetty plugin version 6.1.12.rc2 + handles the problem of
 multiple web app resource directories automatically through the war
 dependency mechanism. In order to have Velocity find templates I have
 added a short velocity.properties file to each web project which
 points a file resource loader to the dhis-web-commons-resources
 project directory (the current directory is searched by default).




 Lars

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Organization Unit Creation in Offline mode

2012-01-18 Thread Saptarshi Purkayastha
I love the new data-entry screen and the way it works in offline mode. It
works on many browsers and it is implemented very nicely.
How difficult/easy would it be to also allow making organization units in
offline mode, so that they can be created offline, data entry forms filled
and later sync'd when online??

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Changing inline help icon to question mark

2011-11-20 Thread Saptarshi Purkayastha
+1

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 20 November 2011 01:49, Knut Staring knu...@gmail.com wrote:

 Hi,

 From my observations of users, it seems quite clear that the current red
 and white life buoy icon is to small to be recognized, and a lot of
 people are also unfamiliar with the concept of life buoys.

 I therefore propose that we change the icon to a question mark, which is
 pretty much the standard icon for help in lots of apps, including in our
 own GIS module.

 Knut


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] shifting hibernate hbm.xml files

2011-11-01 Thread Saptarshi Purkayastha
I dont see them changing...
atleast when i tried to commit through bzr nothing showed up in
changed files for me

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE



On 2 November 2011 05:50, Bob Jolliffe bobjolli...@gmail.com wrote:
 OK.  That will have confused most of you.  But it seems I am not crazy
 either.  Looks like a netbeans bug related to this one:
 http://netbeans.org/bugzilla/show_bug.cgi?id=161628

 Now what exactly triggers the rewrite is not clear.  Its certainly not
 to do with swing forms.  But it has messed up my day.

 Saptarshi have you seen anything like this?

 Bob

 On 1 November 2011 23:21, Bob Jolliffe bobjolli...@gmail.com wrote:
 Can anybody tell me what is modifying the hibernate configuration
 files?  I (perhaps naively) thought that the developer writes these
 and keeps under version control.

 Every now again I see that they have changed - usually just formatting
 changes.  Like they are being read and then written back out again by
 something. What on earth can be doing this?

 Have noticed this for a while now but this has caused me some grief
 today as I have included a couple of XML ENTITY declarations which
 after compiling and installing seem to have disappeared again.

 Baffled.
 Bob


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to     : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] shifting hibernate hbm.xml files

2011-11-01 Thread Saptarshi Purkayastha
But I'm 7.1 dev builds, so if that bug you linked is correct... the
thing might be fixed in the build I'm using
Although I still dont remember committing the .hbm.xml files ever
because of the changes

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE



On 2 November 2011 10:34, Saptarshi Purkayastha sun...@gmail.com wrote:
 I dont see them changing...
 atleast when i tried to commit through bzr nothing showed up in
 changed files for me

 ---
 Regards,
 Saptarshi PURKAYASTHA

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE



 On 2 November 2011 05:50, Bob Jolliffe bobjolli...@gmail.com wrote:
 OK.  That will have confused most of you.  But it seems I am not crazy
 either.  Looks like a netbeans bug related to this one:
 http://netbeans.org/bugzilla/show_bug.cgi?id=161628

 Now what exactly triggers the rewrite is not clear.  Its certainly not
 to do with swing forms.  But it has messed up my day.

 Saptarshi have you seen anything like this?

 Bob

 On 1 November 2011 23:21, Bob Jolliffe bobjolli...@gmail.com wrote:
 Can anybody tell me what is modifying the hibernate configuration
 files?  I (perhaps naively) thought that the developer writes these
 and keeps under version control.

 Every now again I see that they have changed - usually just formatting
 changes.  Like they are being read and then written back out again by
 something. What on earth can be doing this?

 Have noticed this for a while now but this has caused me some grief
 today as I have included a couple of XML ENTITY declarations which
 after compiling and installing seem to have disappeared again.

 Baffled.
 Bob


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to     : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] uuid

2011-10-23 Thread Saptarshi Purkayastha
UUID is optimized in a lot of database systems, if those are put in IDENTITY
columns
Any other generated unique ids are going to be treated as plain varchar

REST services should probably make use of UUID because its easy and
most-likely safe to be unique across implementations

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 24 October 2011 02:03, Bob Jolliffe bobjolli...@gmail.com wrote:

 Lars and Jo and I have been discussing a bit about ids off list.

 One conclusion we have reached is that we should auto-generate a
 unique identifier which is not quite as cumbersome as a uuid.

 You might have noticed the CodeGenerator class which has recently
 appeared in the api.  This generates an 11 character code matching
 regex [0-9a-zA-Z]{11}.  That is 62^11 unique permutations (or 5.2e19)
 which is a reasonably big number.

 It seems unnecessary to maintain both this and the uuid.  Which begs
 the question, is anybody actually using the uuid currently?

 Cheers
 Bob

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Updated 2.5 release

2011-10-23 Thread Saptarshi Purkayastha
Shouldn't this be called v2.5.1 ??

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 21 October 2011 00:32, Jo Størset stor...@gmail.com wrote:

 Hi,

 for some unexplainable reason I had forgotten to add back the api for the
 mobile client after refactoring it into separate modules. Since this meant
 that they were missing from the 2.5 release, I have added them in the 2.5
 branch and deployed a new version of the war file. The mobile client apps
 should now work as before with the updated 2.5 war file.

 I might as well mention while I'm here that in a not to distant future we
 will also release updated versions of the mobile clients. The major
 difference will mostly be that we have split the client into two separate
 applications: one for facility reporting and another one for program based
 tracking. We had hoped to include sms as a fallback option for sending
 reports with this version, but unfortunately that has to be delayed till
 2.6. These have to be tested and verified before we release them, but it
 will hopefully not take too long.

 Sorry for the messup with 2.5,
 Jo
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS version 2.4 Update

2011-09-08 Thread Saptarshi Purkayastha
Wouldn't it be useful to call this updated release with a new version number
like 2.4.1 ??

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


2011/9/8 Lars Helge Øverland larshe...@gmail.com

 Hi all,

 since DHIS 2.4 was released on Aug 28. it has been used in production
 in Kenya and Ghana. In that regard we have received lots of feedback
 and done a range of improvements and bugfixes. We recommend everyone
 to take advantage of this and download the latest build of DHIS 2.4
 from here:

 http://dhis2.org/downloads


 We will print the date of when these builds are updated next to the
 download to make it easy for you to know when to upgrade.


 regards, Lars

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS2 continues to bomb

2011-09-08 Thread Saptarshi Purkayastha
Roger,

are u sure the -XX:MaxPermSize=1024M is set correctly... even 256M should be
fine, if the -Xms1024m and -Xmx2048m or even smaller is set and you are
trying to run both OpenMRS and DHIS2 in one tomcat

If you are running through the windows service, you may have to change it
through the service window to change JAVA_OPTS.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 9 September 2011 03:04, Friedman, Roger (CDC/CGH/DGHA) (CTR) 
r...@cdc.gov wrote:

 I have previously reported this but got no response.  I can deploy DHIS2
 2.3 downloaded 8/16 but when I try to start it, I get the message, Sorry,
 an error has occurred, but don't worry, the information is in the log.  The
 information is out of PermGen space.  I am running with 1024m of PermGen
 space.  Logs are attached

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] polyglot html5

2011-09-04 Thread Saptarshi Purkayastha
Thanks Bob,
This was very useful!!

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 4 September 2011 04:58, Bob Jolliffe bobjolli...@gmail.com wrote:

 Some sound recommendations here as we sail off into the trouble-free
 (!) waters of html5

 http://www.xmlplease.com/xhtml/xhtml5polyglot/

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 3603: Removed silly validation rule

2011-05-12 Thread Saptarshi Purkayastha
Having the first character as not digit is not silly...
It is considered by many as good practice...

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 12 May 2011 19:40, nore...@launchpad.net wrote:

 
 revno: 3603
 committer: Lars Helge Overland larshe...@gmail.com
 branch nick: dhis2
 timestamp: Thu 2011-05-12 19:38:50 +0200
 message:
  Removed silly validation rule
 modified:

  
 dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataentryform/DefaultDataEntryFormService.java

  
 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/validationRules.js


 --
 lp:dhis2
 https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

 Your team DHIS 2 developers is subscribed to branch lp:dhis2.
 To unsubscribe from this branch go to
 https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription

 === modified file
 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataentryform/DefaultDataEntryFormService.java'
 ---
 dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataentryform/DefaultDataEntryFormService.java
   2011-05-12 09:25:07 +
 +++
 dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataentryform/DefaultDataEntryFormService.java
   2011-05-12 17:38:50 +
 @@ -213,7 +213,7 @@
 // Insert name of indicator as value and title
 //
 -

 -String displayValue = indicator != null ? value=\[  +
 indicator.getName() + ]\ : [ Indicator does not exist ];
 +String displayValue = indicator != null ? value=\[  +
 indicator.getName() +  ]\ : [ Indicator does not exist ];
 String displayTitle = indicator != null ? title=\ +
 indicator.getName() + \ : [ Indicator does not exist ];

 inputHtml = inputHtml.contains( EMPTY_VALUE_TAG ) ?
 inputHtml.replace( EMPTY_VALUE_TAG, displayValue ) : inputHtml +   +
 displayValue;

 === modified file
 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/validationRules.js'
 ---
 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/validationRules.js
  2011-05-11 07:32:33 +
 +++
 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/validationRules.js
  2011-05-12 17:38:50 +
 @@ -54,8 +54,7 @@
name : {
required : true,
rangelength : [ 2, 210 ],
 -   alphanumericwithbasicpuncspaces : true,
 -   firstletteralphabet : true
 +   alphanumericwithbasicpuncspaces : true
},
memberValidator : {
required : true
 @@ -130,13 +129,11 @@
name : {
required : true,
alphanumericwithbasicpuncspaces : true,
 -   firstletteralphabet : false,
rangelength : [ 4, 150 ]
},
shortName : {
required : true,
alphanumericwithbasicpuncspaces : true,
 -   firstletteralphabet : false,
rangelength : [ 2, 25 ]
},
code : {
 @@ -248,7 +245,6 @@
required : true,
alphanumericwithbasicpuncspaces : true,
notOnlyDigits : true,
 -   firstletteralphabet : true,
rangelength : [ 3, 150 ]
}
},
 @@ -286,13 +282,11 @@
shortName : {
required : true,
rangelength : [ 2, 25 ],
 -   alphanumericwithbasicpuncspaces : true,
 -   firstletteralphabet : true
 +   alphanumericwithbasicpuncspaces : true
},
alternativeName : {
rangelength : [ 3, 150 ],
 -   alphanumericwithbasicpuncspaces : true,
 -   firstletteralphabet : true
 +   alphanumericwithbasicpuncspaces : true
},
code : {
rangelength : [ 0, 25 ],
 @@ -301,8 +295,7 @@
},
description : {
rangelength : [ 3, 250 ],
 -   alphanumericwithbasicpuncspaces : true,
 -   firstletteralphabet : true
 +   alphanumericwithbasicpuncspaces : true
},
url : {
url : true,


 ___
 Mailing list: https

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 3603: Removed silly validation rule

2011-05-12 Thread Saptarshi Purkayastha
Yes, thats an interesting point Jason in the blueprint and might be useful
and flexible approach to validation

I feel brute-forcing is much more easier than man-in-the-middle.
I can't be in say Kenya or Kerala, on the network of the guy logging in, but
can sit here in Norway and brute force and get it.
We removed the captcha and that was sad!!

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 12 May 2011 20:26, Jason Pickering jason.p.picker...@gmail.com wrote:

 I tend to agree with Saptarshi on this. What the devs may consider as
 silly, may be actually be useful and good practice. I think this again
 comes back to
 https://blueprints.launchpad.net/dhis2/+spec/regex-validation,
 which basically outlines a way to allow implementers to define what is
 silly and what is not silly. I personally think the requirement to
 have a password with a capital letter and a digit is silly and not
 particularly secure, especially over default HTTP connections. Anyway,
 my two cents.

 On Thu, May 12, 2011 at 8:13 PM, Saptarshi Purkayastha sun...@gmail.com
 wrote:
  Having the first character as not digit is not silly...
  It is considered by many as good practice...
 
  ---
  Regards,
  Saptarshi PURKAYASTHA
 
  My Tech Blog:  http://sunnytalkstech.blogspot.com
  You Live by CHOICE, Not by CHANCE
 
 
  On 12 May 2011 19:40, nore...@launchpad.net wrote:
 
  
  revno: 3603
  committer: Lars Helge Overland larshe...@gmail.com
  branch nick: dhis2
  timestamp: Thu 2011-05-12 19:38:50 +0200
  message:
   Removed silly validation rule
  modified:
 
 
  
 dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataentryform/DefaultDataEntryFormService.java
 
 
  
 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/validationRules.js
 
 
  --
  lp:dhis2
  https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
 
  Your team DHIS 2 developers is subscribed to branch lp:dhis2.
  To unsubscribe from this branch go to
 
 https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
 
  === modified file
 
 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataentryform/DefaultDataEntryFormService.java'
  ---
 
 dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataentryform/DefaultDataEntryFormService.java
2011-05-12 09:25:07 +
  +++
 
 dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataentryform/DefaultDataEntryFormService.java
2011-05-12 17:38:50 +
  @@ -213,7 +213,7 @@
  // Insert name of indicator as value and title
  //
  -
 
  -String displayValue = indicator != null ? value=\[ 
 +
  indicator.getName() + ]\ : [ Indicator does not exist ];
  +String displayValue = indicator != null ? value=\[ 
 +
  indicator.getName() +  ]\ : [ Indicator does not exist ];
  String displayTitle = indicator != null ? title=\ +
  indicator.getName() + \ : [ Indicator does not exist ];
 
  inputHtml = inputHtml.contains( EMPTY_VALUE_TAG ) ?
  inputHtml.replace( EMPTY_VALUE_TAG, displayValue ) : inputHtml +   +
  displayValue;
 
  === modified file
 
 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/validationRules.js'
  ---
 
 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/validationRules.js
   2011-05-11 07:32:33 +
  +++
 
 dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/validationRules.js
   2011-05-12 17:38:50 +
  @@ -54,8 +54,7 @@
 name : {
 required : true,
 rangelength : [ 2, 210 ],
  -   alphanumericwithbasicpuncspaces : true,
  -   firstletteralphabet : true
  +   alphanumericwithbasicpuncspaces : true
 },
 memberValidator : {
 required : true
  @@ -130,13 +129,11 @@
 name : {
 required : true,
 alphanumericwithbasicpuncspaces : true,
  -   firstletteralphabet : false,
 rangelength : [ 4, 150 ]
 },
 shortName : {
 required : true,
 alphanumericwithbasicpuncspaces : true,
  -   firstletteralphabet : false,
 rangelength : [ 2, 25 ]
 },
 code : {
  @@ -248,7 +245,6 @@
 required : true,
 alphanumericwithbasicpuncspaces : true,
 notOnlyDigits : true

Re: [Dhis2-devs] Alternative names

2011-04-27 Thread Saptarshi Purkayastha
I would actually suggest that multiple alternative names to be added for a
dataelement or indicator.
It would be similar to the representing synonyms for a data element or
indicator.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


2011/4/27 Lars Helge Øverland larshe...@gmail.com


 Hi all, we are currently investigating the core domain model in order to
 see how we can make the entities have a consistent set of properties.

 In that regard we are proposing to remove the *alternative name *property
 of data element and indicator entities. It seems this property is a ad-hoc
 legacy internationalization effort and not really useful. Would it be okay
 to remove it?



 regards, Lars


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


  1   2   3   >