Re: Hippocanvas error :(
Tomeu, Talking with Joel, looks like hippo-canvas only builds the python bindings if the prerequisites are already installed. If not, silently omits them. I added python-cairo-dev to the ubuntu dependencies, but perhaps the python bindings should be built incondicionaly? what I did was $ sudo apt-get duild-dep python-hippocanvas but still the error remains, Marco is right, hippo.so has conflict with libhippocanvas-0-1.so that is present in the install/lib/ directory, removing these libs makes hippo.so work but poses new errors that are journal fails to load and every other activity as well logmanager.py get permission denied errors to write to .sugar/default/logs directory :-/ and some error that says Unable to create window at hexa vaule some thing and again building libhippocanvas will remove these errors but import hippo will fail :( any body tried sugar-jhbuild in Ubuntu Hardy ??? Regards, Tomeu -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Hippocanvas error :( [Solved]
On Sun, May 25, 2008 at 2:14 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote: On Sun, May 25, 2008 at 11:07 AM, Waqas Toor [EMAIL PROTECTED] wrote: Tomeu, Talking with Joel, looks like hippo-canvas only builds the python bindings if the prerequisites are already installed. If not, silently omits them. I added python-cairo-dev to the ubuntu dependencies, but perhaps the python bindings should be built incondicionaly? what I did was $ sudo apt-get duild-dep python-hippocanvas but still the error remains, Marco is right, hippo.so has conflict with libhippocanvas-0-1.so that is present in the install/lib/ directory, removing these libs makes hippo.so work but poses new errors that are journal fails to load and every other activity as well logmanager.py get permission denied errors to write to .sugar/default/logs directory :-/ and some error that says Unable to create window at hexa vaule some thing and again building libhippocanvas will remove these errors but import hippo will fail :( any body tried sugar-jhbuild in Ubuntu Hardy ??? What I recommend you is: - cd sugar-jhbuild - git-pull - ./sugar-jhbuild depscheck and install any missing deps - rm -rf source/hippo-canvas - ./sugar-jhbuild buildone hippo-canvas after upgrading python-json package it worked, strange that it truned out that hippo.so (python-hippocanvas) is some what dependable on pyton-json package BUT now Icons are huge =D == ** (sugar-shell:19090): CRITICAL **: hippo_canvas_context_get_style: assertion `HIPPO_IS_CANVAS_CONTEXT(context)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_new: assertion `HIPPO_IS_CANVAS_CONTEXT(context)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_set_link_type: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_border_width: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_border_width: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_border_width: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_border_width: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_padding: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_padding: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_padding: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_padding: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_context_get_style: assertion `HIPPO_IS_CANVAS_CONTEXT(context)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_new: assertion `HIPPO_IS_CANVAS_CONTEXT(context)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_set_link_type: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_border_width: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_border_width: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_border_width: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_border_width: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_padding: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_padding: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_padding: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_padding: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed DEBUG:ActivitiesRing:RingLayout.do_allocate: 0 0 800 525 0 0 True DEBUG:sugar.presence.presenceservice:Reused proxy Buddy object at 0x8eb1784 (sugar+presence+buddy+Buddy at 0x8edba00) ** (sugar-shell:19090): CRITICAL **: hippo_canvas_context_get_style: assertion `HIPPO_IS_CANVAS_CONTEXT(context)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_new: assertion `HIPPO_IS_CANVAS_CONTEXT(context)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_set_link_type: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_border_width: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL **: hippo_canvas_style_get_border_width: assertion `HIPPO_IS_CANVAS_STYLE(style)' failed ** (sugar-shell:19090): CRITICAL
Re: Hippocanvas error :( [Solved]
On 5/25/08, Marco Pesenti Gritti [EMAIL PROTECTED] wrote: On Sun, May 25, 2008 at 4:04 PM, Waqas Toor [EMAIL PROTECTED] wrote: On Sun, May 25, 2008 at 2:14 PM, Tomeu Vizoso [EMAIL PROTECTED] wrote: On Sun, May 25, 2008 at 11:07 AM, Waqas Toor [EMAIL PROTECTED] wrote: Tomeu, Talking with Joel, looks like hippo-canvas only builds the python bindings if the prerequisites are already installed. If not, silently omits them. I added python-cairo-dev to the ubuntu dependencies, but perhaps the python bindings should be built incondicionaly? what I did was $ sudo apt-get duild-dep python-hippocanvas but still the error remains, Marco is right, hippo.so has conflict with libhippocanvas-0-1.so that is present in the install/lib/ directory, removing these libs makes hippo.so work but poses new errors that are journal fails to load and every other activity as well logmanager.py get permission denied errors to write to .sugar/default/logs directory :-/ and some error that says Unable to create window at hexa vaule some thing and again building libhippocanvas will remove these errors but import hippo will fail :( any body tried sugar-jhbuild in Ubuntu Hardy ??? What I recommend you is: - cd sugar-jhbuild - git-pull - ./sugar-jhbuild depscheck and install any missing deps - rm -rf source/hippo-canvas - ./sugar-jhbuild buildone hippo-canvas after upgrading python-json package it worked, strange that it truned out that hippo.so (python-hippocanvas) is some what dependable on pyton-json package Huh. That makes no sense... I wonder what is going on. BUT now Icons are huge =D What resolution is your screen? its 800x600 I have reported a bug, zoom factor has to be 0.72 for these resolution as I am getting 95.0 dpi every time when I shit between resolutions _get_screen_dpi() in style.py == ** (sugar-shell:19090): CRITICAL **: hippo_canvas_context_get_style: assertion `HIPPO_IS_CANVAS_CONTEXT(context)' failed Yeah these are fine: Need to look into hippo and fix them at some point. Marco -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Hippocanvas error :(
Hello all, Every time I try sugar-jhbuild I keep getting this error .. ImportError: /usr/lib/python2.5/site-packages/hippo.so: undefined symbol: hippo_cascade_mode_get_type here is the complete trace == [EMAIL PROTECTED]:~/sugar/sugar-jhbuild$ ./sugar-jhbuild run INFO:sugar-emulator:Attempting to find free port for X11 (Xephyr) INFO:sugar-emulator: Found free port: #2 (6002) INFO:sugar-emulator:Starting the Xephyr nested X display on display 2 DEBUG:sugar-emulator:Xephyr command: Xephyr :2 -ac -fullscreen -dpi 96 INFO:sugar-emulator:Attempting to launch sugar to replace this process: dbus-launch dbus-launch --exit-with-session sugar-shell expected keysym, got XF86KbdLightOnOff: line 70 of pc expected keysym, got XF86KbdBrightnessDown: line 71 of pc expected keysym, got XF86KbdBrightnessUp: line 72 of pc expected keysym, got XF86KbdLightOnOff: line 70 of pc expected keysym, got XF86KbdBrightnessDown: line 71 of pc expected keysym, got XF86KbdBrightnessUp: line 72 of pc Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list! Traceback (most recent call last): File /home/waqas/sugar/sugar-jhbuild/install/bin/sugar-shell, line 30, in module from main import main File /home/waqas/sugar/sugar-jhbuild/install/share/sugar/shell/main.py, line 34, in module import view.Shell File /home/waqas/sugar/sugar-jhbuild/install/share/sugar/shell/view/Shell.py, line 38, in module from view.frame import frame File /home/waqas/sugar/sugar-jhbuild/install/share/sugar/shell/view/frame/frame.py, line 21, in module import hippo ImportError: /usr/lib/python2.5/site-packages/hippo.so: undefined symbol: hippo_cascade_mode_get_type == I am using jhbuild on ubuntu , build is always successful but this error remains every time any clue? -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Hippocanvas error :(
Marco, some body has this same error http://pastebin.ca/raw/1019759 i tried dpkg-reconfigure on each and every module of hippo in my system but still no luck I even reinstalled python-hippocanvas bindings but still same error what to do :( -- wt On Sun, May 25, 2008 at 1:43 AM, Marco Pesenti Gritti [EMAIL PROTECTED] wrote: The problem is that it's trying to load /usr/lib/python2.5/site-packages/hippo.so instead of the one built in jhbuild. I don't really understand why that's happening, since sys.path is correct as we verified in irc. Marco On Sat, May 24, 2008 at 10:33 PM, Waqas Toor [EMAIL PROTECTED] wrote: Hello all, Every time I try sugar-jhbuild I keep getting this error .. ImportError: /usr/lib/python2.5/site-packages/hippo.so: undefined symbol: hippo_cascade_mode_get_type here is the complete trace == [EMAIL PROTECTED]:~/sugar/sugar-jhbuild$ ./sugar-jhbuild run INFO:sugar-emulator:Attempting to find free port for X11 (Xephyr) INFO:sugar-emulator: Found free port: #2 (6002) INFO:sugar-emulator:Starting the Xephyr nested X display on display 2 DEBUG:sugar-emulator:Xephyr command: Xephyr :2 -ac -fullscreen -dpi 96 INFO:sugar-emulator:Attempting to launch sugar to replace this process: dbus-launch dbus-launch --exit-with-session sugar-shell expected keysym, got XF86KbdLightOnOff: line 70 of pc expected keysym, got XF86KbdBrightnessDown: line 71 of pc expected keysym, got XF86KbdBrightnessUp: line 72 of pc expected keysym, got XF86KbdLightOnOff: line 70 of pc expected keysym, got XF86KbdBrightnessDown: line 71 of pc expected keysym, got XF86KbdBrightnessUp: line 72 of pc Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list! Traceback (most recent call last): File /home/waqas/sugar/sugar-jhbuild/install/bin/sugar-shell, line 30, in module from main import main File /home/waqas/sugar/sugar-jhbuild/install/share/sugar/shell/main.py, line 34, in module import view.Shell File /home/waqas/sugar/sugar-jhbuild/install/share/sugar/shell/view/Shell.py, line 38, in module from view.frame import frame File /home/waqas/sugar/sugar-jhbuild/install/share/sugar/shell/view/frame/frame.py, line 21, in module import hippo ImportError: /usr/lib/python2.5/site-packages/hippo.so: undefined symbol: hippo_cascade_mode_get_type == I am using jhbuild on ubuntu , build is always successful but this error remains every time any clue? -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Hippocanvas error :(
On Sun, May 25, 2008 at 2:09 AM, Marco Pesenti Gritti [EMAIL PROTECTED] wrote: On Sat, May 24, 2008 at 11:00 PM, Waqas Toor [EMAIL PROTECTED] wrote: On Sun, May 25, 2008 at 1:52 AM, Marco Pesenti Gritti [EMAIL PROTECTED] wrote: On Sat, May 24, 2008 at 10:48 PM, Waqas Toor [EMAIL PROTECTED] wrote: Marco, some body has this same error http://pastebin.ca/raw/1019759 i tried dpkg-reconfigure on each and every module of hippo in my system but still no luck I even reinstalled python-hippocanvas bindings but still same error what to do :( Something you could do (assuming the hippo canvas on your system is recent enough) is to make jhbuild skip building it... Interesting thing that I noticed is that building hippo in jhbuild updates the source directory every time ... but hippo.so is present in /usr/lib/python2.5/site-packages/ which has nothing to do with the build path of jhbuild :-/ The reason of the undefined symbol is that it's using /usr/lib/python2.5/site-packages/hippo.so with the jhbuild libhippocanvas.so. So if you remove jhbuild libhippocanvas.so it might work... no use what so ever can any body tell what this symbol in hippo.so ? undefined symbol: hippo_cascade_mode_get_type Marco -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Help regarding Sugar on Ubuntu
Hello, On 5/23/08, C. Scott Ananian [EMAIL PROTECTED] wrote: On 5/22/08, Waqas Toor [EMAIL PROTECTED] wrote: I have changed fullscreen mode of Xephyr into 800x600, but now how to change the size of frames and icons ? I have tried changing sugar-xo.gtkrc file but nothing happens, any clues? 2ndly, the activities inside this small screen do not show properly i.e they remain the actual full screen size how to make this environment fit into the size of 800x600 I'm not certain the Sugar will scale well to a screen that small. It seems to scale to 1024x768 quite nicely, though. 1024x786 becomes full screen mode in my ubuntu, what I want to do to make it a smaller screen size and the aspect ratio of the frame/canvas should adjust accordingly, Full screen mode does wierd things :) --scott -- ( http://cscott.net/ ) -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Help regarding Sugar on Ubuntu
Hello, On Fri, May 23, 2008 at 11:16 AM, Alex Belits [EMAIL PROTECTED] wrote: Waqas Toor wrote: 1024x786 becomes full screen mode in my ubuntu, what I want to do to make it a smaller screen size and the aspect ratio of the frame/canvas should adjust accordingly, Full screen mode does wierd things :) If you use sugar-emulator, this is a problem (I wouldn't call it a bug because I have no idea what should be the desired behavior) in /usr/sugar/shell/emulator.py in code starting from the line if gtk.gdk.screen_width() ... yup I have done the same thing, but this happens only for the Xephyr, the emulation under the Xephyr wont adjust itself , The icons and frames remain of bigger size, they wont adjust according to the Xephyrs' new size :( It determines if it should run Xephyr in fullscreen or windowed mode by the size of the screen, so to fix that behavior you can edit the line (that contains the condition for choosing the fullscreen mode) and subsequent lines that determine arguments to Xephyr. -- Alex -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [sugar] Help regarding Sugar on Ubuntu
Hello Marco, On Fri, May 23, 2008 at 1:45 PM, Marco Pesenti Gritti [EMAIL PROTECTED] wrote: sugar.gtkrc and sugar/graphics/style.py sugar.gtkrc wont work, sugar-xo.gtkrc has the effects and I will check style.py also Thanks Marco On Fri, May 23, 2008 at 12:03 AM, Waqas Toor [EMAIL PROTECTED] wrote: Hello All, I have changed fullscreen mode of Xephyr into 800x600, but now how to change the size of frames and icons ? I have tried changing sugar-xo.gtkrc file but nothing happens, any clues? 2ndly, the activities inside this small screen do not show properly i.e they remain the actual full screen size how to make this environment fit into the size of 800x600 Regards -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Sugar mailing list [EMAIL PROTECTED] http://lists.laptop.org/listinfo/sugar -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [sugar] Help regarding Sugar on Ubuntu
Hello, yes, I agree now after a little hack, sugar seems fine but now another issue :) when I use any activity inside it, it remain full screen e.g. 1200x900 whereas the resolution of my Xephyr terminal is 800x600 can any body point me to where these ratios( screen resolutions ) are defined in sugar? rigth now I am looking at sugar-emulater and what if I want to switch between resolutions, is there any flexibilty in the code ? --wt On Fri, May 23, 2008 at 8:07 PM, Eben Eliason [EMAIL PROTECTED] wrote: For what its worth (and I know this probably isn't easy, or we'd already have support for it), what we really need for useful testing/developing is a way to scale the output to the window as a post-draw operation. That is, render everything as though it were a 1200x900 screen, and scale to the window size (assuming 4:3). sugar-emulator -x is quite nice, but it requires a large monitor to use effectively. Naturally, this is somewhat the opposite of what we want to happen when running in fullscreen on screens of various resolutions, in which the subcomponents within the UI should independently scale or not, as appropriate. There's a fair amount of work to be done there as well, to make sizes and proportions appear correctly no matter the resolution. It would be great if we could find someone in the community interested in attacking this type of cleanup throughout the UI, since we're clearly biased towards the XO (and need to be based on our resources). - Eben On Fri, May 23, 2008 at 9:36 AM, Waqas Toor [EMAIL PROTECTED] wrote: Hello Marco, On Fri, May 23, 2008 at 1:45 PM, Marco Pesenti Gritti [EMAIL PROTECTED] wrote: sugar.gtkrc and sugar/graphics/style.py sugar.gtkrc wont work, sugar-xo.gtkrc has the effects and I will check style.py also Thanks Marco On Fri, May 23, 2008 at 12:03 AM, Waqas Toor [EMAIL PROTECTED] wrote: Hello All, I have changed fullscreen mode of Xephyr into 800x600, but now how to change the size of frames and icons ? I have tried changing sugar-xo.gtkrc file but nothing happens, any clues? 2ndly, the activities inside this small screen do not show properly i.e they remain the actual full screen size how to make this environment fit into the size of 800x600 Regards -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Sugar mailing list [EMAIL PROTECTED] http://lists.laptop.org/listinfo/sugar -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Sugar mailing list [EMAIL PROTECTED] http://lists.laptop.org/listinfo/sugar -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [sugar] Help regarding Sugar on Ubuntu
Hello Carol, Yes I would love to add that, any body working on developer's documentation of sugar which contains sugar's core design and code, the sugar components page in wiki is very abstract :( --wt On Fri, May 23, 2008 at 8:38 PM, Carol Lerche [EMAIL PROTECTED] wrote: Waqas -- After you fight your way through all these issues, could you make a wiki page that lists all the things you had to do to get this to work? I think lots of people would be very grateful. Carol Lerche -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Help regarding Sugar on Ubuntu
Hello All, I have changed fullscreen mode of Xephyr into 800x600, but now how to change the size of frames and icons ? I have tried changing sugar-xo.gtkrc file but nothing happens, any clues? 2ndly, the activities inside this small screen do not show properly i.e they remain the actual full screen size how to make this environment fit into the size of 800x600 Regards -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Olpc-open] jumpy cursor problem and sugar issue
Hello all, On Fri, May 9, 2008 at 5:44 AM, Bryan Berry [EMAIL PROTECTED] wrote: thanks, will try this out On Thu, 2008-05-08 at 16:01 -0400, Samuel Klein wrote: Advice from the field : try dusting a jumpy touchpad with chalkdust. --SJ, who is looking for a cite... Yes this is a discovery from a child at Atlas Public school pilot in Pakistan. What my findings are that this is due to the moisture on the finger tips that makes this touchpad go wild . What I suggest is that use any softer powder, chalk dust is not fine powder and makes scratches on the touchpad. Any powder is ok as far as it can remove that moisture. Regards -wt On Sun, Apr 27, 2008 at 7:50 AM, Bryan Berry [EMAIL PROTECTED] wrote: Day 3 of the pilots at Bishwamitra and Bashuki and couple of issues have come up 1. We are having a lot of trouble w/ jumpy cursors. You know where the touchpad behaves erratically. Is there an easy fix to this problem? we are using build 703, MP machines, and firmware Q2d14. We have the kids hold down the 4 corner buttons as recommended in the XO user guide but that doesn't seem to consistently fix the problem. Dust is an issue at the schools but that can't explain the high rate of jumpy cursors. Please assist Suggestions? 2. For future reference: In general the kids and teachers find it quite confusing when they move the cursor to the corners of the screen and the Sugar frame pops up. The kids have learned the top row keys very quickly - faster than I thought - and they find the frame popping up quite confusing. They have learned to use the frame button already. pictures to come and a full write-up, I promise! Bryan W. Berry Systems Engineer OLE Nepal, http://www.olenepal.org ___ Olpc-open mailing list [EMAIL PROTECTED] http://lists.laptop.org/listinfo/olpc-open ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Waqas Toor member of OLPC Pakistan Team member of Ubuntu Pakistan Team Linux *is* user friendly. It's just selective about who its friends are. In a world without walls and fences, who needs windows and Gates ? http://waqastoor.weblog.pk (Registered Linux user #424056) ref link http://counter.li.org/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need Help
Hello All, Thanks, I found 2 things reading this thread, let me explain what I did, a) my activity directory was writable by world, why i did this was becuase i was creating a config file and didnt know the user which initiates my activity b) the scripts which were executeable i.e. my Activity main script, was only readable but still works ( can some one elaborate that for me? i am a bit confused that how its readable but still executed ) 1 thing more, when my activity is running, going to home view shows 2 icons, 1 is the activity icon that i created, 2nd is the black circle in the right that is associated with my activity. can some body give me a hint that where i am wrong ? as i am using glade with gtk Regards -- Waqas Toor member of OLPC Pakistan Team On 3/5/08, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Stone wrote: | On Tue, Mar 04, 2008 at 08:22:31PM -0500, Benjamin M. Schwartz wrote: | Michael Stone wrote: | | My central error-handling goal has been to compactly express my | | assumptions in a form that will prevent them from being violated in | | ignorance. Should I have different goals? | | 1. I find Rainbow very impressive, and I am sure you are well aware of the | various arguments made regarding error handling. | | Thank you. While it's true that I'm aware of some arguments regarding error | handling, I'm always interested in improving. It seems like one of the | most regularly failed challenges in the craft of programming. | | In my view, restricting assertions to internal invariants provides an | easy way of distinguishing problems in Rainbow from problems in | Activities and other parts of the system. | | True, but the convention that I have established of separating error | messages into contract-violations and 'everything else', recorded in | per-activity logs and in a daemon-wide log (/var/log/rainbow) would seem | to accomplish similar goals. I have not read the relevant Rainbow source, so I cannot comment very intelligently on this. However, if Rainbow wishes to log a contract violation, it should insert the phrase contract violation into the logfile. Otherwise, how is a person reading the log to know this? | 2. Among your goals, you might consider maximizing the ability of novice | programmers to figure out what they've done wrong. | | It's not my primary goal, but I'll agree that it's worth considering. | | The wiki page on translation even goes so far as to | recommend using gettext for error strings, so that users and | administrators may debug the system without knowing English. I used the phrase debug the system. That was a poor choice. I should say recognize bugs in the system, and additionally distinguish between bugs in the system and bugs in the activities they're developing. | | I'm still not convinced. Wouldn't we be better served by translating the | source code itself, or an overview of the source code like my 'Taste the | Rainbow' pages? | | Consider: in my experience, debugging consists of searching the diff | between one's mental model and reality from which it follows that the | material which should be translated is the material which provides the | clearest, most accurate mental model of the problem. Your experience is extremely unusual and non-representative. You are an expert computer scientist who frequently reads source code written by others. You are familiar with the OLPC operating system details, including D-Bus and the Bitfrost requirements, perhaps moreso than anyone else in the world. The people who will be reading these logfiles will be developers who are trying to debug their activities. The activity may have crashed because it attempted to violate a Bitfrost rule and was killed by Rainbow. These developers (ideally mostly children) will likely be building their activities by making small modifications to existing activities. That means most won't even understand their own code. How could you possibly expect them to understand yours? | Also consider: had there been an actual bug in Rainbow, which would have | been more useful to Waqas in diagnosing and fixing the problem: | translated error messages or better written or documented source code? Not fixing. It is absurd to imagine that any appreciable number of users will be able fix Rainbow bugs. Rather, when Rainbow experiences an internal error, it should be extremely obvious that the problem is with Rainbow. For example, an excellent type of behavior would be for Rainbow to print, in the logfile: RAINBOW BUG: Rainbow has encountered an internal error. This indicates a bug in Rainbow. The error code is 752. This line would be sufficient for activity developers to understand that the problem is not simply in their code. It also makes it possible for users to participate usefully in the development process, by reporting the bug
Need Help
Hello All, I am having a problem and unable to find any solution regarding that, I have written an activity in using GTK and glade, and have sugarized it according to the hello world tutorial in wiki. but still i dont know what is going on as the icon of the activity stays in the ring and then disappears after some time, i have rechecked my code again and again and cant find any thing that is of Coding error can anybody please see the log i am attaching and tell me is rainbow stoping it ?? regards -- Waqas Toor org.laptop.sugar.QiratActivity-2.log Description: Binary data ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Sugar font
Helloo All, can any body tell me what font Sugar interface is using and where to set this ? what if i want to change the font size or font it self ? Regards -- Waqas Toor ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: help about helix libraries
Thanks Tomeu, My activity works fine but as i am using evince as a pdf document reader and helix as the libraries for mp3 decoding, the only problem is that when i play some sound the control is stuck between that run() method, i tried threading as well :( can you please point me to a developer who is working on hxplay Thanks On 2/15/08, Tomeu Vizoso [EMAIL PROTECTED] wrote: On Fri, 2008-02-15 at 17:53 +0500, Waqas Toor wrote: Hello All, I am trying to create a Reciter activity, so I need help regarding hxplay i am trying to create an embeded play using helix library, but the problem is that when I play a mp3 file using hxplay.run() method the activity gets stuck untill the audio file is complete. any pointers that what should I do, as hacking watch and listen activity give me abstract over view of the player Hi, don't know much about helix nor gstreamer, but I think it's the later which is the supported multimedia framework. See http://dev.laptop.org/git?p=projects/jukebox-activity;a=summary for an example of a media player activity based on gstreamer. I guess you could bundle an mp3 decoder for gstreamer inside your activity. Good luck, Tomeu -- Waqas Toor ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Server-devel] Mesh Portal Question
Thanks James, I will perform my test again today, I hope what you told helps. My main test theme is the just be able to reach the school server from the hops of other XOs. I will later tell the over all progress and steps I took to perform the test. Regards --Waqas On 2/14/08, James Cameron [EMAIL PROTECTED] wrote: Kept this test running overnight, total of 6% loss over 33600 packets, each link with an snr of 50 to 60. The end node reported libertas: tx watch dog timeout ... so I'm not confident the test reproduced anything. -- James Cameronmailto:[EMAIL PROTECTED] http://quozl.netrek.org/ -- Waqas Toor member of Ubuntu Pakistani Team Linux *is* user friendly. It's just selective about who its friends are. In a world without walls and fences, who needs windows and Gates ? http://waqastoor.weblog.pk (Registered Linux user #424056) ref link http://counter.li.org/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Server-devel] Mesh Portal Question
Hello All, first let me define the scenario of my test, The distance between XO1 and my active antenna is 350 meters and the distance between XO2 and XO1 is almost 700 meters XO1 and XO2 can talk with each other very fine by simple mesh portal, i.e. i used chat activity between them XO1 gets connected with the school server without any hassle ( automatic ). Now what i am trying to get is to ping School server from XO2. I havent yet done any configuration or assigned any IPs, what i am testing is that of autoconfigurations XS -- XO1- XO2 now how to access XS from XO2 using Hop of XO1 Regards On Feb 12, 2008 11:40 PM, John Watlington [EMAIL PROTECTED] wrote: Giannis, Waqas indicated that he is not blinding his laptops. wad On Feb 12, 2008, at 11:08 AM, Giannis Galanis wrote: I believe in the blind table of XO-1, you have to include the anycast address C027C027C027. I think the last digits of the address are custom, but not sure though. Still, in your case, you should only blind XO2 to XO1, and dont forget to invert the blinding table. On Feb 11, 2008 11:41 AM, John Watlington [EMAIL PROTECTED] wrote: Waqas, Are you explicitly blinding the laptops to force that network configuration ? Can XO-2 talk to XO-1 fine ? Can XO-1 talk to the server ? We do this regularly --- it has been tested and works. John On Feb 9, 2008, at 6:45 AM, Waqas Toor wrote: Hello All, He is my scenario, XS XO-1 --- XO-2 I am unable to access school server from XO-2 via XO-1 route, I have 656 build on my XOs and server build 150 on my server with 1 active antennae what could be the problem, how to access XS from different hops of XOs as the automatic configuration didn't create route to the server Regards -- Waqas Toor member olpc Pakistan team ___ Server-devel mailing list [EMAIL PROTECTED] http://lists.laptop.org/listinfo/server-devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Waqas Toor ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Mesh Portal Question
Hello All, He is my scenario, XS XO-1 --- XO-2 I am unable to access school server from XO-2 via XO-1 route, I have 656 build on my XOs and server build 150 on my server with 1 active antennae what could be the problem, how to access XS from different hops of XOs as the automatic configuration didn't create route to the server Regards -- Waqas Toor member olpc Pakistan team ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Booting OLPC
Hello, There is a startup sound when we turn OLPC B4 machine on. Is there any method to change or set this sound ... i was looking for it but couldnt find any way to identify any pointers Regards -- Waqas Toor Linux *is* user friendly. It's just selective about who its friends are. In a world without walls and fences, who needs windows and Gates ? http://waqastoor.weblog.pk (Registered Linux user #424056) ref link http://counter.li.org/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Activity bundle Query
Hello I am making an activity of my application ...aaplication is written in java.. and i have a bash script to load that application now what would be the line in myActivity.info file that will execute that run.sh script i am unable to figure it out from the wiki pages Regards -- Waqas Toor member of Ubuntu Pakistani Team [EMAIL PROTECTED] http://www.ubuntu-pk.org Linux *is* user friendly. It's just selective about who its friends are. In a world without walls and fences, who needs windows and Gates ? http://waqastoor.weblog.pk (Registered Linux user #424056) ref link http://counter.li.org/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Activity bundle Query
Hello , but i was able to run the application from the terminal using gij command and it works fine ... so is there a way that i could bundle it what does these lines mean The exec key specifies the executable which Sugar runs to start the activity instances. Environment variables given on the exec line are expanded. Executable files should be placed into the bin/ directory in the bundle. It should support the following arguments: -b, --bundle-id Identifier of the activity bundle -a, --activity-id Identifier of the activity instance. -o, --object-id Identifier of the associated datastore object. -u, --uri URI to load. are they helpfull ? On 10/29/07, John Watlington [EMAIL PROTECTED] wrote: You will have to port your application. The XO doesn't support Java at this time. May I suggest Python ? Regards, John On Oct 29, 2007, at 3:37 AM, Waqas Toor wrote: Hello I am making an activity of my application ...aaplication is written in java.. and i have a bash script to load that application now what would be the line in myActivity.info file that will execute that run.sh script i am unable to figure it out from the wiki pages Regards -- Waqas Toor member of Ubuntu Pakistani Team [EMAIL PROTECTED] http://www.ubuntu-pk.org Linux *is* user friendly. It's just selective about who its friends are. In a world without walls and fences, who needs windows and Gates ? http://waqastoor.weblog.pk (Registered Linux user #424056) ref link http://counter.li.org/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- Waqas Toor member of Ubuntu Pakistani Team [EMAIL PROTECTED] http://www.ubuntu-pk.org Linux *is* user friendly. It's just selective about who its friends are. In a world without walls and fences, who needs windows and Gates ? http://waqastoor.weblog.pk (Registered Linux user #424056) ref link http://counter.li.org/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel