Re: [Sugar-devel] Sugar-devel Digest, Vol 17, Issue 49

2010-03-21 Thread vijit singh
-- Forwarded message --

 From: Walter Bender walter.ben...@gmail.com
 To: Lucian Branescu lucian.brane...@gmail.com
 Date: Sun, 21 Mar 2010 21:10:59 -0400
 Subject: Re: [Sugar-devel] [GSoC] Sugar Browser
 On Sun, Mar 21, 2010 at 8:27 PM, Lucian Branescu
 lucian.brane...@gmail.com wrote:
  On 22 March 2010 00:12, Benjamin M. Schwartz bmsch...@fas.harvard.edu
  wrote:
 
  Lucian Branescu wrote:
   I am inclined to choose the second for a few reasons. First, current
   webkit
   is much faster and uses less memory than current gecko, which has been
   especially visible on XOs.
 
  I'm not willing to accept this as proven.  As for faster, see
  http://weblogs.mozillazine.org/bz/archives/020434.html
 
  As for memory usage, see
  http://dotnetperls.com/chrome-memory
 
  Of course Chrome usage is much higher. Chrome has at least one process
 for
  each tab.
  Safari is also a wreck, especially on Windows.
 
  Webkit may be faster (although... with which javascript engine? on what
  graphics hardware? with which bookmarks/awesomebar system?) but I don't
  think it's so obvious.  Previous comparisons on the XO have been deeply
  flawed because Gecko was scaling up all fonts and images, while Webkit
 was
  not.
 
  The test I have done both on OS X and soas have shown webkit to be far
  superior in execution speed and still superior in memory usage for
  benchmarks. These weren't entirely relevant, so I will do another set of
  benchmarks that are more relevant to XO usage (with firefox 3.6).
  Here are my old results:
  http://dl.dropbox.com/u/317039/webkit%20vs%20gecko%20osx.txt
  http://dl.dropbox.com/u/317039/webkit%20vs%20gecko%20soas.txt
  http://dl.dropbox.com/u/317039/webkit%20vs%20gecko%20winxp.txt
 
   While gecko has superior extendability (XUL
   extensions), Browse isn't compatible with Firefox extensions, so
   anything
   would need to be rewritten anyway. Userscripts (Greasemonkey) serve
 most
   needs for now and if needed, an extension API akin to Mozilla's
 Jetpack
   or
   Chrome's extensions could be implemented.
 
  This sounds like an argument for staying with Gecko and adopting
  Greasemonkey and Jetpack.
 
  It's an argument for not really needing Gecko. Both could be implemented
 on
  Webkit.
 
   Second, webkit is being used by a lot of projects and has the backing
 of
   several companies.
 
  Gecko is far more widely deployed (~30% of all internet users).
 
  The arguments other people have given to me have to do with how many
  projects use it (maintained by many companies/communities).
 
   Furthermore, it is packaged more consistently across
   platforms/distributions.
 
  I'm not sure what this means, but it doesn't seem critical.
 
  Xulrunner tends to have many patches applied by distros. Webkit doesn't.
 
   Third, pywebkitgtk and hulahop have a similar API (and pywebkitgtk
 tries
   not
   to diverge unless necessary) and it should be possible to not depend
 too
   much on any one of them. A thin abstraction layer could be written on
   top to
   handle most differences and it should only rarely be needed to go
   beneath
   this abstraction. While this would most likely not result in a browser
   than
   can switch engines at runtime, it should make any future porting much
   easier.
 
  I'm certainly not going to complain about an abstraction layer of this
  sort.  As I've said before, I think a lot of developers would enjoy an
  engine-agnostic browser widget.
 
  --Ben
 
 
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
 

 While performance differences might be somewhat interesting, the fact
 that tests tend to be inconclusive suggests it is not a compelling
 reason to choose one over the other. I think one point that Lucian
 made is being lost in the discussion: maintainability. Is a
 webkit-based browser going to be easier to maintain in the near to
 long term?

 -walter

 --
 Walter Bender
 Sugar Labs
 http://www.sugarlabs.org


