#emc-devel | Logs for 2011-03-09

Back
[00:03:19] -!- logger[mah] [logger[mah]!~loggermah@mail.mah.priv.at] has joined #emc-devel
[00:03:47] -!- theorbtwo has quit [Ping timeout: 246 seconds]
[00:03:53] theorb is now known as theorbtwo
[00:04:29] -!- rooks has quit [Ping timeout: 246 seconds]
[00:17:05] -!- dgarr [dgarr!~dgarrett@adsl-75-61-68-238.dsl.pltn13.sbcglobal.net] has joined #emc-devel
[00:33:11] -!- Birdman3131 has quit [Ping timeout: 246 seconds]
[00:34:09] -!- andypugh has quit [Quit: andypugh]
[00:49:24] -!- mhaberler has quit [Quit: mhaberler]
[00:55:49] -!- JT-Shop has quit [Read error: Connection reset by peer]
[00:56:36] -!- JT-Shop [JT-Shop!~chatzilla@216-41-156-49.semo.net] has joined #emc-devel
[01:13:35] -!- robh__ has quit [Ping timeout: 276 seconds]
[01:19:58] -!- Valen has quit [Quit: Leaving.]
[01:31:15] -!- tlab has quit [Ping timeout: 276 seconds]
[01:35:15] -!- acemi has quit [Quit: WeeChat 0.3.2]
[01:38:59] -!- tlab has quit [Ping timeout: 246 seconds]
[01:53:39] -!- servos4ever has quit [Quit: ChatZilla 0.9.85 [SeaMonkey 2.0.11/20101206162726]]
[01:59:02] -!- skunkworks [skunkworks!~chatzilla@str-bb-cable-south2-static-6-412.dsl.airstreamcomm.net] has joined #emc-devel
[02:10:08] -!- toastydeath has quit [Ping timeout: 246 seconds]
[02:22:11] -!- jepler_ [jepler_!~jepler@jepler-1-pt.tunnel.tserv4.nyc4.ipv6.he.net] has joined #emc-devel
[02:22:55] * jepler_ <- ipv6
[02:22:58] -!- jepler_ [jepler_!~jepler@jepler-1-pt.tunnel.tserv4.nyc4.ipv6.he.net] has parted #emc-devel
[02:23:26] -!- SadMan has quit [Ping timeout: 246 seconds]
[02:39:32] -!- tlab has quit [Ping timeout: 246 seconds]
[02:50:42] -!- atom1 has quit []
[03:27:21] -!- mozmck has quit [Ping timeout: 252 seconds]
[03:56:01] -!- EDocToor has quit [Remote host closed the connection]
[04:59:03] -!- bill20r3 has quit [Ping timeout: 264 seconds]
[05:32:50] -!- mozmck [mozmck!~moses@client-173.225.233.222.dfwtx.partnershipbroadband.com] has joined #emc-devel
[05:46:22] -!- ve7it has quit [Remote host closed the connection]
[06:11:36] -!- dgarr has quit [Quit: Leaving.]
[06:22:24] -!- psha [psha!~psha@213.208.162.69] has joined #emc-devel
[06:22:45] -!- JeffM2501 has quit [Read error: Connection reset by peer]
[06:29:08] -!- i_tarzan has quit [Ping timeout: 246 seconds]
[06:54:20] -!- mhaberler [mhaberler!~mhaberler@62-47-141-69.adsl.highway.telekom.at] has joined #emc-devel
[06:58:32] -!- mozmck has quit [Ping timeout: 246 seconds]
[06:59:01] -!- mozmck [mozmck!~moses@client-173.225.233.220.dfwtx.partnershipbroadband.com] has joined #emc-devel
[07:41:07] -!- robh__ [robh__!~robert@5ace70bc.bb.sky.com] has joined #emc-devel
[07:55:31] -!- Dannyboy has quit [Remote host closed the connection]
[08:03:36] -!- stillme has quit [Quit: Leaving.]
[08:13:20] -!- EDocToor [EDocToor!~chatzilla@69-196-132-31.dsl.teksavvy.com] has joined #emc-devel
[09:02:06] -!- Guest917 has quit [Quit: Visitor from www.linuxcnc.org]
[09:05:31] <alex_joni> morning psha
[09:24:23] -!- EDocToor has quit [Quit: ChatZilla 0.9.86 [Firefox 3.6.15/20110303024726]]
[09:30:29] -!- EDocToor [EDocToor!~chatzilla@69-196-132-31.dsl.teksavvy.com] has joined #emc-devel
[09:32:58] <psha> morning
[09:33:00] -!- psha has quit [Quit: leaving]
[09:57:59] <mhaberler> ahoi
[10:03:02] -!- cv has quit [Ping timeout: 246 seconds]
[10:24:54] -!- pjm__ has quit [Ping timeout: 276 seconds]
[10:35:04] -!- HDB10 has quit [Remote host closed the connection]
[10:36:50] -!- HDB10 has quit [Read error: Connection reset by peer]
[10:38:06] -!- HDB10 has quit [Remote host closed the connection]
[10:45:00] -!- HDB10 has quit [Read error: Connection reset by peer]
[10:54:24] -!- mk0 has quit [Ping timeout: 240 seconds]
[11:25:22] -!- psha[work] [psha[work]!~psha@qwe.s2s.msu.ru] has joined #emc-devel
[11:25:30] <psha[work]> mhaberler: wow
[11:25:37] <psha[work]> great request about image and buttons
[11:25:59] <mhaberler> googling--- looks like its doable
[11:26:18] <mhaberler> probably needs gdk access: http://www.kksou.com/php-gtk2/articles/place-a-background-image-in-GtkWindow---Part-5---align-top-left---using-GdkDrawable-draw_pixbuf.php
[11:26:33] <mhaberler> realize callback -> do gdk phun stuff methinks
[11:27:00] <mhaberler> any other ideas?
[11:30:47] <psha[work]> i've not yet examined possibilites
[11:30:58] <psha[work]> but i don't think it's hard to do
[11:31:15] <psha[work]> implement simple container with image and floating layout
[11:31:24] <mhaberler> this might be a starter, for canvas though: http://faq.pygtk.org/index.py?req=show&file=faq18.009.htp
[11:32:08] <psha[work]> hm, gnomecanvas is not an option i suspect
[11:33:38] <psha[work]> i bet on container with image
[11:33:45] <psha[work]> and then adding table as a child
[11:34:19] <mhaberler> container? image?
[11:34:45] <psha[work]> yes
[11:34:51] <psha[work]> add container-like object
[11:34:53] <psha[work]> widget
[11:34:56] <mhaberler> it wont have a gdk window
[11:35:01] <psha[work]> which allow adding one child
[11:35:06] <mhaberler> so where put the image
[11:35:33] <psha[work]> yes, it need some amount of low-level access to internals
[11:35:45] <psha[work]> i'll give it a try in the evening
[11:36:31] <mhaberler> i would go for a window and access the underlying gdk window in the realize callback
[11:37:24] <psha[work]> yes, that's a way
[11:37:45] <psha[work]> inherit container/vbox and hook on realize
[11:37:48] <psha[work]> and resize maybe
[11:38:30] <mhaberler> actually a bitmap might not be the brightest idea to start with, probably svg or so will behave better when resizing
[11:44:03] <psha[work]> mhaberler: heh, you want to render it manualy? :)
[11:44:31] <mhaberler> not really: http://www.gtkforums.com/about2262.html
[11:45:48] <psha[work]> pixbuf is raster image
[11:46:14] <psha[work]> also you may just use cairo to draw directly
[11:46:24] <psha[work]> it's capable of loading png, svg
[11:47:47] <psha[work]> but now i have not testbed to check what's good and what's bad :)
[11:50:33] <mhaberler> actually it's expose-event, not realize
[11:51:50] <mhaberler> here's a cairo/gtk window draw example: http://www.gtkforums.com/about2262-0-asc-0.html post be dreblen Thu Dec 04, 2008 11:01 pm
[11:52:04] <mhaberler> works for me, although does a mask - way too much for the case
[11:58:07] <mhaberler> psha: on a different issue.. the indexer.py script fails for some of the html files.. wonder if it worked for you? added an exception handler to log the filename and continue instead of aborting
[12:03:08] <mhaberler> psha: re svg.. the best thing todo IMV is to use an Aspect Frame set to the natural aspect ratio of the svg, and draw in there
[12:03:20] <mhaberler> scales without distorting the svg
[12:03:29] <mhaberler> resizes, I mean
[12:13:10] -!- Athlocatle has quit [Quit: υΘΟΦΥ]
[12:16:04] -!- pingufan has quit [Remote host closed the connection]
[12:25:05] -!- i_tarzan has quit [Ping timeout: 246 seconds]
[12:33:31] -!- adb has quit [Ping timeout: 248 seconds]
[12:39:07] -!- zhanx_laptop has quit [Quit: Ex-Chat]
[12:39:55] -!- adb [adb!~Moldovean@178-211-232-101.dhcp.voenergies.net] has joined #emc-devel
[12:48:26] -!- HDB10_ has quit [Quit: Ex-Chat]
[12:54:50] -!- Gamma-X has quit [Quit: Leaving]
[12:55:36] <mhaberler> psha: painting in window1 with cairo (no svg yet, but thats easy): http://static.mah.priv.at/public/cairodraw.py http://static.mah.priv.at/public/cairodraw.ui
[12:55:56] <mhaberler> them widgets must become translucent a bit..
[12:56:21] -!- skunkworks has quit [Ping timeout: 252 seconds]
[12:57:43] <mhaberler> oh; thats it. http://cairographics.org/pyrsvg/
[13:00:02] -!- HDB10 has quit [Quit: Ex-Chat]
[13:00:52] <psha[work]> mhaberler: no way
[13:01:02] <mhaberler> why?
[13:01:13] <psha[work]> first - svg limitation is not nice
[13:01:29] <psha[work]> for example if you want to make a photo and place buttons on top?
[13:01:30] <mhaberler> doesnt sound like 'no way' to me
[13:01:41] <mhaberler> that's even easier..
[13:02:04] <psha[work]> i think that scaling is not a problem to bother with
[13:02:10] <psha[work]> plain cairo will suffice
[13:02:29] <mhaberler> ok, lets make it go away by looking in the other direction ;-)
[13:03:02] <mhaberler> ok, will do an example which does either svg or bitmap then
[13:04:33] <psha[work]> i'll take a look at it in the evening too
[13:04:52] <psha[work]> along with Fixed container it will play nice (i hope)
[13:05:02] <mhaberler> I'd think so
[13:05:39] <mhaberler> but widget background is an issue, have a look at the cairodraw.* files
[13:08:34] <psha[work]> i've no gladevcp here :)
[13:08:44] <mhaberler> poor soul
[13:09:36] <psha[work]> bb, time for small advertisement lecture for students
[13:09:46] <psha[work]> hope nobody will come...
[13:09:47] <psha[work]> :)
[13:10:13] <mhaberler> enjoy the silencee
[13:10:38] -!- psha[work] has quit [Quit: leaving]
[13:37:43] -!- adb has quit [Read error: Operation timed out]
[13:39:04] -!- skunkworks [skunkworks!447329d2@gateway/web/freenode/ip.68.115.41.210] has joined #emc-devel
[14:00:18] -!- nullie has quit [Read error: Operation timed out]
[14:42:36] -!- mozmck_work1 [mozmck_work1!~tcaudle@68.170.209.240.rhinocommunications.net] has joined #emc-devel
[14:42:38] -!- maximilian_h [maximilian_h!~bonsai@ulmg-5d8468a9.pool.mediaWays.net] has joined #emc-devel
[14:43:20] -!- mozmck_work has quit [Ping timeout: 246 seconds]
[14:48:10] -!- pingufan has quit [Remote host closed the connection]
[14:52:17] -!- maximilian_h has quit [Ping timeout: 255 seconds]
[14:54:21] -!- mhaberler_ [mhaberler_!~mhaberler@62-47-143-73.adsl.highway.telekom.at] has joined #emc-devel
[14:57:43] -!- mhaberler has quit [Ping timeout: 246 seconds]
[14:57:43] mhaberler_ is now known as mhaberler
[15:19:49] -!- tom3p [tom3p!~tomp@74-93-88-241-Illinois.hfc.comcastbusiness.net] has joined #emc-devel
[15:25:26] -!- mk0 has quit [Remote host closed the connection]
[15:26:24] -!- psha [psha!~psha@213.208.162.69] has joined #emc-devel
[15:28:51] <psha> logger[psha]_: .
[15:30:16] <psha> mhaberler: yea, i see now what's problem with background...
[15:31:43] <psha> however check http://psha.org.ru/tmp/cairodraw.ui
[15:31:57] <mhaberler> kinda ugly. It wont be fun to build stencils around all those widgets :-/ but maybe something is possible fumbling with the alpha channel. I dont know enough about this
[15:33:26] <mhaberler> great! what was the delta?
[15:33:37] <psha> Fixed layout instead of Table
[15:34:05] <mhaberler> no, the repaint now works
[15:34:14] <mhaberler> that was caused by layout?
[15:34:17] <psha> ah, i've not changed anything :)
[15:34:19] <psha> guess yes
[15:35:08] <mhaberler> great, although widgets gone ;-)
[15:35:25] <mhaberler> didnt know the fixed widget, super
[15:35:50] <mhaberler> oh. I missed the led.
[15:36:17] <mhaberler> led there, buttons not?
[15:36:35] <mhaberler> do *you* see your buttons?
[15:37:10] <psha> yes, i see them
[15:37:29] <psha> both
[15:37:32] <psha> led and buttons
[15:37:39] <mhaberler> I dont, but this is mac/virtualbox/ubuntu inside with real crappy opengl
[15:37:53] <psha> wait, i'll run nested xephyr
[15:38:57] <psha> second button is out of window
[15:39:00] <psha> make it a bit larger
[15:42:04] <mhaberler> hm, i see expose events when I move cursor near likely position of button, but not visible
[15:42:19] <mhaberler> pretty sure this is a virtualbox gl artefact
[15:45:53] <mhaberler> psha: bbl
[15:55:44] <psha> mhaberler: i've added image display (for png images) http://psha.org.ru/tmp/gladeimage
[16:00:04] <mhaberler> that now works for me
[16:00:07] <mhaberler> super!
[16:00:53] <mhaberler> I'll push that to my repo if thats ok with you and tell viestur to use that!
[16:03:36] <psha> ok
[16:03:51] <psha> i think it may happily live as out-of tree example of python hooks
[16:05:48] <mhaberler> just moving image load to main, no reason to read on every expose
[16:13:35] <mhaberler> curious: can fixed work on percentages of w/h as well? at least didnt see that
[16:13:58] <mhaberler> that would go great together with bitmap scaling
[16:20:52] <psha> don't know
[16:20:54] <psha> i think no
[16:21:38] <psha> maybe something gtkhtml will help in such cases
[16:24:50] <CIA-5> EMC: 03cradek 07master * rf9c032f59957 10/ (nc_files/roparams.ngc src/emc/task/emctaskmain.cc): task/ui: make sure errorChannel isnt overrun
[16:25:03] <CIA-5> EMC: 03cradek 07master * rb44be2dd39d5 10/src/emc/usr_intf/axis/scripts/axis.py: ui: speed up Axis error channel processing
[16:25:09] <cradek> mhaberler: thanks for those!
[16:25:29] <mhaberler> sorry for the exhaustive mail..
[16:26:42] <cradek> nah, I appreciate the explanations
[16:32:32] bill_ is now known as bill20r3
[16:34:29] <mhaberler> psha: I will leave it at that. pls quality control: http://git.mah.priv.at/gitweb/gladevcp-image.git
[16:36:10] <psha> mhaberler: nice
[16:36:18] <psha> it would be nice ads example :)
[16:36:37] <mhaberler> just telling viestur that that is the price ..
[16:36:43] <psha> with real life image from viestrus
[16:38:11] <mhaberler> yep
[16:47:21] <psha> http://psha.org.ru/tmp/0001-Ensure-that-widget-size-is-equal-to-image.patch
[16:48:39] <psha> ensure that container size is equal to image size
[17:02:19] <mhaberler> man, this is brute force..
[17:05:13] <mhaberler> look in __init__: widget.set_size_request(self.img.get_width(), self.img.get_height())
[17:05:20] <mhaberler> its already there
[17:19:51] <psha> oops
[17:19:52] <psha> sorry ;)
[17:20:14] <psha> i've tiled WM so only guessing about intended window sizes
[17:33:26] <mhaberler> next time, its 'razreshite obratytsa, mah' ;-)
[17:34:22] <psha> :)
[17:53:42] <psha> mhaberler: hm, why so difficult?
[17:53:47] <psha> self.width = cairo.ImageSurface.get_width(self.img)
[17:53:53] <psha> self.img is already ImageSurface
[17:53:59] <psha> so it's just self.img.get_widt()
[17:54:00] <psha> width
[17:54:36] <psha> for proportional scaling there is special widtget
[18:04:45] -!- adb [adb!~Moldovean@178-211-232-101.dhcp.voenergies.net] has joined #emc-devel
[18:06:11] -!- ve7it [ve7it!~LawrenceG@S0106009027972e37.pk.shawcable.net] has joined #emc-devel
[18:07:49] -!- EDocToor has quit [Read error: Connection reset by peer]
[18:20:37] -!- GammaX has quit [Quit: Leaving]
[18:31:41] -!- cpresser_ [cpresser_!~cpresser@rstenpresser.de] has joined #emc-devel
[18:32:07] <cpresser_> any ideas about what is wrong with my hal-component?
[18:32:08] <cpresser_> http://pastebin.com/anXUYXFQ
[18:32:49] <cpresser_> thats the hal_mydro.comp file: http://pastebin.com/S2Pr9Z8q
[18:34:20] <cpresser_> if loading the comp without parameters, it behaves as expected; but not if I start it with the right one.
[18:34:42] <cpresser_> at least, i would want it to execute the printf in line 43
[18:35:21] <mhaberler> psha: done
[18:37:51] -!- tom3p [tom3p!~tomp@74-93-88-241-Illinois.hfc.comcastbusiness.net] has parted #emc-devel
[18:42:46] -!- mhaberler has quit [Ping timeout: 246 seconds]
[18:44:42] -!- EDocToor [EDocToor!~chatzilla@69-196-132-31.dsl.teksavvy.com] has joined #emc-devel
[19:05:51] <cpresser_> just found a typo in comp. patch is here: http://pastebin.com/gpux3kk4
[19:07:19] -!- mhaberler_ [mhaberler_!~mhaberler@194.48.133.8] has joined #emc-devel
[19:11:30] -!- mhaberler__ [mhaberler__!~mhaberler@194.48.133.8] has joined #emc-devel
[19:14:39] -!- mhaberler_ has quit [Ping timeout: 255 seconds]
[19:14:42] mhaberler__ is now known as mhaberler_
[19:17:02] -!- Connor has quit [Ping timeout: 246 seconds]
[19:18:25] Connor2 is now known as Connor
[19:21:53] -!- mhaberler_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
[19:24:04] -!- mozmck_work1 has quit [Ping timeout: 246 seconds]
[19:27:02] -!- nullie has quit [Quit: Ex-Chat]
[19:31:04] -!- andypugh [andypugh!~andy2@cpc2-basl1-0-0-cust1037.basl.cable.virginmedia.com] has joined #emc-devel
[19:31:53] -!- mozmck_work [mozmck_work!~tcaudle@68.170.209.240.rhinocommunications.net] has joined #emc-devel
[19:32:32] -!- emc2-buildmaster [emc2-buildmaster!~emc2-buil@97-122-121-148.hlrn.qwest.net] has joined #emc-devel
[20:05:58] -!- seb_kuzminsky [seb_kuzminsky!~seb@97-122-121-148.hlrn.qwest.net] has joined #emc-devel
[20:07:21] -!- WalterN has quit [Quit: Leaving]
[20:12:52] -!- jthornton has quit [Ping timeout: 264 seconds]
[20:13:48] -!- JT-Shop has quit [Ping timeout: 276 seconds]
[20:24:55] -!- jthornton [jthornton!~chatzilla@216-41-156-49.semo.net] has joined #emc-devel
[20:27:18] -!- JT-Shop [JT-Shop!~chatzilla@216-41-156-49.semo.net] has joined #emc-devel
[20:29:02] -!- motioncontrol has quit [Remote host closed the connection]
[20:44:06] -!- EDocToor has quit [Quit: ChatZilla 0.9.86 [Firefox 3.6.15/20110303024726]]
[20:55:24] -!- micges [micges!~micges@cab121.neoplus.adsl.tpnet.pl] has joined #emc-devel
[20:56:35] -!- mrsunshine_ has quit [Ping timeout: 240 seconds]
[21:03:57] <micges> cradek: hi
[21:04:17] <micges> I've reproduced problem that danimal report about jogging in mdi
[21:05:28] <micges> problem is: when you hit F5 you got focus on mdi command line, after hitting F4 focus is set to main window so jogging is allowed, becouse jog commands automatically switch to manual mode
[21:07:59] <psha> micges: is it problem? or just a side effect?
[21:08:57] <micges> side effect of using F4
[21:34:46] -!- EDocToor [EDocToor!~chatzilla@69-196-132-31.dsl.teksavvy.com] has joined #emc-devel
[21:36:01] -!- adb has quit [Ping timeout: 246 seconds]
[21:53:33] -!- psha has quit [Quit: Lost terminal]
[22:00:05] -!- adb [adb!~Moldovean@178-211-232-101.dhcp.voenergies.net] has joined #emc-devel
[22:06:10] -!- acemi has quit [Quit: WeeChat 0.3.2]
[22:30:43] -!- mhaberler [mhaberler!~mhaberler@62-47-141-104.adsl.highway.telekom.at] has joined #emc-devel
[22:50:06] -!- micges has quit [Quit: Ex-Chat]
[22:53:42] -!- Fox_Muldr has quit [Ping timeout: 276 seconds]
[23:11:25] -!- skunkworks has quit [Ping timeout: 245 seconds]
[23:18:16] -!- adb has quit [Ping timeout: 260 seconds]
[23:20:58] -!- adb [adb!~Moldovean@178-211-232-101.dhcp.voenergies.net] has joined #emc-devel
[23:41:17] -!- tlab has quit [Ping timeout: 246 seconds]
[23:43:48] -!- mozmck_work1 [mozmck_work1!~tcaudle@68.170.209.240.rhinocommunications.net] has joined #emc-devel
[23:44:31] -!- mozmck_work has quit [Ping timeout: 260 seconds]
[23:49:00] -!- kirk_wallace has quit [Ping timeout: 246 seconds]
[23:49:16] -!- skunkworks [skunkworks!~chatzilla@str-bb-cable-south2-static-6-412.dsl.airstreamcomm.net] has joined #emc-devel