/srv/irclogs.ubuntu.com/2010/08/17/#ubuntu-sugarteam.txt

lfaraonels04:01
=== bernie is now known as bernie_afk
=== bernie_afk is now known as bernie
manusheelneeraj: Hi Neeraj.14:39
neerajmanusheel sir : Hi14:40
manusheelneeraj: Please have a word with Aleksey on the two patches and the GSM issue.14:41
manusheelalsroot: Around?14:42
dipankardfarning, hello14:55
dfarningdipankar, good morning14:55
dipankardfarning, good morning :)14:55
dipankardfarning, you are still at Paraguay?14:56
dfarningdipankar, one more week then back to my own home.14:57
dipankardfarning, :)14:57
dipankardfarning, Did you get a chance to see the mail that I sent regarding the fullscreen bug?14:59
dfarningI scanned it.  but I try to stay out of technical discussions:)  those are better left to developers who know what they are doing.15:01
dipankardfarning, :)15:01
dipankaralsroot, !ping!15:01
dfarningdipankar, ^^ I suggesting asking alsroot how to proceed.15:01
dipankardfarning, I am on it.15:02
dfarningdipankar, thanks.15:03
dipankaralsroot, around?15:09
dipankaralsroot, I need your help on the fullscreen bug.15:09
dipankarneeraj, around?15:10
dipankarbernie, around?15:12
manusheeldipankar, neeraj is not around.15:14
manusheelHe'll be back in 15 mins.15:14
dipankarmanusheel, ohk sir15:14
manusheelInformed me.15:14
dipankarmanusheel, I am at #suagr15:14
dipankar*#sugar15:14
manusheelOk, great.15:14
alsrootdipankar: pong15:15
dipankaralsroot, I am at #sugar15:16
alsrootmanusheel: pong as well15:17
manusheelalsroot: Hi Aleksey. Good morning.15:17
alsrootmanusheel: morning15:18
berniedipankar: yup15:18
bernie(not for long, I'm packing up)15:19
dipankarbernie, where are you heading to?15:23
dipankarmanusheel, Sir, tomeu has again some other opinions15:24
dipankarmanusheel, I need some help :(15:24
dipankarmanusheel, Sir, what tomeu is asking is correct I guess. Why are we actually trying to remove all those errors in the shell.log first place?15:26
dipankaralsroot, did you get a chance to go through my mail regarding the 'fullscreen-new approach'15:26
dipankaralsroot, I found that at exactly 800x600, due to task panels and window title bar of xephyr, there is some cropping in emulator15:27
alsrootdipankar: the original issue that 800x600 is not work exactly is that issue w/ scaling, /me is looking into the code..15:29
berniedipankar: Uruguay15:33
berniedipankar: I'll work with the people of Plan Ceibal for one week, more or less15:34
dipankaralsroot, I set the condition for fullscreen to <= 800x600. from < 800x60015:44
dipankaron my system15:45
dipankarbernie, ohk. :)15:46
alsrootdipankar: heh, "<=" that's an obvious bug15:46
dipankaralsroot, why?15:47
alsrootdipankar: I mean its obviously a bug :)15:47
alsrootdipankar: could you create a ticket on bugs.sl.o?15:47
dipankaralsroot, I mean, to do away with the cropping part, I modified the code a bit15:47
dipankaralsroot, ok sure15:48
dfarningdipankar, are you looking at the gsm error bug?15:48
dipankardfarning, just completed with the fullscreen bug.15:48
dipankardfarning, I think we are slowly arriving at a conclusion.15:48
alsrootdipankar: but stop, there is already ticket for such issue, /me is looking15:48
dipankaralsroot, sure15:49
dfarningdipankar, the problem with the gsm bug is _not_ that something is being reported it is the fact that the message is called an 'error'.15:49
dipankardfarning, ohk.15:50
dipankardfarning, so, I think what tomeu is saying is correct.15:50
dfarningdipankar, to fix the issue all you have to do is downgrade the message from error something lower such as warning.15:50
dipankar* How is it relevant to user?15:50
dipankardfarning, ok. But when I asked about gsm issue,^^ tomeu asked me the above question15:51
dfarningdipankar,  It is relevant to developers... because error means "holy shit some really bad just happened", warnings just provid information to the developer about what is happening.15:53
dfarningdipankar, where is the code?15:53
dipankardfarning, got your point.15:53
dipankardfarning, /usr/share/pyshared/jarabe/model/network.py, line 69615:53
alsrootdipankar: in fact there are two related bugs, http://bugs.sugarlabs.org/ticket/1396 and http://bugs.sugarlabs.org/ticket/174715:53
alsrootdipankar: but they are not about the same.. so it could be new ticket then..15:54
alsroot*exactly the same15:54
dipankaralsroot, ohk. But I got some feeling that they are discussing about cropping only :P15:55
dipankaralsroot, I filing a new ticket.15:57
neerajalsroot: for the control panel icon-cut off issues, I have reduced the column size to 3. At present there are nine items in control panel and all are visible with appropriate distance between various icons.15:58
alsrootneeraj: I think, it might be better to calculate optimal columns count according to current screen resolution i.e. screen sizes could be various from 800x600 to 1400+15:59
neerajalsroot: do you any any other solution for this bug https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/61758215:59
neerajalsroot: Ok.16:01
dipankaralsroot, created the new ticket16:03
neerajdipankar: Can u tell me how to check in which resolution sugar is running. Ok default is 800X600. But what if some one run it in higher resolution then this16:03
dipankar* its gone for moderation16:03
dipankarneeraj, for sys resolutions higher than 800x600, the emulator will run in window mode only. but the resolution of emulator will be 800x60016:04
alsrootneeraj: also, especially on large screens, it could be useful to not expand gtk.Table cells vertically (see yoptions argument on http://library.gnome.org/devel/pygtk/stable/class-gtktable.html#method-gtktable--attach)16:04
dipankaralsroot, I am off for dinner. will contact you after I get back. Thanks.16:05
* dipankar is off for dineer16:05
dipankar*dinner16:05
dfarningdipankar, try grepping though the file for other occourances of the logging function16:05
manusheeldfarning: Thank you for the pointer.16:06
manusheelWill share it with Dipankar16:06
manusheelwhen he is back from dinner.16:06
dfarningmanusheel,  I would suggest downgrading exception to debug.16:06
manusheeldfarning: Ok, sure.16:06
dfarningmanusheel, thanks16:07
neerajalsroot: Ok. When i ran sugar in 1068x800 then the control panel looks like this http://imgur.com/BsQIr.png16:08
neerajalsroot: Can you suggest me how can I detect in which resolution a user is running sugar-emulator.(even when he is explicitly specifying the emulator resolution using sugar-emulator -i AxB)16:10
=== kandarpk_ is now known as kandarpk
kandarpkalsroot: I was thinking of developing an application like visual basic in sugar.16:11
kandarpkwhich could provide application developers some idea of the tools sugar modules provide.16:11
alsrootneeraj: just something like "screen_width / <assumed-cell-width-eg-GRID_CELL_SIZE*3>16:12
kandarpkalsroot: but as sugar is targeted at children, will that be useful ?16:12
kandarpkdfarning: Hi.16:13
alsrootkandarpk: but why not, on big screens hardcoded 3x3 looks overkill16:19
luciankandarpk: why visual basic? Sugar already uses python, a language superior by any measure16:19
luciankandarpk: do you mean a GUI building tool?16:20
kandarpklucian: yes, exactly16:20
luciankandarpk: there are two activities geared towards writing code, Pippy and Develop16:20
manusheelkandarpk: Try develop.16:20
lucianand there's Glade for building GTK GUIs16:20
alsrootneeraj: but anyway, better to raise this question (about how many cells should be keeping in mind different screen sizes) should be risen on sugar-devel@, post an email w/ tag [DESIGN] in subject16:21
kandarpklucian: Ok.16:21
lucianso you could integrate glade in Develop or sugarise glade16:21
kandarpklucian: great idea.16:21
lucianalsroot: neeraj: android has the same problem with phone vs tablet16:21
kandarpklucian: what I was looking for was instead of developers reading code, they should be able to see the GUI the sugar modules provide.16:22
dfarningkandarpk, and also check out turtle art, etoys, and scratch.  they are visual languages for helping kids learn to program visually.16:22
kandarpklucian: will studying develop help ?16:22
luciankandarpk: it might. also have a look at Pippy16:22
neerajalsroot: Ok. I was also confused what will be better.16:23
neeraj*better option16:23
kandarpkdfarning, lucian: Ok.16:23
luciandfarning: i think kandarpk is looking for something to transition developers to writing sugar activities. am i right?16:23
lucianor something to make writing activities easier?16:24
kandarpklucian: I want to let them know what modules sugar already have16:24
dfarningneeraj, the issue for you is that the the screen resolution can vary depending on the hardware.  so you will need to detect the screen resolution on the fly and determine how many columns will fit in the available space.16:25
kandarpklucian: yes, that will make writing activities easier16:25
luciandfarning: i think the correct way to do it would be to figure out the screen size from DPI and resolution16:26
dfarninglucian, proper implementation is beyond me:(16:27
neerajdfarning: Sure, That can be done. Modifying code and testing.16:27
=== bernie is now known as bernie_afk
lfaraonealsroot: how's your python16:36
neerajdfarning: alsroot setting Max Column to gtk.gdk.screen_width()/200 is solving the problem.16:37
dfarningneeraj, that 'smells correct'.... but I don't know the implementation nuances.16:39
neerajdfarning: same here. :)16:40
lfaraonelucian: perhaps you'd be a person to ask: I'm trying to have files that match "*.txt" and "aiml/self-test.aiml" installed in the same directory of a package as the python source itself. My naieve attempts wrangling setup.py have ended us with a subdirectory "aiml/aiml/self-test.aiml" in the resulting package.16:41
lucianlfaraone: i don't know setuptools16:42
luciani don't think i know more than you here16:42
alsrootlucian: Re: how's your python -- not so bad :)16:48
lucianalsroot: that was lfaraone asking :)16:48
lfaraonealsroot: how's your setuptools-fu, I should ask :P16:48
alsrootlfaraone: didn't use such stuff16:49
lfaraonealsroot: so you couldn't help me figure out why http://git.debian.org/?p=collab-maint/python-aiml.git;a=blob;f=setup.py;h=9c7b5708ea9d53789e2d52ae3965c40be003725f;hb=HEAD is not installing package data ... in the package, right?16:50
alsrootneeraj: sugar uses scaling (to support different dpi), so better to avoid direct numbers and use style.zoom(), but in this particular case, in my mind better to count in style.GRID_CELL_SIZE16:50
alsrootlfaraone: sorry, can't help here16:51
alsrootneeraj: btw, while testing your code, use "-s 100" and "-s 72" as well for change scalling16:58
alsroot..use w/ sugar-emulator command16:59
neerajalsroot: I am not sure I should I co relate GRID_CELL_SIZE with screen resolution. By hit and trial I set up Column to style.GRID_CELL_SIZE/15. But when I ran sugar-emulator in different resolution, then the number of columns were not changing at all/17:04
neerajalsroot: Ok. scaling is also an issue. I tried -s 100, then the effective size of control panel reduced a lot as comparison to 3X3 icon grid, when I ran in in 800X600.17:08
neerajAlso, I think you know it but still let me tell u again what we are trying to do. When we run sugar in default mode, then the  *all* control panel icons are not visible screen, but we do have a horizontal and vertical scroll bar .17:11
alsrootneeraj: GRID_CELL_SIZE is referencing to http://wiki.sugarlabs.org/go/Human_Interface_Guidelines/The_Sugar_Interface/Layout_Guidelines, so w/ "style.GRID_CELL_SIZE/15" you have too many columns :)17:12
neerajalsroot: strange. I again set column to style.GRID_CELL_SIZE/15. The resultant column size is still 3.17:13
alsrootneeraj: my idea was just calculating columns count in advance(instead of hardcoded "5")17:13
alsroot..something like <screen-width> / (style.GRID_CELL_SIZE * 3)17:15
neerajalsroot: Ok.  Lemme try it again . :)17:16
neerajalsroot: Ok. setting column to <screen-width> / (style.GRID_CELL_SIZE * 3) is solving the problem related to resolution.17:21
neeraj* dinner.17:23
=== neeraj_ is now known as neeraj
=== bernie_afk is now known as bernie
ankurhi alsroot  :)18:10
kandarpkalsroot: around ?18:12
dipankardfarning, I got your message. :) Thanks to Manu sir.18:18
dfarningdipankar, does it make sense?18:18
dipankardfarning, yeah. We want that message to appear as warning and not as Error18:18
dfarningdipankar, +118:19
dipankarbecause, developers kind of freak out on errors18:19
dipankar:P18:19
dipankarand as a convention they work more on removing errors18:19
dipankardfarning, then I shall set it from exception to debug18:21
dfarningdipankar, +118:21
dipankardfarning, done18:24
* dipankar is closing the 'No gsm connection was set in Gconf' bug18:24
dipankardfarning, for making patch I should be targeting this package : python-jarabe-0.88?18:25
dipankarbecause the file, network.py falls under this package.18:25
dfarningdipankar, this should be turned into a patch and submitted to SL and accepted before closing18:25
dfarningdipankar,  is -jarabe- the source package in debian that contains the file?18:26
dipankardfarning, this is as close as I could get: https://launchpad.net/ubuntu/maverick/+package/python-jarabe-0.8818:28
dipankarfor debian : http://packages.debian.org/testing/python/python-jarabe-0.8818:29
dfarningdipankar, i think sugar-0.88 is the source package you want.18:30
dipankardfarning, ok. right on18:31
dipankardfarning, I have sugar-0.88 package. But I am unable to find the network.py file18:33
=== bernie is now known as bernie_afk
alsrootankur: hi18:36
alsrootkandarpk: pong18:36
dfarningdipankar, sugar-0.88.1/src/jarabe/model/ in debian18:36
dipankardfarning, just found it :)18:36
kandarpkalsroot: what other modules provide GUI tools like widgets does ?18:36
alsrootkandarpk: in fact, sugar-toolkit's directories: src/sugar/graphics src/sugar/activity18:37
kandarpkalsroot: Ok.18:38
dipankardfarning, unfortunately thats not the file :(18:39
dipankardfarning, I think I have the old package :(18:43
dipankardfarning, how can I get the latest package? debcheckout?18:43
dfarningdipankar, yes the file in http://pastebin.com/8tfj202m it looks right to me18:44
kandarpkdfarning, alsroot: please see http://picturepush.com/host.php?image=401569518:44
dipankardfarning, yeah. I have the old files :(18:45
kandarpkdfarning, alsroot, manusheel sir: In the activity various modules along with the GUI provided can be described18:45
dfarningkandarpk, cool18:45
ankurhi alsroot , :)18:47
ankuri was working on to change the text in title bar of xephyr wondow if possible..... i was not able to process in that direction.Will need your help18:49
dipankaralsroot, hi. is it ok to continue with the fullscreen bug?18:52
dipankardfarning, it will take sometime to download the package. slow speed :(18:53
alsrootankur: dunno how it is important, I mean, sugar-emulator is just sugar emulator, you need to look to Xephyr documentation, sorry can't help here18:55
alsrootdipankar: what is the number of bug you created?18:56
dipankaralsroot, it has gone for moderation testing, I think no bug number has been assigned yet18:56
ankurright , i will try once again , i tried before but i was not able to see any break through18:57
dipankardfarning, created my gsm.patch18:58
ankuralso i wanted to work on the part that every little change in control panel should not require restart. so , i have zeroed on code segment which should be changes but i wa not able to figure out in which changes i should make the change18:58
ankuror more importantly , can i change the functionality of control panel so that it never requires restart where ever possible18:59
ankur?18:59
dfarningdipankar, I have not heard of moderation for the bug tracker..... are you signed in?19:01
dipankardfarning, I filed a bug ticket at bugs.sugarlabs.org as instructed by alsroot19:02
alsrootankur: I guess nope, keeping control panel widgets all time in memory could be overkill19:02
dfarninghmmm maybe there is a spam filter inplace.19:03
manusheeldipankar: What is your username?19:04
manusheelat bugs.sl.org19:04
dipankarmanusheel, dipankar19:04
alsrootdipankar: yup, looks like it is spam filter, it sansboxing every new submitter (afaik, but better to ask silbe)19:05
* alsroot accepted it19:05
alsrootdipankar: you can upload your patch to http://bugs.sugarlabs.org/ticket/218019:06
dfarningalsroot, are you an admin on trac?19:07
dipankaralsroot, ok. I found that silbe is the one who actually wrote the code for fullscreen emulator :)19:07
dipankarmanusheel, dfarning, I have uploaded patch for gsm connection: https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/614394 please check it19:07
dfarningdipankar, good.  Can you now open a bug in the debian bug tracker and attach you patch?19:10
dipankardfarning, ohk19:10
manusheeldipankar: Yes, Dipankar. Please do that.19:10
dfarningdipankar, then test the patch against the debian package buy building it and then pinging the olpc-debian list for jonas or luke to commit it.19:16
dipankardfarning, ohk19:16
dipankarmanusheel, dfarning , I have sent the patch to DBTS19:24
dfarningdipankar, +1 what is the debian bug number19:25
manusheeldipankar: great19:25
dipankardfarning, Bug#59338019:25
dipankarmanusheel, dfarning : alsroot told me to upload a pacth for this too. I wanted to upload it before sleeping.19:26
dipankarhow to do it19:26
dipankar?19:26
dfarningdipankar, to where did alsroot suggest that you upload the patch19:27
dipankardfarning,oops sorry. here: http://bugs.sugarlabs.org/ticket/218019:28
dfarningdipankar, which issue are you fixing, the gsm logging error or the calculating the screen resolution in the CP?19:31
dipankardfarning, the fullscreen issue. I have a patch ready for it.19:31
alsrootdipankar: there is "Attach file" button on http://bugs.sugarlabs.org/ticket/2180 page19:32
dipankaralsroot, I am not getting that option anywhere :(.19:34
dipankaris there something i am missing out19:34
alsrootdipankar: are you logged in?19:34
dipankaralsroot, yeah19:34
dipankaralsroot, I think it is owned by tomeu, thats why I can't upload anything i guess19:36
dipankaralsroot, how about I e-mail it to you?19:36
alsrootdipankar: ok, but it is something wrong w/ bugs.sl.o then, any logged on user can upload a patch19:37
dipankaralsroot, ohk :(19:37
dipankaralsroot, sent it to you19:40
dipankaralsroot, manusheel, dfarning, i would like to head to bed now. I will build the packages and test them on my system tomorrow19:41
* dipankar says goodnight and great day!19:41
dfarningdipankar, sounds good see you tomorrow19:41
=== neeraj_ is now known as neeraj
kandarpkalsroot: around ?19:49
alsrootkandarpk: yup19:49
kandarpkalsroot: how can I increase the font size of a gtk.Button ?19:50
alsrootkandarpk: there is modify_font() in gtk.Widget class19:53
kandarpkalsroot: Ok.19:53
alsrooti.e. button.modify_font(pango.FontDescription("Sans 10"))19:53
alsrootkandarpk: but in general, it is not good idea to change font size for regular widgets like buttons19:54
kandarpkalsroot: thanks a lot.19:54
kandarpkalsroot: why shouldn't they be changed ?19:55
alsrootkandarpk: it is common practice(and imho, good idea) to have all widgets of the same font, of course except special cases like games19:57
kandarpkalsroot: Ok. got it.19:58
kandarpkalsroot: it says global name 'pango' is not defined20:02
alsrootkandarpk: yup, you need to "import" pango module20:03
kandarpkalsroot: yeah, but the font size isn't changing20:03
alsrootkandarpk: not all for all properties like font, setting value can affect what you need (it is this particluar widget impl. details)20:06
alsrootkandarpk: looks like for buttons, font can be changed only on style level20:07
kandarpkalsroot: ok.20:07
alsrootkandarpk: e,g, you need to cnahge font not for button itself but for button.get_child() widget (which is standard gtk.Label)20:10
kandarpkalsroot: how can I do that ?20:11
alsrootkandarpk: just button.get_child().modify_font(...)20:12
kandarpkalsroot: wow, that worked.20:13
kandarpkalsroot: thanks.20:13
alsrootyw20:14
kandarpkalsroot, dfarning, manusheel sir: http://www.mediafire.com/imageview.php?quickkey=2mbavapx11vh92q&thumb=520:18
kandarpkuploaded some screenshots20:18
kandarpkgn.20:19
manusheelkandarpk: Sure, Kandarp.20:20
manusheelWe'll have a look.20:20
=== bernie_afk is now known as bernie

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!