Yes, surely maintainability over the long term should be a major concern in
making any decision. I think the fact that Mozilla might lose support for
XPCOM ( if that's true) is something that matters. However, developing the
webkit-based browser during gsoc( to explore the possibilities) along with
maintaining browse is what might be a good solution.

Regards,
VIJIT
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Problem importing hulahop.webview() in sugar emulator

2010-02-26 Thread vijit singh
Hello Tomeu,

Thank You once again for your guidance. Surely I will keep on posting the
updates. I was also confused about the use of the statement-

*hulahop.startup(os.path.join(env.get_profile_path(), 'gecko'))*
*
*
What is the significance of hulahop.startup? It surely seems to be imp.
since the absence of this line results into an error.

Also, gecko folder seems to be containing paths to different xulrunner
files. Does including the same gecko folder (as is used in sugar) into the
socialcalc package which we will make for fedora, and referring to this
folder through the hulahop.startup statement work on fedora as well?  Kindly
give some pointers.

Regards,
VIJIT

On Fri, Feb 26, 2010 at 8:21 PM, Tomeu Vizoso to...@tomeuvizoso.net wrote:

 2010/2/23 vijit singh vijitthetopco...@gmail.com:
  Hello Tomeu,
  I tried installing hulahop again as you suggested on fedora-11 and it got
 installed properly. Now, the socialcalc and the browse activity are running
 as well. Thank you for your guidance.
  Also wished to discuss that we are planning to port SocialCalc on various
 linux distros starting from Fedora. The first approach which we are
 considering is by using a pygtk based root-level window to embed
 hulahop.webview widget in quite a similar fashion as it has been done in
 Sugar currently. Do you think it would be a feasible approach? Is there any
 other approach which you suggest would be better? Kindly give some pointers
 on the issue.

 This is the approach that I would recommend. Please keep us posted!

 Regards,

 Tomeu

  Regards,
  VIJIT
 
 
  On Tue, Feb 16, 2010 at 12:29 AM, Tomeu Vizoso to...@sugarlabs.org
 wrote:
 
  On Mon, Feb 15, 2010 at 18:56, Vijit Singh vi...@seeta.in wrote:
   Hello Tomeu and Aleskey,
   Thank you for your replies. I will test your suggestions in a day or
 two and
   will let you know about the results since I have been out of town and
 hence
   unable to access net since the last 2 days.
  
   On Sun, Feb 14, 2010 at 1:14 AM, Tomeu Vizoso to...@tomeuvizoso.net
 wrote:
  
   On Fri, Feb 12, 2010 at 23:36, vijit singh 
 vijitthetopco...@gmail.com
   wrote:
Hello everyone,
SocialCalc is based upon the use of hulahop.webview widget. While
 trying
to
run socialcalc on sugar emulator running on Fedora and Ubuntu,
 error
saying
No module hulahop was occurring. So, we tried installing hulahop
 on
these
linux distributions.
1. Firstly we tried with ubuntu-8.10, here are the exact steps
 taken-
   
 xulrunner was pre-installed. And then I
 installed python-support.deb
and
libxul0d.deb which are pre-requistie packages for python-xpcom
 package
(other pre-requistie packages were already installed). Then i
 installed
python-xpcom. And then I installed python-hulahop and hulahop.
   
Downlaod links for these packages are as follows:-
   
http://packages.ubuntu.com/en/intrepid/python/python-xpcom
http://packages.ubuntu.com/en/intrepid/hulahop
http://packages.ubuntu.com/en/intrepid/python-hulahop
Now, though hulahop was getting imported but while using
hulahop.webview, an
error saying hulahop has no attribute webview occured. However,
 when
we
checked the hulahop folder, there was a file named webview.py, so
 this
problem might be because of some kind of wrongly set library paths.
2. Then we tried it with ubuntu-9.10, with similar steps but got
 the
same
result.
3. Then we tried it with fedora-11-
Installed hulahop and then xpcom from the following
   
link-
 http://www.rpmfind.net/linux/RPM/mandriva/2009.1/i586/media/main/release/python-xpcom-1.9.0.8-1mdv2009.1.i586.html
  
   This is a Mandriva package. I recommend using the tools available in
   each distro for installing software. In Fedora it would be: yum
   install hulahop
  
   We tried yum install hulahop but it said no package named hulahop, our
 first
   approach on fedora was to use yum and on ubuntu was to use apt get,
 but both
   gave the same results.
 
  In Fedora 11, this is the ouput of yum search hulahop:
 
  [to...@zviratko ~]$ yum search hulahop
  Loaded plugins: fastestmirror, presto, refresh-packagekit
  === Matched: hulahop
 ===
  hulahop.i586 : A pygtk widget for embedding mozilla
 
  Are you sure you wrote the name of the package correctly?
 
  Regards,
 
  Tomeu
 
   Regards,
   VIJIT
 
 

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Problem importing hulahop.webview() in sugar emulator

2010-02-23 Thread vijit singh
Hello Tomeu,

I tried installing hulahop again as you suggested on fedora-11 and it got
installed properly. Now, the socialcalc and the browse activity are running
as well. Thank you for your guidance.

Also wished to discuss that we are planning to port SocialCalc on various
linux distros starting from Fedora. The first approach which we are
considering is by using a pygtk based root-level window to embed
hulahop.webview widget in quite a similar fashion as it has been done in
Sugar currently. Do you think it would be a feasible approach? Is there any
other approach which you suggest would be better? Kindly give some pointers
on the issue.

Regards,
VIJIT



On Tue, Feb 16, 2010 at 12:29 AM, Tomeu Vizoso to...@sugarlabs.org wrote:

 On Mon, Feb 15, 2010 at 18:56, Vijit Singh vi...@seeta.in wrote:
  Hello Tomeu and Aleskey,
  Thank you for your replies. I will test your suggestions in a day or two
 and
  will let you know about the results since I have been out of town and
 hence
  unable to access net since the last 2 days.
 
  On Sun, Feb 14, 2010 at 1:14 AM, Tomeu Vizoso to...@tomeuvizoso.net
 wrote:
 
  On Fri, Feb 12, 2010 at 23:36, vijit singh vijitthetopco...@gmail.com
  wrote:
   Hello everyone,
   SocialCalc is based upon the use of hulahop.webview widget. While
 trying
   to
   run socialcalc on sugar emulator running on Fedora and Ubuntu, error
   saying
   No module hulahop was occurring. So, we tried installing hulahop on
   these
   linux distributions.
   1. Firstly we tried with ubuntu-8.10, here are the exact steps taken-
  
xulrunner was pre-installed. And then I installed python-support.deb
   and
   libxul0d.deb which are pre-requistie packages for python-xpcom package
   (other pre-requistie packages were already installed). Then i
 installed
   python-xpcom. And then I installed python-hulahop and hulahop.
  
   Downlaod links for these packages are as follows:-
  
   http://packages.ubuntu.com/en/intrepid/python/python-xpcom
   http://packages.ubuntu.com/en/intrepid/hulahop
   http://packages.ubuntu.com/en/intrepid/python-hulahop
   Now, though hulahop was getting imported but while using
   hulahop.webview, an
   error saying hulahop has no attribute webview occured. However, when
   we
   checked the hulahop folder, there was a file named webview.py, so this
   problem might be because of some kind of wrongly set library paths.
   2. Then we tried it with ubuntu-9.10, with similar steps but got the
   same
   result.
   3. Then we tried it with fedora-11-
   Installed hulahop and then xpcom from the following
  
   link-
 http://www.rpmfind.net/linux/RPM/mandriva/2009.1/i586/media/main/release/python-xpcom-1.9.0.8-1mdv2009.1.i586.html
 
  This is a Mandriva package. I recommend using the tools available in
  each distro for installing software. In Fedora it would be: yum
  install hulahop
 
  We tried yum install hulahop but it said no package named hulahop, our
 first
  approach on fedora was to use yum and on ubuntu was to use apt get, but
 both
  gave the same results.

 In Fedora 11, this is the ouput of yum search hulahop:

 [to...@zviratko ~]$ yum search hulahop
 Loaded plugins: fastestmirror, presto, refresh-packagekit
 === Matched: hulahop
 ===
 hulahop.i586 : A pygtk widget for embedding mozilla

 Are you sure you wrote the name of the package correctly?

 Regards,

 Tomeu

  Regards,
  VIJIT

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Problem importing hulahop.webview() in sugar emulator

2010-02-12 Thread vijit singh
Hello everyone,

SocialCalc is based upon the use of hulahop.webview widget. While trying to
run socialcalc on sugar emulator running on Fedora and Ubuntu, error saying
No module hulahop was occurring. So, we tried installing hulahop on these
linux distributions.

*1. Firstly we tried with ubuntu-8.10, here are the exact steps taken- *

* **xulrunner was pre-installed. And then I installed python-support.deb and
libxul0d.deb which are pre-requistie packages for python-xpcom package
(other pre-requistie packages were already installed). Then i installed
python-xpcom. And then I installed python-hulahop and hulahop. *

*Downlaod links for these packages are as follows:-*
*http://packages.ubuntu.com/en/intrepid/python/python-xpcom*
* http://packages.ubuntu.com/en/intrepid/python/python-xpcom**
http://packages.ubuntu.com/en/intrepid/hulahop*http://packages.ubuntu.com/en/intrepid/hulahop
*
**http://packages.ubuntu.com/en/intrepid/python-hulahop*

Now, though hulahop was getting imported but while using hulahop.webview, an
error saying hulahop has no attribute webview occured. However, when we
checked the hulahop folder, there was a file named webview.py, so this
problem might be because of some kind of wrongly set library paths.

*2. Then we tried it with ubuntu-9.10, with similar steps but got the same
result.*
*
*
*3. Then we tried it with fedora-11-*
*
*
*Installed hulahop and then xpcom from the following link- **
http://www.rpmfind.net/linux/RPM/mandriva/2009.1/i586/media/main/release/python-xpcom-1.9.0.8-1mdv2009.1.i586.html
*

Now, when we tried to use hulahop.webview, the following error occured-
http://pastebin.be/23452. though hulahop was getting imported properly in
this case as well.

Could someone please guide us about what are right steps in case we are
wrong somewhere. Also has anyone been able to use
hulahop.webview  successfully on linux distros before?

Regards,
VIJIT
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Sugar-devel Digest, Vol 15, Issue 17

2010-01-08 Thread vijit singh

 Hello Simon,


I would support what Bert mentioned in one of his mails-

*When selecting an activity icon it would show the most recent Journal
entries and an icon to start a new instance. Fitt's law would suggest to
either pop it up close to the activity item, or put it in a predictable
place at the screen edge. The former would be almost trivial to implement -
simply bring up the palette on click and have it fully expanded right away.
The double-hovering is just too undiscoverable and time-consuming.
Click-choose-click would be much faster.*
*
*
*
*

 -- Forwarded message --
 From: Simon Schampijer si...@schampijer.de
 To: sugar-devel@lists.sugarlabs.org
 Date: Fri, 08 Jan 2010 08:31:29 +0100
 Subject: Re: [Sugar-devel] [DESIGN] 'Resume' vs 'Start a new' Activity
 Hi Vijit,

 So, if I understand you correctly, 'start a new activity' should be the
 default behavior, when you left click on the activity icon - and this should
 be represented in the primary palette (top), too. Actually, there is a gconf
 option (/schemas/desktop/sugar/desktop/favorites_mode) that can be toggled
 to change the behavior, the layout of the palette is not changed though.
 Would be a good test to try it out.


I think what Bert mentioned in his mail would be a good option and this is
very close to what I wanted to say in my last mail.


 Any comment about the delay of the palette?


I think removing the delay thing completely and showing the complete palette
when the icon is clicked and let the user decide whether to start with a new
activity or a previous version of the activity( by showing the journal
entries of that activity)  would be a much better option.

However, from the coding point of view I am not sure about its feasibilty, I
mean afaik the basic characterstic working of palette is like that only i.e.
to display the whole palette only after a delay( when being hovered) and I
couldn't find any function in the palette module to change this
characterstic . So, it might just require a change in the palette module as
well. Still I am not sure about this because I haven't dealt much with
palette earlier and couldn't devote much time in searching for the correct
way to do so.

Regards,
VIJIT


 Thanks,
   Simon

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [DESIGN] 'Resume' vs 'Start a new' Activity

2010-01-07 Thread vijit singh
Hello Simon,

Yes, I believe that's a good point. It's a bit confusing at times. I myself
got confused a few times in the beginning when I switched over from sugar
0.82 to 0.84 and was in a habit of clicking the activity icon at once as in
sugar 0.82.

I think a better option would be to -

1) show the start option for a fresh instance of the activity when someone
hovers over the activity icon.
2) start a fresh instance when someone clicks left mouse button.
3) show the whole palette( including the previous instances) when someone
clicks the right mouse button or waits after hovering.

Regards,
VIJIT

I have observed certain difficulties with the 'resume' and 'start a new'
 activity concept. At the moment we have the following situation:

 *** Current Situation:
 In the Home View you can resume an activity and start a new one. The option
 to start a new activity is in the palette of the activity icon. A list of
 last entries from this activity type is present in the palette as well. When
 you click on the icon with the left mouse button, the last activity is
 resumed by default. Clicking with the right mouse button on the icon does
 reveal the activity palette. The activity is revealed after a delay when
 hovering over the icon, too. Since version 0.86 when you hold the alt-key
 pressed and click on the activity icon you can start a new activity. This is
 visually guided by the uncolored activity icon.

 In the Journal you can resume activities. There is no option to start a new
 activity from within the Journal.


 *** Background:
 I teach a Sugar class of 15 students (5th and 6th grade) in a German
 primary school [1]. The classes are on a weekly one hour basis. They had
 10-15 hours of Sugar by now. We use Sugar 0.84 on Fedora 11. I explained the
 concept of the Journal, repeated several times how to start a new activity
 and how to resume one. I explained them that revealing of the palette is
 quicker when using the right mouse button.


 *** Disclaimer:
 The information below is not meant to be hard data. There are differences
 in backgrounds (cultural etc), ages and quite importantly: a difference
 between a first time user, a regular user and a daily user. Some might as
 well question if I have chosen the right methodical way to explain things,
 and be sure sometimes I do question myself, however the data gathered might
 be a good basis for discussing this issue and maybe others will provide some
 data, too.


 *** Observations:
 Most of the kids click on the activity icon when they want to start a new
 activity. Since there is a delay to reveal the palette, the learner does not
 see the other information in the palette.

 When they resume a previous activity, and they wanted to start a new one, I
 have seen learners erasing the previous content and keep on working in that
 activity.

 Nearly all the kids do not use the right click to reveal the palette. They
 wait for it to appear.


 *** Survey:
 Last class I asked the learners in a small survey the following questions:

 A: How do you do a new drawing in TurtleArt?
 R:
 Some: Nothing, or did misunderstood the question.
 Some: I click on TurtleArt.
 One said: One clicks with the right mouse on TurtleArt and clicks with the
 left one on New.
 One said: Go on TurtleArt, wait, click New.

 A: How do you edit a previous drawing in TurtleArt?
 R:
 Many: Go to the Journal and resume there.
 One: Go to Journal or right click and choose the one one want to resume.
 One: Go on TurtleArt and choose the name one wants to resume.
 Some: Nothing / did not understand the question

 A: Is there a difference between the right mouse click and the left mouse
 click?
 R:
 One: it is quicker to use the right mouse button.
 Some: you get a new field/list.
 Many: Nothing / did not understand the question


 *** Comments:
 The concept of using the Journal to resume a previous activity does work
 very well for the kids. With adding the list of previous activities to the
 activity palette in the home view we added that concept to the home view.
 The issue is, it is a secondary option. There is only one way in Sugar to
 start a new activity - to work from scratch. And this is a secondary option.

 For me it would be worth trying to test going back to create a new one by
 default, as I think this is what my learners somehow expected.

 Small additions to the activity palette could be helpful, too. Adding the
 journal date field to the entries. And having headers like in [2], though I
 think there was a technical issue with this.

 Another improvement could be to cut the delay, so the secondary options are
 more prominent. Or, the left mouse click would reveal the palette and the
 learner then needs to decide what option to choose. This would clash with
 the rest of the UI I guess.

 I remember we had some design mockups quite some time ago, where a certain
 amount of Journal entries where displayed in the home view in a horizontal
 time line. Maybe this would help to make 

Re: [Sugar-devel] Error running socialcalc on sugar live cd

2009-09-29 Thread vijit singh
Hello Tomeu and all,

I just got the chance to try installing socialcalc on the sugar live cd and
I have been able to install it properly. Here is the review of the process,
might be helpful for other activities also in case anybody faces a similar
problem--

1. Actually, the error which was coming earlier was because of the
permission being denied by sugar. So, in order to install any activity one
is supposed to use the sudo command to have super user access. I mean, the
following command would lead to above mentioned errors---

sugar-install-bundle SocialCalcActivity.xo

However, using sudo will resolve the issue--

sudo sugar-install-bundle SocialCalcActivity.xo

2. However, I was unable to install the activity directly from the journal,
when we click on the activity bundle in the journal, nothing actually
happens.


Hi,

 can you check you can write to /home/olpc/Activities?


Yes, we can write but by using sudo command.


 Regards,

 Tomeu


Cheers,
VIJIT aka sumit
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Error running socialcalc on sugar live cd

2009-09-29 Thread vijit singh
Hello Walter and all,

The directory /home/olpc/Activities should be writable by user olpc.


Yes, they should be in the live cd also as they are writable in the normal
xo and the sugar emulator as well.


 That would explain your trouble with installing activities. The
 question remains, why was the ownership/write permissions of
 /home/olpc/Activities improperly set?


Well, I didn't changed  any  settings ( I think sugar doesn't permits an
user or even an administrator to change such settings on the sugar system).
So, I think these permissions are set by default in the live cd by the
rainbow system. I think some more related person would be able to explain
better.


 -walter


Cheers,
VIJIT
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Error running socialcalc on sugar live cd

2009-09-28 Thread vijit singh
Tomeu,

I am not having access to the live cd today as I am not having a good net
connection here. I would let you know about it 2morrow as soon as I will get
the live cd.

Regards,
VIJIT aka sumit

On Mon, Sep 28, 2009 at 4:17 PM, Tomeu Vizoso to...@sugarlabs.org wrote:

 On Sun, Sep 27, 2009 at 23:47, vijit singh vijitthetopco...@gmail.com
 wrote:
  Hello all,
  Some of my co-developers are facing some issues running socialcalc on
 sugar
  live cd. A ZipExtractException is being reported in the log. I am
 attaching
  a photo log with this mail. Kindly give your suggestions about what could
 be
  the possible reasons. Also, has anybody faced any such problem while
 running
  any activity on the sugar live cd.
  I would also be checking it myself on the sugar live cd today, am
  downloading the live cd iso file with my poor net connection currently.

 Hi,

 can you check you can write to /home/olpc/Activities?

 Regards,

 Tomeu

 --
 «Sugar Labs is anyone who participates in improving and using Sugar.
 What Sugar Labs does is determined by the participants.» - David
 Farning

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Error running socialcalc on sugar live cd

2009-09-27 Thread vijit singh
Kindly ignore this mail if you have already received a similar one. There
seems to be some problem  posting on the sugar mailing list due to the
attached image. So, here is the link to the image--
http://rapidshare.com/files/285823877/error-log3.jpg.html .  *
*
*Kindly give your suggestions.*

*Regards,*
*VIJIT
*
On Mon, Sep 28, 2009 at 3:17 AM, vijit singh vijitthetopco...@gmail.comwrote:

 Hello all,
 Some of my co-developers are facing some issues running socialcalc on sugar
 live cd. A ZipExtractException is being reported in the log. I am attaching
 a photo log with this mail. Kindly give your suggestions about what could be
 the possible reasons. Also, has anybody faced any such problem while running
 any activity on the sugar live cd.

 I would also be checking it myself on the sugar live cd today, am
 downloading the live cd iso file with my poor net connection currently.

 Regards,
 VIJIT aka sumit

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Problem installing and running hulahop on ubuntu 8.10

2009-09-12 Thread vijit singh
Hi Tomeu,

I apologize for not being able to reply to you for so long. Actually, my
mid-semester exams are currently going on and so I would be able to resume
my work only after 20th september after they get over.




 Well, we are pretty much in the dark here so may be good to get a bit
 more systematic.

Yes, sure.


 Can you remove any traces of hulahop and xulrunner from your system
 and start anew with only one version of python installed? And also
 write the series of commands you execute to build it all?

I will try this once my exams  are over.


 Also, are you building it in jhbuild?


No, I am not building it in jhbuild.


Thank You Tomeu for your constant help and support.

Regards,
VIJIT aka sumit
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Problem installing and running hulahop on ubuntu 8.10

2009-09-05 Thread vijit singh
Hello Tomeu,



 It is a warning, but I don't see why you think it isn't related to the
 exception.


I might be missing some point or might be unable to interpret this warning
properly.


 Removing 2.4 is not enough, you need to rebuild hulahop and pyxpcom
 with only 2.5 installed and try again.


I tried doing it, I removed python2.4 , rebuild hulahop and pyxpcom, but
still I am getting the same error. Is any other thing also required to be
done?

Regards,
VIJIT aka sumit


 Regards,

 Tomeu



___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Problem installing and running hulahop on ubuntu 8.10

2009-09-04 Thread vijit singh
Hi Tomeu,

Thanx for replying.



 You still get this error if you run this?

 LD_LIBRARY_PATH=/usr/lib/xulrunner-1.9.0.6 python -c import hulahop


Well, running this command was still giving errors, I mean it didn't started
the python shell by itself, it simply ended, so in the next step I tried to
run python explicitly, but still the error was there. However, when I tried
the following command-

 LD_LIBRARY_PATH=/usr/lib/xulrunner-1.9.0.6 python

This invoked the python shell implicitly and now when I tried to import
hulahop, it was getting imported. However, still if I try to import
hulahop.webview, it is giving errors. Here is the complete log-

http://pastebin.be/20740

It seems to me a bit strange, I mean when the hulahop module can be
imported, then it should not give errors while importing individual files of
hulahop, or may be I am missing something. Kindly give your suggestions.

Regards,
VIJIT aka sumit


 Regards,

 Tomeu



___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Problem installing and running hulahop on ubuntu 8.10

2009-09-04 Thread vijit singh
Hi Tomeu,

Thank You for your reply.


 #
 /var/lib/python-support/python2.5/xpcom/xpt.py:72: RuntimeWarning:
 tp_compare didn't return -1 or -2 for exception

 I think this is due to some python C modules being compiled with a
 python version and others with a different version.

 Can you check?


This might be a problem because I have got python 2.5 and python2.4 both
installed on my ubuntu. I will try to check it soon, though, frankly
speaking I am quite ignorant about how to check it. :)  Still I will try
removing python2.4 and then check it. Would update you soon about the
results.

Regards,
VIJIT


 Regards,

 Tomeu

  It seems to me a bit strange, I mean when the hulahop module can be
  imported, then it should not give errors while importing individual files
 of
  hulahop, or may be I am missing something. Kindly give your suggestions.
 
  Regards,
  VIJIT aka sumit
 
  Regards,
 
  Tomeu
 
 
 
 



 --
 «Sugar Labs is anyone who participates in improving and using Sugar.
 What Sugar Labs does is determined by the participants.» - David
 Farning

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Problem installing and running hulahop on ubuntu 8.10

2009-09-04 Thread vijit singh
Hi Tomeu,



 #
 /var/lib/python-support/python2.5/xpcom/xpt.py:72: RuntimeWarning:
 tp_compare didn't return -1 or -2 for exception

 I think this is due to some python C modules being compiled with a
 python version and others with a different version.


I think this is a runtime warning and not an error, so the exception which
is coming in the log is not because of this warning. Still I tried removing
python2.4 and running only with python2.5 to ensure only one python version
is throughout, if that is what you wanted to say. Still, the same problem
occurs.

I think the error is because it is unable to include xpt.py module, however
this is very strange because on line no 16 at http://pastebin.be/20740 , xpt
is imported properly, which means the libraries are connected properly, but
when we again try to include it in line 24, it gives error. The only
difference b/w line 16 and line 24 is that at the latter one it tries to
include it from a folder not in the same location as the module while in the
former one it was imported from the same folder. Any suggestions ?

Anyways, I also tried including the /var/lib/python-support/python2.5/xpcom/
path also before running python by giving the following command-

LD_LIBRARY_PATH=/var/lib/python-support/python2.5/xpcom/ :
/usr/lib/xulrunner-1.9.0.6 python

but still the same problem is occuring. Kindly give your suggestions.

All,

Is there anyone who has tried running hulahop on ubuntu8.10 or anyother
version of ubuntu. Did anyone else faced similar problems?

Regards,
VIJIT aka sumit


 Can you check?

 Regards,

 Tomeu



___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Help required in localization of FoodForce2

2009-06-20 Thread vijit singh
Hi Tomeu,

Thank You for your kind and quick reply. I am thinking of a small activity
which can be easily localized and whose code can be easily understood. I
will be writing a very small pyGTK activity from scratch or otherwise I will
be localizing a simple activity like 'HelloWorld' which is a simple tutorial
activity made by sugarlabs. I will soon mail the details about the same.

Regards,
VIJIT

On Sat, Jun 20, 2009 at 11:11 PM, Tomeu Vizoso to...@sugarlabs.org wrote:

 2009/6/19 vijit singh vijitthetopco...@gmail.com:
  Hi everyone,
 
  I am a software engineer at SEETA (http://seeta.in) working in the Food
 Force II project. I have been recently trying to localize this project to
 Hindi, and have run into issues towards doing the same. I have followed the
 steps mentioned at the wiki pages, and I am not sure, where I could have
 gone wrong. Please find the details of the steps followed by me below-
 
 
  1. Selected the strings from the project files, which I wanted to
 translate. Selected 5 of them. These were contained in 2 python modules. So,
 I included gettext in these 2 modules, and then wrapped the 5 strings in
 gettext. Please find the details as follows-
  from gettext import gettext as _  # at the top of both the modules
 
  _(‘string to be translated’)# with the 5 strings
 
  2. Created a sub-directory namely po in the main FoodForceII directory.
 Then, I created POTFILES.in file in the po directory, and added-
 
 encoding: UTF-8
 
Foodforce2.py
 
gui_buttons.py
 
  FoodForce2.py and gui_buttons.py are the modules, which contain the
 strings to be translated.
 
  3. Tried creating the .POT file for FoodForceII. Ran the olpc-setup.py
 file (the setup file for FoodForce2) with genpot command. Received the
 following error message-
 
  Xgettext error: Can’t include the svgsprite.py file: no such file exist
 
  svgsprite.py is a module required for running pygames in the sugar
 environment. Encountered similar error with every file in the olpcgames
 folder placed in the activity bundle.
 
  I experimented with moving the olpcgames folder outside the FoodForceII
 bundle, and then ran olpc-setup.py file with genpot. The FoodForce2.pot file
 was created in the po folder.
 
  4.   Now, I copied back the olpcgames folder into the FoodForce2 main
 directory .Now, we were supposed to generate a .po file. As, I was firstly
 translating the game into hindi language ( a regional language of INDIA); I
 gave the following command from inside the po folder in terminal-
 
  msginit -l hi
 
  hi becoz we were generating po file for the hindi language. It was
 successfully done and the hi.po file was created. So, now our po folder
 contains the following three files-
 
  FoodForce2.pot hi.po POTFILES.in
 
  5.   Now, the next step was to add the hindi text in the msgstr part in
 the hi.po file . As I am proficient in the hindi language I did the
 translation on my own using a hindi editor. The translated strings were
 placed between the quotes in the hi.po file for the 5 strings-
 
  msgstr “  “
 
  6.   So, the next and final step was to make the .mo file. Firstly I
 created the following directories-
 
  locale/hi/LC_MESSAGES
 
  where the locale sub-directory was located directly in the FoodForce2
 directory and hi was contained in locale sub-directory and LC_MESSAGES in hi
 sub-directory.
 
  Now, I ran the following command from inside the po folder in the
 terminal-
 
  msgfmt hi.po  --output='../locale/hi/LC_MESSAGES/
 org.laptop.FoodForce2.mo'
 
  And so the org.laptop.FoodForce2.mo file was generated in
 locale/hi/LC_MESSAGES
 
  7. As all the necessary steps were done, I made a new xo bundle for
 FoodForce2 and then changed the language of my sugar environment to Hindi
 and then installed the bundle on it and ran the game. But, instead of the
 strings which I tried to translate appearing in HIndi, they appeared in
 english only.
 
  As these steps didn't result into a successful localization, I tried some
 other ways also but none gave the right result. The other changes which I
 made were-
 
  1. As the i18n page I mentioned earlier in the mail was not very clear
 about this , so I included all the python modules present in FoodForce2
 directory in the POTFILES.in and then generated the .pot file as done in
 step 2.
 
  I am still trying to work out why the translation is not taking place
 successfully. I would highly appreciate if anyone can send me some ideas
 about why it didn't it worked properly.

 I'm sorry but I don't have any concrete recommendations. What I would
 do in your place is to get a very simple activity written from scratch
 and make localization work there. After you got that, you could move
 to add localization to FoodForce with a more knowledge of what is
 required.

 It will be also easier to answer your questions about such a simple
 activity than about a big one like FoodForce.

 Hope it helps,

 Tomeu

  Regards,
 
  VIJIT SINGH

[Sugar-devel] Help required in localization of FoodForce2

2009-06-19 Thread vijit singh
Hi everyone,

I am a software engineer at SEETA (http://seeta.in) working in the Food
Force II project. I have been recently trying to localize this project to
Hindi, and have run into issues towards doing the same. I have followed the
steps mentioned at the wiki pages, and I am not sure, where I could have
gone wrong. Please find the details of the steps followed by me below-


*1.* Selected the strings from the project files, which I wanted to
translate. Selected 5 of them. These were contained in 2 python modules. So,
I included gettext in these 2 modules, and then wrapped the 5 strings in
gettext. Please find the details as follows-
*from gettext import gettext as _  # at the top of both the modules
*

*_(‘string to be translated’)# with the 5 strings*

*2.* Created a sub-directory namely po in the main FoodForceII directory.
Then, I created POTFILES.in file in the po directory, and added-*
*
   *encoding: UTF-8*

*  Foodforce2.py*

*  gui_buttons.py*

FoodForce2.py and gui_buttons.py are the modules, which contain the strings
to be translated.

*3.* Tried creating the .POT file for FoodForceII. Ran the olpc-setup.py
file (the setup file for FoodForce2) with genpot command. Received the
following error message-
*Xgettext error: Can’t include the svgsprite.py file: no such file exist*

svgsprite.py is a module required for running pygames in the sugar
environment. Encountered similar error with every file in the olpcgames
folder placed in the activity bundle.

I experimented with moving the olpcgames folder outside the FoodForceII
bundle, and then ran olpc-setup.py file with genpot. The FoodForce2.pot file
was created in the po folder.

*4. *  Now, I copied back the olpcgames folder into the FoodForce2 main
directory .Now, we were supposed to generate a .po file. As, I was firstly
translating the game into hindi language ( a regional language of INDIA); I
gave the following command from inside the po folder in terminal-

*msginit -l hi*

hi becoz we were generating po file for the hindi language. It was
successfully done and the hi.po file was created. So, now our po folder
contains the following three files-

*FoodForce2.pot hi.po POTFILES.in*

*5.  * Now, the next step was to add the hindi text in the msgstr part in
the hi.po file . As I am proficient in the hindi language I did the
translation on my own using a hindi editor. The translated strings were
placed between the quotes in the hi.po file for the 5 strings-

*msgstr “  “*

*6. *  So, the next and final step was to make the .mo file. Firstly I
created the following directories-

*locale/hi/LC_MESSAGES   *

where the locale sub-directory was located directly in the FoodForce2
directory and hi was contained in locale sub-directory and LC_MESSAGES in hi
sub-directory.

Now, I ran the following command from inside the po folder in the terminal-

*msgfmt hi.po  --output='../locale/hi/LC_MESSAGES/org.laptop.FoodForce2.mo'*

And so the org.laptop.FoodForce2.mo file was generated in
locale/hi/LC_MESSAGES

*7. *As all the necessary steps were done, I made a new xo bundle for
FoodForce2 and then changed the language of my sugar environment to Hindi
and then installed the bundle on it and ran the game. But, instead of the
strings which I tried to translate appearing in HIndi, they appeared in
english only.


As these steps didn't result into a successful localization, I tried some
other ways also but none gave the right result. The other changes which I
made were-

1. As the i18n page I mentioned earlier in the mail was not very clear about
this , so I included all the python modules present in FoodForce2 directory
in the POTFILES.in and then generated the .pot file as done in step 2.

I am still trying to work out why the translation is not taking place
successfully. I would highly appreciate if anyone can send me some ideas
about why it didn't it worked properly.


Regards,
VIJIT SINGH
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel