Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Hi Suraj, Yes Ive seen you proposal. Thanks for your interest on this project. Ive seen also that youve been inspired by my sum up :-) Good, it was the objective! Yes please, do not hesitate to complete your proposal with code samples that youve put on github. Having a good understanding of the problem is a first step but having the capacity to start quickly developing is important too. So, your samples will be a good way for us to judge the quality of your proposal. Best regards. Lionel. De : suraj ks [mailto:suraj.gilles...@gmail.com] Envoyé : mardi 30 avril 2013 19:42 À : lio...@olpc-france.org Cc : Sugar-dev Devel; Manuel Quiñones; Daniel Narvaez Objet : Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13) Hi Lionel, The page which you created summarizing the work plan for HTML activities was very helpful in preparing my proposal. I've submitted the first draft of my proposal. Kindly go through it and help me improve the same. Please note that, I'm yet to post links to my work in my proposal. I'll be pushing all of it to github tomorrow and updating my proposal. Yet to setup the development environment too. Thanks, Suraj On Mon, Apr 22, 2013 at 1:32 AM, lio...@olpc-france.org mailto:lio...@olpc-france.org wrote: Hi Suraj, 1) Im used to develop using VirtualBox and Windows. But youre right, it need a powerful PC. Note that if you switch to GNU Linux, it could be better to switch to Fedora instead of Ubuntu because Sugar is built on Fedora. 2) Nice. Its a good start point. 3) Yes, a good understanding of interface between Python/Sugar and JavaScript is very important. BTW do not spent lot of time on Enyo. In fact Enyo is not at all a pre-requisite. At end we could hope to be JavaScript framework agnostic. If you follow threads in this mailing list, you could have enough lucky like me to learn a new JavaScript framework each day :-) So yes, being JavaScript framework agnostic is interesting. The issue about console is that the console-message is standardly use to get output from the console.log() JavaScript function. So, its not at all dedicated to communication between JavaScript and the embedding WebView. The hack that Ive used it that if the console message is prefixed by enyo:// its processed by the framework like a message to Sugar, else the framework just pass the message. You could see this in the Log activity when you run Grid paint activity. So the idea of improvement is to find a less hacky way to interface Sugar and JavaScript. Its one of objective of the IRC meeting. About UI, yes the main part of the work is to do CSS files to reproduce the Sugar UI. Then for non-UI Sugar features (datastore and collaboration) the work is to write a JavaScript API to map the Sugar API. Best regards. Lionel. De : suraj ks [mailto:suraj.gilles...@gmail.com mailto:suraj.gilles...@gmail.com ] Envoyé : samedi 20 avril 2013 23:26 À : lio...@olpc-france.org mailto:lio...@olpc-france.org Cc : Sugar-dev Devel; Manuel Quiñones; Daniel Narvaez Objet : Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13) Hi lionel, 1)Done with setting up of virtual box and installed sugar. Seems to be working fine. But, while running the Sugar in it, it slows down the pc a lot and various other issues come in while developing activities. I guess it is better if I switch to Ubuntu asap while hacking. 2)It was a good read . Now, I have a basic understanding how activities are developed and packed right from making a standalone python program to packaging and distributing the activities. I did install the helloworld activity and it seems to working fine. 3)I must admit, it is impressive work. Went through your manual and understood how the enyo framework alongwith,connect and sendmessage methods were used to interact between the user interface, javascript and python code I needed some clarifications, Honestly, i did not grasp the console part, which needed improvement. Were you talking about the connect and sendmessage? And, regarding the UI part, should I just create CSS files to replicate default sugar toolbars and other sugar user interfaces? Also, looking forward to the IRC meeting on html activities on Mon. :) Regards, Suraj On Tue, Apr 16, 2013 at 6:51 PM, lio...@olpc-france.org mailto:lio...@olpc-france.org wrote: Hi Suraj, To initialize your knowledge about the project, I can suggest you several steps: First, install Sugar on your computer. I understand that you're on Windows but it's pretty easy to install SugarOnAStick in a Windows VirtualBox. It's a good way to discover it. Have a look on [1] (in French but easy to translate or follow steps using screen capture). Second, learn how Sugar activity are developed and packaged today. The better
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Hi Lionel, The page which you created summarizing the work plan for HTML activities was very helpful in preparing my proposal. I've submitted the first draft of my proposal. Kindly go through it and help me improve the same. Please note that, I'm yet to post links to my work in my proposal. I'll be pushing all of it to github tomorrow and updating my proposal. Yet to setup the development environment too. Thanks, Suraj On Mon, Apr 22, 2013 at 1:32 AM, lio...@olpc-france.org wrote: ** ** Hi Suraj, ** ** 1) I’m used to develop using VirtualBox and Windows. But you’re right, it need a powerful PC. Note that if you switch to GNU Linux, it could be better to switch to Fedora instead of Ubuntu because Sugar is built on Fedora. 2) Nice. It’s a good start point. 3) Yes, a good understanding of interface between Python/Sugar and JavaScript is very important. BTW do not spent lot of time on Enyo. In fact Enyo is not at all a pre-requisite. At end we could hope to be JavaScript framework agnostic. If you follow threads in this mailing list, you could have enough lucky like me to learn a new JavaScript framework each day :-) So yes, being JavaScript framework agnostic is interesting. The issue about “console” is that the “console-message” is standardly use to get output from the “console.log()” JavaScript function. So, it’s not at all dedicated to communication between JavaScript and the embedding WebView. The hack that I’ve used it that if the console message is prefixed by “enyo://” it’s processed by the framework like a message to Sugar, else the framework just pass the message. You could see this in the “Log” activity when you run Grid paint activity. So the idea of improvement is to find a less hacky way to interface Sugar and JavaScript. It’s one of objective of the IRC meeting. ** ** About UI, yes the main part of the work is to do CSS files to reproduce the Sugar UI. Then for non-UI Sugar features (datastore and collaboration) the work is to write a JavaScript API to map the Sugar API. ** ** Best regards. ** ** Lionel. ** ** ** ** *De :* suraj ks [mailto:suraj.gilles...@gmail.com] *Envoyé :* samedi 20 avril 2013 23:26 *À :* lio...@olpc-france.org *Cc :* Sugar-dev Devel; Manuel Quiñones; Daniel Narvaez *Objet :* Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13) ** ** Hi lionel, ** ** 1)Done with setting up of virtual box and installed sugar. Seems to be working fine. But, while running the Sugar in it, it slows down the pc a lot and various other issues come in while developing activities. I guess it is better if I switch to Ubuntu asap while hacking. ** ** 2)It was a good read . Now, I have a basic understanding how activities are developed and packed right from making a standalone python program to packaging and distributing the activities. I did install the helloworld activity and it seems to working fine.*** * ** ** 3)I must admit, it is impressive work. Went through your manual and understood how the enyo framework alongwith,connect and sendmessage methods were used to interact between the user interface, javascript and python code ** ** ** ** ** ** I needed some clarifications, Honestly, i did not grasp the console part, which needed improvement. ** ** Were you talking about the connect and sendmessage? ** ** And, regarding the UI part, should I just create CSS files to replicate default sugar toolbars and other sugar user interfaces? ** ** ** ** ** ** ** ** ** ** ** ** Also, looking forward to the IRC meeting on html activities on Mon. :) ** ** ** ** ** ** ** ** Regards, Suraj ** ** ** ** On Tue, Apr 16, 2013 at 6:51 PM, lio...@olpc-france.org wrote: Hi Suraj, To initialize your knowledge about the project, I can suggest you several steps: First, install Sugar on your computer. I understand that you're on Windows but it's pretty easy to install SugarOnAStick in a Windows VirtualBox. It's a good way to discover it. Have a look on [1] (in French but easy to translate or follow steps using screen capture). Second, learn how Sugar activity are developed and packaged today. The better introduction about that is in the great book of James, Make your own Sugar activities [2]. It will be very interesting for you too to install and explore the HelloWorld Activity [3] in your VirtualBox. Third, explore the first experience of Sugar HTML5 activities I've wrote. A chapter in the book Make your own Sugar activities talk about that [4]. Gridpaint [5] is one of the first activity to use this framework. Install it and try to understand how it works: have specifically a look on Log (using Log activity) then to Enyo.py and Sugar.js files
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Hi Suraj, 1) Im used to develop using VirtualBox and Windows. But youre right, it need a powerful PC. Note that if you switch to GNU Linux, it could be better to switch to Fedora instead of Ubuntu because Sugar is built on Fedora. 2) Nice. Its a good start point. 3) Yes, a good understanding of interface between Python/Sugar and JavaScript is very important. BTW do not spent lot of time on Enyo. In fact Enyo is not at all a pre-requisite. At end we could hope to be JavaScript framework agnostic. If you follow threads in this mailing list, you could have enough lucky like me to learn a new JavaScript framework each day :-) So yes, being JavaScript framework agnostic is interesting. The issue about console is that the console-message is standardly use to get output from the console.log() JavaScript function. So, its not at all dedicated to communication between JavaScript and the embedding WebView. The hack that Ive used it that if the console message is prefixed by enyo:// its processed by the framework like a message to Sugar, else the framework just pass the message. You could see this in the Log activity when you run Grid paint activity. So the idea of improvement is to find a less hacky way to interface Sugar and JavaScript. Its one of objective of the IRC meeting. About UI, yes the main part of the work is to do CSS files to reproduce the Sugar UI. Then for non-UI Sugar features (datastore and collaboration) the work is to write a JavaScript API to map the Sugar API. Best regards. Lionel. De : suraj ks [mailto:suraj.gilles...@gmail.com] Envoyé : samedi 20 avril 2013 23:26 À : lio...@olpc-france.org Cc : Sugar-dev Devel; Manuel Quiñones; Daniel Narvaez Objet : Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13) Hi lionel, 1)Done with setting up of virtual box and installed sugar. Seems to be working fine. But, while running the Sugar in it, it slows down the pc a lot and various other issues come in while developing activities. I guess it is better if I switch to Ubuntu asap while hacking. 2)It was a good read . Now, I have a basic understanding how activities are developed and packed right from making a standalone python program to packaging and distributing the activities. I did install the helloworld activity and it seems to working fine. 3)I must admit, it is impressive work. Went through your manual and understood how the enyo framework alongwith,connect and sendmessage methods were used to interact between the user interface, javascript and python code I needed some clarifications, Honestly, i did not grasp the console part, which needed improvement. Were you talking about the connect and sendmessage? And, regarding the UI part, should I just create CSS files to replicate default sugar toolbars and other sugar user interfaces? Also, looking forward to the IRC meeting on html activities on Mon. :) Regards, Suraj On Tue, Apr 16, 2013 at 6:51 PM, lio...@olpc-france.org mailto:lio...@olpc-france.org wrote: Hi Suraj, To initialize your knowledge about the project, I can suggest you several steps: First, install Sugar on your computer. I understand that you're on Windows but it's pretty easy to install SugarOnAStick in a Windows VirtualBox. It's a good way to discover it. Have a look on [1] (in French but easy to translate or follow steps using screen capture). Second, learn how Sugar activity are developed and packaged today. The better introduction about that is in the great book of James, Make your own Sugar activities [2]. It will be very interesting for you too to install and explore the HelloWorld Activity [3] in your VirtualBox. Third, explore the first experience of Sugar HTML5 activities I've wrote. A chapter in the book Make your own Sugar activities talk about that [4]. Gridpaint [5] is one of the first activity to use this framework. Install it and try to understand how it works: have specifically a look on Log (using Log activity) then to Enyo.py and Sugar.js files. Once you've done it, there is few issue with the current way of works of this first Sugar HTML5 framework: 1. It depends on console-message to interface WebKit and JavaScript. It's a bad hack. This message could be deprecated on future version of WebKit. We should work one another interface. Exploring PhoneGap/Cordoba way of working for iOS (using a hidden Iframe) could be interesting. 2. It depends of the standard Sugar Toolbar and HTML5 controls don't have the Sugar LookFeel. We want integrate the full Sugar UI into the Sugar HTML5 framework. So we need CSS files and an API to match the Sugar controls and features. 3. It don't expose the Sugar feature into JavaScript. So each time the HTML5 application want to call Sugar, it need to call Python code. The Sugar HTML5 framework should expose natively main
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Hi lionel, 1)Done with setting up of virtual box and installed sugar. Seems to be working fine. But, while running the Sugar in it, it slows down the pc a lot and various other issues come in while developing activities. I guess it is better if I switch to Ubuntu asap while hacking. 2)It was a good read . Now, I have a basic understanding how activities are developed and packed right from making a standalone python program to packaging and distributing the activities. I did install the helloworld activity and it seems to working fine. 3)I must admit, it is impressive work. Went through your manual and understood how the enyo framework alongwith,connect and sendmessage methods were used to interact between the user interface, javascript and python code I needed some clarifications, Honestly, i did not grasp the console part, which needed improvement. Were you talking about the connect and sendmessage? And, regarding the UI part, should I just create CSS files to replicate default sugar toolbars and other sugar user interfaces? Also, looking forward to the IRC meeting on html activities on Mon. :) Regards, Suraj On Tue, Apr 16, 2013 at 6:51 PM, lio...@olpc-france.org wrote: ** ** Hi Suraj, To initialize your knowledge about the project, I can suggest you several steps: First, install Sugar on your computer. I understand that you're on Windows but it's pretty easy to install SugarOnAStick in a Windows VirtualBox. It's a good way to discover it. Have a look on [1] (in French but easy to translate or follow steps using screen capture). Second, learn how Sugar activity are developed and packaged today. The better introduction about that is in the great book of James, Make your own Sugar activities [2]. It will be very interesting for you too to install and explore the HelloWorld Activity [3] in your VirtualBox. Third, explore the first experience of Sugar HTML5 activities I've wrote. A chapter in the book Make your own Sugar activities talk about that [4]. Gridpaint [5] is one of the first activity to use this framework. Install it and try to understand how it works: have specifically a look on Log (using Log activity) then to Enyo.py and Sugar.js files. Once you've done it, there is few issue with the current way of works of this first Sugar HTML5 framework: **1. **It depends on console-message to interface WebKit and JavaScript. It's a bad hack. This message could be deprecated on future version of WebKit. We should work one another interface. Exploring PhoneGap/Cordoba way of working for iOS (using a hidden Iframe) could be interesting. **2. **It depends of the standard Sugar Toolbar and HTML5 controls don't have the Sugar LookFeel. We want integrate the full Sugar UI into the Sugar HTML5 framework. So we need CSS files and an API to match the Sugar controls and features. **3. **It don't expose the Sugar feature into JavaScript. So each time the HTML5 application want to call Sugar, it need to call Python code. The Sugar HTML5 framework should expose natively main Sugar features: specifically DataStore (read/write to Journal), telepathy (Collaboration). **4. **Finally, as you read in this thread, embedding a WebView is not necessarily the best solution to write a Web activity. BTW as a first approach to the problem, we could start with it. Point 2 could be started very quickly. You just had to list all Sugar Controls then think how they could be designed as HTML5 controls. Lionel. [1] http://olpc-france.org/blog/2013/02/decouvrez-sugar-depuis-votre-machine/* *** [2] http://www.flossmanuals.net/make-your-own-sugar-activities/ [3] http://activities.sugarlabs.org/fr/sugar/addon/4418 [4] http://en.flossmanuals.net/make-your-own-sugar-activities/developing-sugar-activities-using-html5/ [5] http://activities.sugarlabs.org/fr/sugar/addon/4647 ** ** ** ** ** ** *De :* suraj ks [mailto:suraj.gilles...@gmail.com] *Envoyé :* lundi 15 avril 2013 22:27 *À :* Daniel Narvaez; lio...@olpc-france.org *Cc :* Sugar-dev Devel; Manuel Quiñones *Objet :* Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13) ** ** Ok, ** ** In a nutshell, These are the tasks for this project. ** ** Going by the way Lionel suggested, Create a sugar activity with full screen web view control. Modify the current js framework and make use of native features to be able to write html activities in Sugar. ** ** ** ** Lionel mentioned, The step 1 need only to map a set of JavaScript functions to a set of Sugar functions. Once the list of Sugar functions is write, it’s not very complex to do. So find those functions and tweak them to support the same. And of course, work on the UI part
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Hi Suraj, To initialize your knowledge about the project, I can suggest you several steps: First, install Sugar on your computer. I understand that you're on Windows but it's pretty easy to install SugarOnAStick in a Windows VirtualBox. It's a good way to discover it. Have a look on [1] (in French but easy to translate or follow steps using screen capture). Second, learn how Sugar activity are developed and packaged today. The better introduction about that is in the great book of James, Make your own Sugar activities [2]. It will be very interesting for you too to install and explore the HelloWorld Activity [3] in your VirtualBox. Third, explore the first experience of Sugar HTML5 activities I've wrote. A chapter in the book Make your own Sugar activities talk about that [4]. Gridpaint [5] is one of the first activity to use this framework. Install it and try to understand how it works: have specifically a look on Log (using Log activity) then to Enyo.py and Sugar.js files. Once you've done it, there is few issue with the current way of works of this first Sugar HTML5 framework: 1. It depends on console-message to interface WebKit and JavaScript. It's a bad hack. This message could be deprecated on future version of WebKit. We should work one another interface. Exploring PhoneGap/Cordoba way of working for iOS (using a hidden Iframe) could be interesting. 2. It depends of the standard Sugar Toolbar and HTML5 controls don't have the Sugar LookFeel. We want integrate the full Sugar UI into the Sugar HTML5 framework. So we need CSS files and an API to match the Sugar controls and features. 3. It don't expose the Sugar feature into JavaScript. So each time the HTML5 application want to call Sugar, it need to call Python code. The Sugar HTML5 framework should expose natively main Sugar features: specifically DataStore (read/write to Journal), telepathy (Collaboration). 4. Finally, as you read in this thread, embedding a WebView is not necessarily the best solution to write a Web activity. BTW as a first approach to the problem, we could start with it. Point 2 could be started very quickly. You just had to list all Sugar Controls then think how they could be designed as HTML5 controls. Lionel. [1] http://olpc-france.org/blog/2013/02/decouvrez-sugar-depuis-votre-machine/ http://olpc-france.org/blog/2013/02/decouvrez-sugar-depuis-votre-machine/ [2] http://www.flossmanuals.net/make-your-own-sugar-activities/ http://www.flossmanuals.net/make-your-own-sugar-activities/ [3] http://activities.sugarlabs.org/fr/sugar/addon/4418 http://activities.sugarlabs.org/fr/sugar/addon/4418 [4] http://en.flossmanuals.net/make-your-own-sugar-activities/developing-sugar- activities-using-html5/ http://en.flossmanuals.net/make-your-own-sugar-activities/developing-sugar-a ctivities-using-html5/ [5] http://activities.sugarlabs.org/fr/sugar/addon/4647 http://activities.sugarlabs.org/fr/sugar/addon/4647 De : suraj ks [mailto:suraj.gilles...@gmail.com] Envoyé : lundi 15 avril 2013 22:27 À : Daniel Narvaez; lio...@olpc-france.org Cc : Sugar-dev Devel; Manuel Quiñones Objet : Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13) Ok, In a nutshell, These are the tasks for this project. Going by the way Lionel suggested, Create a sugar activity with full screen web view control. Modify the current js framework and make use of native features to be able to write html activities in Sugar. Lionel mentioned, The step 1 need only to map a set of JavaScript functions to a set of Sugar functions. Once the list of Sugar functions is write, its not very complex to do. So find those functions and tweak them to support the same. And of course, work on the UI part. Please correct if I'm wrong. Also, how are we going to get the JS and Sugar to communicate without the console? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Ok, In a nutshell, These are the tasks for this project. Going by the way Lionel suggested, Create a sugar activity with full screen web view control. Modify the current js framework and make use of native features to be able to write html activities in Sugar. Lionel mentioned, The step 1 need only to map a set of JavaScript functions to a set of Sugar functions. Once the list of Sugar functions is write, it’s not very complex to do. So find those functions and tweak them to support the same. And of course, work on the UI part. Please correct if I'm wrong. Also, how are we going to get the JS and Sugar to communicate without the console? On Sun, Apr 14, 2013 at 3:51 PM, Daniel Narvaez dwnarv...@gmail.com wrote: On 13 April 2013 19:55, suraj ks suraj.gilles...@gmail.com wrote: Oh! Ok. I'm getting a clearer picture of what you're trying to do. The application period is from 22nd April to 3rd May. We have to submit it within this period. I was talking to a few seniors today from my college who got into GSoC 12. They advised me to start working on the proposal atleast a week before the actual application period starts. They said, only when i start making the proposal I'll get to know more on the finer details of the implementation of the project. So the sooner I start the better it is. Well. . . you are my mentor. What do you suggest? :) It probably make sense for you to focus on step 1 (Lionel approach) in your proposal. It's simpler and he is actually going to mentor the GSOC task. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
On 13 April 2013 19:55, suraj ks suraj.gilles...@gmail.com wrote: Oh! Ok. I'm getting a clearer picture of what you're trying to do. The application period is from 22nd April to 3rd May. We have to submit it within this period. I was talking to a few seniors today from my college who got into GSoC 12. They advised me to start working on the proposal atleast a week before the actual application period starts. They said, only when i start making the proposal I'll get to know more on the finer details of the implementation of the project. So the sooner I start the better it is. Well. . . you are my mentor. What do you suggest? :) It probably make sense for you to focus on step 1 (Lionel approach) in your proposal. It's simpler and he is actually going to mentor the GSOC task. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Phew! Finally I'm done with my exams. :) Don't have to worry about writing another one until May 14(my semester end exams start then.) Meanwhile, I've been closely following the threads on HTML activities in the mailing list. As I was reading through, few basic doubts crept up. Do we have to build a sugar app which is supported by chrome in order to integrate the chrome window inside the sugar shell? Or are we building a chrome web app which is supported in sugar shell? Regarding the implementation of the same, which way will we be proceeding? I meant, will we be following the implementation technique suggested by you or the one suggested by Lionel? I'm planning to start work on the proposal in a few days. It would help a great deal if you could throw some light on these. Regards, Suraj On Thu, Apr 11, 2013 at 11:11 PM, Daniel Narvaez dwnarv...@gmail.comwrote: On 11 April 2013 18:41, suraj ks suraj.gilles...@gmail.com wrote: It might have messed up the installation part. I will check up on that. But, i can spot the xi-artwork folder in node_modules directory. And where do i set the NODE_PATH? In the node terminal? It's an environment variable, honestly I have no idea of how you set one in windows. Pretty sure google can find it for you though :) What i meant was the $volo create helloworld ayopa/omega-examples command was executed without any errors Oh ok, that's because there is no xi-artwork in there. It doesn't make sense though the second argument to volo create should be the repository of an activiity template (which omega-examples is not). Yes, i will familiarize myself with the existing code and will try creating some sample activities. Hopefully i will reach that stage in the forthcoming days where i'll be able to write my own UI controls. Cool! ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
On 13 April 2013 17:07, suraj ks suraj.gilles...@gmail.com wrote: Phew! Finally I'm done with my exams. :) Don't have to worry about writing another one until May 14(my semester end exams start then.) Great! :) Meanwhile, I've been closely following the threads on HTML activities in the mailing list. As I was reading through, few basic doubts crept up. Do we have to build a sugar app which is supported by chrome in order to integrate the chrome window inside the sugar shell? Or are we building a chrome web app which is supported in sugar shell? If we follow my approach, we are going to run chrome itself inside the sugar shell. A web activity is going to be installed in chrome and opened in a UI-less window (if you play with web apps in chrome, that should make more sense). The sugar shell is going to do some magic to make the chrome web activities look like native activities. Display an icon for them in the home etc. Regarding the implementation of the same, which way will we be proceeding? I meant, will we be following the implementation technique suggested by you or the one suggested by Lionel? Mine of course! :P Kidding, I don't know that yet. We are planning to meet when Simon (one of the sugar maintainers) is back and find a consensus on the way forward. I'm planning to start work on the proposal in a few days. It would help a great deal if you could throw some light on these. When does the proposal need to be submitted? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Oh! Ok. I'm getting a clearer picture of what you're trying to do. The application period is from 22nd April to 3rd May. We have to submit it within this period. I was talking to a few seniors today from my college who got into GSoC 12. They advised me to start working on the proposal atleast a week before the actual application period starts. They said, only when i start making the proposal I'll get to know more on the finer details of the implementation of the project. So the sooner I start the better it is. Well. . . you are my mentor. What do you suggest? :) On Sat, Apr 13, 2013 at 11:00 PM, Daniel Narvaez dwnarv...@gmail.comwrote: On 13 April 2013 17:07, suraj ks suraj.gilles...@gmail.com wrote: Phew! Finally I'm done with my exams. :) Don't have to worry about writing another one until May 14(my semester end exams start then.) Great! :) Meanwhile, I've been closely following the threads on HTML activities in the mailing list. As I was reading through, few basic doubts crept up. Do we have to build a sugar app which is supported by chrome in order to integrate the chrome window inside the sugar shell? Or are we building a chrome web app which is supported in sugar shell? If we follow my approach, we are going to run chrome itself inside the sugar shell. A web activity is going to be installed in chrome and opened in a UI-less window (if you play with web apps in chrome, that should make more sense). The sugar shell is going to do some magic to make the chrome web activities look like native activities. Display an icon for them in the home etc. Regarding the implementation of the same, which way will we be proceeding? I meant, will we be following the implementation technique suggested by you or the one suggested by Lionel? Mine of course! :P Kidding, I don't know that yet. We are planning to meet when Simon (one of the sugar maintainers) is back and find a consensus on the way forward. I'm planning to start work on the proposal in a few days. It would help a great deal if you could throw some light on these. When does the proposal need to be submitted? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Hey, I work on Ubuntu. A couple of days back it crashed due to some inexplicable reason. :( For the past several hours, I've been trying to reinstall it and get started on the UI part. My attempts were futile(re-installing ubuntu). I'm afraid the only alternative available to me is to switch to windows. Hope you don't mind me working on windows. I'm getting started with setting up the tools needed to work on the UI right away(on windows). :) Regards, Suraj On Wed, Apr 10, 2013 at 11:55 PM, Daniel Narvaez dwnarv...@gmail.comwrote: On 10 April 2013 19:54, suraj ks suraj.gilles...@gmail.com wrote: Hi, Its cool :) Which are the sugar modules that I should download to start working on the UI? Which OS are you using? Anyway I'd suggest 1 Install nodejs http://nodejs.org/ 2 Install volojs http://volojs.org/ 3 Install chrome 4 Clone the xi modules https://github.com/ayopa/xi-graphics https://github.com/ayopa/xi-artwork https://github.com/ayopa/xi-activity 5 Create an activity. Something like volo create helloworld ayopa/xi-activity volo add xi-graphics Try to install the web app in chrome. There is great documentation about chrome web apps here: http://developer.chrome.com/trunk/apps/about_apps.html Note that the xi libraries has been tested only on b2g (firefox) so far, you might need small modifications to make them work. Please submit these changes as pull requests. 6 Give a try to the two examples activities we have https://github.com/ayopa/omega-examples Once that's working you should be all setup. And you can discuss with Manuel the next development steps. Feel free to ask for help on the mailing list for any problem you run into. I wrote the above list without testing it, so it might not work out of the box... If you post any corrections here, it's going to be useful to everyone. Also, i found a GSoC mailing list, which hardly had any content relating to GSoC. Should i proceed further with my discussions in the current mailing list(sugar-dev) or should i switch to the GSoC mailing list? I don't know what that list is about exactly but anything about development should definitely stay here on sugar-devel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Hi, I'm having trouble creating an activity using volo. i cloned the modules which you mentioned to D:\pesit\ i tried creating a sample like how to suggested. But it shows the following error: D:\pesitvolo create helloAgain ayopa/xi-activity Downloading: https://nodeload.github.com/ayopa/xi-activity/legacy.zip/master Malformed volofile: D:\pesit\helloAgain\volofile: Error: Cannot find module 'xi-artwork/update-artwork' onCreate did not succeed. You can try later by typing volo onCreate inside the project that was just created, passing any arguments you passed to the create call. https://api.github.com/repos/ayopa/xi-activity/zipball/master used to create helloAgain Please help me out here. Regards, Suraj On Thu, Apr 11, 2013 at 12:01 PM, suraj ks suraj.gilles...@gmail.comwrote: Hey, I work on Ubuntu. A couple of days back it crashed due to some inexplicable reason. :( For the past several hours, I've been trying to reinstall it and get started on the UI part. My attempts were futile(re-installing ubuntu). I'm afraid the only alternative available to me is to switch to windows. Hope you don't mind me working on windows. I'm getting started with setting up the tools needed to work on the UI right away(on windows). :) Regards, Suraj On Wed, Apr 10, 2013 at 11:55 PM, Daniel Narvaez dwnarv...@gmail.comwrote: On 10 April 2013 19:54, suraj ks suraj.gilles...@gmail.com wrote: Hi, Its cool :) Which are the sugar modules that I should download to start working on the UI? Which OS are you using? Anyway I'd suggest 1 Install nodejs http://nodejs.org/ 2 Install volojs http://volojs.org/ 3 Install chrome 4 Clone the xi modules https://github.com/ayopa/xi-graphics https://github.com/ayopa/xi-artwork https://github.com/ayopa/xi-activity 5 Create an activity. Something like volo create helloworld ayopa/xi-activity volo add xi-graphics Try to install the web app in chrome. There is great documentation about chrome web apps here: http://developer.chrome.com/trunk/apps/about_apps.html Note that the xi libraries has been tested only on b2g (firefox) so far, you might need small modifications to make them work. Please submit these changes as pull requests. 6 Give a try to the two examples activities we have https://github.com/ayopa/omega-examples Once that's working you should be all setup. And you can discuss with Manuel the next development steps. Feel free to ask for help on the mailing list for any problem you run into. I wrote the above list without testing it, so it might not work out of the box... If you post any corrections here, it's going to be useful to everyone. Also, i found a GSoC mailing list, which hardly had any content relating to GSoC. Should i proceed further with my discussions in the current mailing list(sugar-dev) or should i switch to the GSoC mailing list? I don't know what that list is about exactly but anything about development should definitely stay here on sugar-devel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Oh. You need to install the xi-artwork nodejs module. I think you cloned that git repo already so npm install -g path/to/xi-artwork Then volo create... should work. On 11 April 2013 11:37, suraj ks suraj.gilles...@gmail.com wrote: Hi, I'm having trouble creating an activity using volo. i cloned the modules which you mentioned to D:\pesit\ i tried creating a sample like how to suggested. But it shows the following error: D:\pesitvolo create helloAgain ayopa/xi-activity Downloading: https://nodeload.github.com/ayopa/xi-activity/legacy.zip/master Malformed volofile: D:\pesit\helloAgain\volofile: Error: Cannot find module 'xi-artwork/update-artwork' onCreate did not succeed. You can try later by typing volo onCreate inside the project that was just created, passing any arguments you passed to the create call. https://api.github.com/repos/ayopa/xi-activity/zipball/master used to create helloAgain Please help me out here. Regards, Suraj On Thu, Apr 11, 2013 at 12:01 PM, suraj ks suraj.gilles...@gmail.comwrote: Hey, I work on Ubuntu. A couple of days back it crashed due to some inexplicable reason. :( For the past several hours, I've been trying to reinstall it and get started on the UI part. My attempts were futile(re-installing ubuntu). I'm afraid the only alternative available to me is to switch to windows. Hope you don't mind me working on windows. I'm getting started with setting up the tools needed to work on the UI right away(on windows). :) Regards, Suraj On Wed, Apr 10, 2013 at 11:55 PM, Daniel Narvaez dwnarv...@gmail.comwrote: On 10 April 2013 19:54, suraj ks suraj.gilles...@gmail.com wrote: Hi, Its cool :) Which are the sugar modules that I should download to start working on the UI? Which OS are you using? Anyway I'd suggest 1 Install nodejs http://nodejs.org/ 2 Install volojs http://volojs.org/ 3 Install chrome 4 Clone the xi modules https://github.com/ayopa/xi-graphics https://github.com/ayopa/xi-artwork https://github.com/ayopa/xi-activity 5 Create an activity. Something like volo create helloworld ayopa/xi-activity volo add xi-graphics Try to install the web app in chrome. There is great documentation about chrome web apps here: http://developer.chrome.com/trunk/apps/about_apps.html Note that the xi libraries has been tested only on b2g (firefox) so far, you might need small modifications to make them work. Please submit these changes as pull requests. 6 Give a try to the two examples activities we have https://github.com/ayopa/omega-examples Once that's working you should be all setup. And you can discuss with Manuel the next development steps. Feel free to ask for help on the mailing list for any problem you run into. I wrote the above list without testing it, so it might not work out of the box... If you post any corrections here, it's going to be useful to everyone. Also, i found a GSoC mailing list, which hardly had any content relating to GSoC. Should i proceed further with my discussions in the current mailing list(sugar-dev) or should i switch to the GSoC mailing list? I don't know what that list is about exactly but anything about development should definitely stay here on sugar-devel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Daniel Narvaez ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
Still showing the same error. Please bear with me. This is the first time I'm working with node and volo. But the volo create seems to working fine with the omega-examples. It was created without any hassles. I'm going through the chrome app page which you suggested. Do I have to just tweak the omega-examples code to make it run on chrome? Or do i have to start with creating manifest, background script ,etc as mentioned here http://developer.chrome.com/trunk/apps/first_app.html ? P.S : I have an exam day after tomorrow. That's why my progress is slow. It is my last exam. Once i'm done with it i'll be able to devote all my attention towards Sugar. On Thu, Apr 11, 2013 at 5:26 PM, Daniel Narvaez dwnarv...@gmail.com wrote: Oh. You need to install the xi-artwork nodejs module. I think you cloned that git repo already so npm install -g path/to/xi-artwork Then volo create... should work. On 11 April 2013 11:37, suraj ks suraj.gilles...@gmail.com wrote: Hi, I'm having trouble creating an activity using volo. i cloned the modules which you mentioned to D:\pesit\ i tried creating a sample like how to suggested. But it shows the following error: D:\pesitvolo create helloAgain ayopa/xi-activity Downloading: https://nodeload.github.com/ayopa/xi-activity/legacy.zip/master Malformed volofile: D:\pesit\helloAgain\volofile: Error: Cannot find module 'xi-artwork/update-artwork' onCreate did not succeed. You can try later by typing volo onCreate inside the project that was just created, passing any arguments you passed to the create call. https://api.github.com/repos/ayopa/xi-activity/zipball/master used to create helloAgain Please help me out here. Regards, Suraj On Thu, Apr 11, 2013 at 12:01 PM, suraj ks suraj.gilles...@gmail.comwrote: Hey, I work on Ubuntu. A couple of days back it crashed due to some inexplicable reason. :( For the past several hours, I've been trying to reinstall it and get started on the UI part. My attempts were futile(re-installing ubuntu). I'm afraid the only alternative available to me is to switch to windows. Hope you don't mind me working on windows. I'm getting started with setting up the tools needed to work on the UI right away(on windows). :) Regards, Suraj On Wed, Apr 10, 2013 at 11:55 PM, Daniel Narvaez dwnarv...@gmail.comwrote: On 10 April 2013 19:54, suraj ks suraj.gilles...@gmail.com wrote: Hi, Its cool :) Which are the sugar modules that I should download to start working on the UI? Which OS are you using? Anyway I'd suggest 1 Install nodejs http://nodejs.org/ 2 Install volojs http://volojs.org/ 3 Install chrome 4 Clone the xi modules https://github.com/ayopa/xi-graphics https://github.com/ayopa/xi-artwork https://github.com/ayopa/xi-activity 5 Create an activity. Something like volo create helloworld ayopa/xi-activity volo add xi-graphics Try to install the web app in chrome. There is great documentation about chrome web apps here: http://developer.chrome.com/trunk/apps/about_apps.html Note that the xi libraries has been tested only on b2g (firefox) so far, you might need small modifications to make them work. Please submit these changes as pull requests. 6 Give a try to the two examples activities we have https://github.com/ayopa/omega-examples Once that's working you should be all setup. And you can discuss with Manuel the next development steps. Feel free to ask for help on the mailing list for any problem you run into. I wrote the above list without testing it, so it might not work out of the box... If you post any corrections here, it's going to be useful to everyone. Also, i found a GSoC mailing list, which hardly had any content relating to GSoC. Should i proceed further with my discussions in the current mailing list(sugar-dev) or should i switch to the GSoC mailing list? I don't know what that list is about exactly but anything about development should definitely stay here on sugar-devel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Daniel Narvaez ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
On 11 April 2013 16:43, suraj ks suraj.gilles...@gmail.com wrote: Still showing the same error. Please bear with me. This is the first time I'm working with node and volo. I'm not sure how you installed nodejs but you might need to set NODE_PATH to point to the node_modules dir where xi-artwork was installed. The error means the xi-artwork nodejs module was not found. But the volo create seems to working fine with the omega-examples. It was created without any hassles. I'm not sure what you mean here. volo create setups a template activity in a new directory, it shouldn't matter where you run it. I'm going through the chrome app page which you suggested. Do I have to just tweak the omega-examples code to make it run on chrome? Or do i have to start with creating manifest, background script ,etc as mentioned here http://developer.chrome.com/trunk/apps/first_app.html ? I was suggesting to tweak the omega-examples as a way to get familiar with the existing code. It's also a useful task because we will need to fix those at some point. But it's up to you really... When you figured out the volo create stuff you might also want to try to write an example activity yourself just to see how the current stuff works. The real task will be to write more UI controls, but you probably need to understand pretty well what is there already before starting with that. Good luck with your exam :) ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
It might have messed up the installation part. I will check up on that. But, i can spot the xi-artwork folder in node_modules directory. And where do i set the NODE_PATH? In the node terminal? What i meant was the $volo create helloworld ayopa/omega-examples command was executed without any errors Yes, i will familiarize myself with the existing code and will try creating some sample activities. Hopefully i will reach that stage in the forthcoming days where i'll be able to write my own UI controls. And thanks for the wishes I'm off to study. :) Cheers! On Thu, Apr 11, 2013 at 9:26 PM, Daniel Narvaez dwnarv...@gmail.com wrote: On 11 April 2013 16:43, suraj ks suraj.gilles...@gmail.com wrote: Still showing the same error. Please bear with me. This is the first time I'm working with node and volo. I'm not sure how you installed nodejs but you might need to set NODE_PATH to point to the node_modules dir where xi-artwork was installed. The error means the xi-artwork nodejs module was not found. But the volo create seems to working fine with the omega-examples. It was created without any hassles. I'm not sure what you mean here. volo create setups a template activity in a new directory, it shouldn't matter where you run it. I'm going through the chrome app page which you suggested. Do I have to just tweak the omega-examples code to make it run on chrome? Or do i have to start with creating manifest, background script ,etc as mentioned here http://developer.chrome.com/trunk/apps/first_app.html ? I was suggesting to tweak the omega-examples as a way to get familiar with the existing code. It's also a useful task because we will need to fix those at some point. But it's up to you really... When you figured out the volo create stuff you might also want to try to write an example activity yourself just to see how the current stuff works. The real task will be to write more UI controls, but you probably need to understand pretty well what is there already before starting with that. Good luck with your exam :) ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
On 11 April 2013 18:41, suraj ks suraj.gilles...@gmail.com wrote: It might have messed up the installation part. I will check up on that. But, i can spot the xi-artwork folder in node_modules directory. And where do i set the NODE_PATH? In the node terminal? It's an environment variable, honestly I have no idea of how you set one in windows. Pretty sure google can find it for you though :) What i meant was the $volo create helloworld ayopa/omega-examples command was executed without any errors Oh ok, that's because there is no xi-artwork in there. It doesn't make sense though the second argument to volo create should be the repository of an activiity template (which omega-examples is not). Yes, i will familiarize myself with the existing code and will try creating some sample activities. Hopefully i will reach that stage in the forthcoming days where i'll be able to write my own UI controls. Cool! ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)
On 10 April 2013 19:54, suraj ks suraj.gilles...@gmail.com wrote: Hi, Its cool :) Which are the sugar modules that I should download to start working on the UI? Which OS are you using? Anyway I'd suggest 1 Install nodejs http://nodejs.org/ 2 Install volojs http://volojs.org/ 3 Install chrome 4 Clone the xi modules https://github.com/ayopa/xi-graphics https://github.com/ayopa/xi-artwork https://github.com/ayopa/xi-activity 5 Create an activity. Something like volo create helloworld ayopa/xi-activity volo add xi-graphics Try to install the web app in chrome. There is great documentation about chrome web apps here: http://developer.chrome.com/trunk/apps/about_apps.html Note that the xi libraries has been tested only on b2g (firefox) so far, you might need small modifications to make them work. Please submit these changes as pull requests. 6 Give a try to the two examples activities we have https://github.com/ayopa/omega-examples Once that's working you should be all setup. And you can discuss with Manuel the next development steps. Feel free to ask for help on the mailing list for any problem you run into. I wrote the above list without testing it, so it might not work out of the box... If you post any corrections here, it's going to be useful to everyone. Also, i found a GSoC mailing list, which hardly had any content relating to GSoC. Should i proceed further with my discussions in the current mailing list(sugar-dev) or should i switch to the GSoC mailing list? I don't know what that list is about exactly but anything about development should definitely stay here on sugar-devel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel