/srv/irclogs.ubuntu.com/2015/08/10/#ubuntu-app-devel.txt

=== chriadam|away is now known as chriadam
=== chihchun_afk is now known as chihchun
=== ara_ is now known as ara
dholbachgood morning07:33
dholbachdavidcalle, once you're caught up, you can maybe help me a bit with lp:~dholbach/developer-ubuntu-com/index_page - it's a WIP branch that should go into lp:~developer-ubuntu-com-dev/developer-ubuntu-com/snappy-docs-import - unfortunately I end up with articles which have the wrong parents (call to create_page wrong?) but once that's done we can get it into a final review and then fully merged :)08:01
dholbachdavidcalle, I changed a few things, for example not recreating articles every time and being able specify an index_doc (like intro.md in the docs directory of lp:snapcraft)08:02
davidcalledholbach, I've been following your branches last week, haven't tried any of it yet, but it looks great :)08:02
davidcalledholbach, btw, do you know why no deploy in the last two weeks, staging seems fine. Issues with the mojo spec?08:04
dholbachdavidcalle, I think the webops team had lots of other stuff to get done as well :/08:09
=== faenil is now known as faenil_
davidcalledholbach, I'm trying to wrap my head about how the logic has changed: when I try the branch in its current state, I end up with a standalone snappy page (the default index one), outside of the existing snappy tree, with no chidren08:53
dholbachdavidcalle, yeah, that's the problem I'm still trying to fix09:05
dholbachapart from that it all works09:05
davidcalledholbach, hmm, where do imported docs end up?09:07
dholbachin /tmp09:07
dholbachyou can uncomment the removedirs line to keep them around09:07
davidcalledholbach, sorry, not end up , but "get published" :)09:07
=== faenil_ is now known as faenil
dholbachlet me check - I tried the lp:snapcraft last - let me check lp:snappy too09:12
dholbachdavidcalle, good question :-/09:24
dholbachI think there's a problem with the index_doc logic09:25
dholbachok, I think I found the issue09:27
dholbachlet me confirm09:27
dholbachok, I pushed a change now which should help in the lp:snappy case (no index_doc)09:31
dholbachit's still not quite right09:31
dholbachdavidcalle, if I print out the variables of the create_page call, I get a different cms.models.pagemodel.Page reference for the parent node every time - this seems wrong09:34
davidcalledholbach, hmm. /me looks09:36
dholbachdavidcalle, it's bizarre: in the page tree it looks like snappy/guides/devel went into the top level, but its url is still /snappy/guides/devel/09:44
davidcalledholbach, yeah, urls are independent of the actual cms tree09:50
dholbachoh ok09:50
dholbachhow can I get them to show up in the cms tree nicely?09:51
davidcalledholbach, attach the right parent page to it (when creating the page, with the parent argument)09:52
dholbachright, I think that's what I did09:52
davidcalledholbach, looks like it, yeah :/09:53
dholbachdavidcalle, debug output is: http://pastebin.ubuntu.com/12046988/09:54
dholbach        print(title, "default.html", "en", slug, parent, parent.get_absolute_url(),09:54
dholbach              menu_title, in_navigation, "last-child", redirect)09:54
davidcalledholbach, I need to be afk for a moment. Will try to find a solution after that.09:55
dholbachsure, no worries09:55
dholbachI'll move over to the office and have a look at it as well09:56
dholbachthanks for helping out!09:56
=== dholbach_ is now known as dholbach
=== chriadam is now known as chriadam|away
* davidcalle back11:26
=== chihchun is now known as chihchun_afk
=== JMulholland_ is now known as JMulholland
=== _salem is now known as salem_
dholbachdavidcalle, ok, so all the articles get added in the top level12:15
dholbachdavidcalle, later on they get removed by remove_old_pages12:16
dholbachmaybe something with our use of page_resolver.get_page_queryset_from_path is wrong12:16
davidcalledholbach, yeah, I'm at the same step of debugging12:20
dholbachdavidcalle, http://pastebin.ubuntu.com/12047609/12:21
davidcalledholbach, ty. Unrelated, but I need to add an "if placeholder.get_plugins()" at line 239 to get the branch to run12:23
dholbachoh12:23
dholbachlet me check12:23
davidcalledholbach, or it errors on placeholder.get_plugins()[0] (index out of range)12:23
dholbachsure12:24
dholbachmaybe a preexisting page with no placeholders12:24
dholbachsafe to check in any case12:24
dholbachdavidcalle, maybe we can't rely on page_resolver.get_page_queryset_from_path12:26
davidcalledholbach, well12:26
dholbachDJANGO_SETTINGS_MODULE=developer_portal.settings ./env/bin/python -c 'from cms.utils import page_resolver; print(page_resolver.get_page_queryset_from_path("snappy/guides").__dict__); print(page_resolver.get_page_queryset_from_path("snappy/guides").__dict__)'12:26
dholbach{'_known_related_objects': {}, '_sticky_filter': False, '_db': None, '_for_write': False, '_prefetch_done': False, '_result_cache': None, 'query': <django.db.models.sql.query.Query object at 0x7f470d9dc450>, 'model': <class 'cms.models.pagemodel.Page'>, '_prefetch_related_lookups': []}12:26
dholbach{'_known_related_objects': {}, '_sticky_filter': False, '_db': None, '_for_write': False, '_prefetch_done': False, '_result_cache': None, 'query': <django.db.models.sql.query.Query object at 0x7f470d9dc410>, 'model': <class 'cms.models.pagemodel.Page'>, '_prefetch_related_lookups': []}12:26
dholbachtwo subsequent calls to the same thing give me two different objects12:26
dholbachmaybe that's already saying something(?)12:26
dholbachor I'm using it wrong :)12:26
dholbachah no, sorry - that's the query object12:27
dholbachthe id I get for both page objects is the same12:28
dholbachso ignore me12:28
davidcalledholbach, I've frequently seen pages having two instances, one for live, one for draft, that could be related to what's going wrong12:29
dholbachhum hum12:29
dholbachmaybe it's make sense to try to find out the parent once per branch and pass that as an object12:30
dholbachit'd be bizarre if that made it work, but it'd be worth a try and it'd be less hits on the db :)12:30
dholbachI'll try it out12:30
davidcalledholbach, where is the index page getting its parent?12:33
dholbachdavidcalle, that might be the problem12:35
dholbachdavidcalle, hum... it should use the same get_or_create call like the other pages12:41
davidcalledholbach, a ton of cached changes suddenly just appeared in my pages tree ;'(12:50
didrockszsombi: hey, it seems that QML tries to be too smart for my use case. If I add a list of string as a property in a model object (like model.append({"foo": ["bar", "baz"]})), when I retrieved it, "foo" is a ListModel12:56
didrockszsombi: this is a little bit annoying especially when you want to save it like in u1db as the object doesn't cast to anything (and become null)12:57
dholbachdavidcalle, maybe we're missing some .save() and .publish() calls somewhere?12:57
didrockszsombi: so, I don't know, seems like I'll have to handle all those transitions and keep 2 properties in my objects to handle the casting manually, doesn't sounds like optimal…12:57
zsombididrocks: it's not my fault ;)12:57
dholbachdavidcalle, I found another small issue :)12:59
didrockszsombi: ahah, for sure! Just wanted to know if you encountered that and have some tips for me12:59
dholbachthanks for your persistence :)12:59
davidcalledholbach, and in my cached tree there IS a version of my tests that put everything in the right place!12:59
davidcalledholbach, no idea when or what though13:00
dholbachdavidcalle, I used a backup of the database for every run of the script13:00
zsombididrocks: I think it's obvious, as long as your model is also a ListModel, dynamic list roles would be considered to be ListModels13:00
davidcalledholbach, that's smart /me takes notes13:01
dholbachdavidcalle, that's at least what I'm going to do until I have the feeling everything works just fine :)13:01
davidcalledholbach, what's your other small issue?13:01
didrockszsombi: sure, but then, that would mean that you would expect u1db to be able to store those models by ductyping?13:02
dholbachdavidcalle, when instantiating MarkdownFile, I should take index_doc already into account, so full_url is correctly set13:02
dholbachthat might simplify the code in other places too13:02
dholbachlooking at it right now13:02
davidcalleok13:02
zsombididrocks: not sure what it does if you declare the role statically in ListModel...13:03
zsombididrocks: like ListModel { foo: ["bar", "baz"]}13:03
didrockszsombi: well, the list is dynamic though13:04
didrocksas read from u1db13:04
zsombididrocks: just to know what ListModel will think of that role13:04
zsombididrocks: I guess it'll be an array then13:05
didrockszsombi: instead of ListModel, you meant having a static ListElement in that ListModel to declare the role, right?13:07
zsombididrocks: yeah :)13:07
karnizsombi: thank you :) (the list item swipe thing, IRC message from couple days back probably)13:07
zsombikarni: :) it shoudl be in trunk now13:07
karni\o/13:07
zsombiperhaps not...13:07
karni:D13:08
zsombiI guess it slipped the last release13:08
didrockszsombi: "ListElement: cannot use script for property value"13:08
zsombinext one13:08
karnithat's okay :)13:08
didrocksit doesn't like it :p13:08
zsombididrocks: so no wonder it creates ListModel out of it :)13:08
zsombidynamically I mean13:08
didrockszsombi: yep… :/13:09
dholbachdavidcalle, pushed a change13:12
davidcalledholbach, UnboundLocalError: local variable 'plugin' referenced before assignment13:14
davidcalleplugin.save() is only for plugin update. Creation of a new one doesn't need it iirc13:15
dholbachdavidcalle, ah... it should be: add a plugin = add_plugin()13:15
dholbachok13:16
davidcalleso your add_plugin is fine13:16
dholbachyes, you're right13:16
dholbachI checked the code13:16
* didrocks adds ugly workarounds :/13:20
* ogra_ wonders why kalikiana wants me to put frozen joghurt into my pita 13:42
kalikianalol13:43
ogra_:)13:43
ogra_though given the weather thats probably actually not a bad idea :)13:43
t1mpI have no idea what you are talking about, but the more I think of it the worse it gets...13:46
ogra_t1mp, see G+ ;)13:48
svijfor the lazy people: https://plus.google.com/109371351926239865612/posts/deARcXU7K2R13:48
davidcalledholbach, I've fixed the old pages removal issue, but I think we should move away from queryset_from_path13:49
dholbachdavidcalle, is there anything else you'd suggest?13:49
davidcalledholbach, maybe something using select_related('page__id').filter(path__regex=regex)13:52
davidcalledholbach, well, not that exactly, but filters and path regex13:52
dholbachok13:53
* davidcalle tries13:53
dholbachI'm looking into some unrelated changes right now13:54
davidcalleok13:54
t1mpsvij: ahh, thanks :)13:54
davidcalledholbach, http://i.imgur.com/Fq1Tm8d.png \o/14:03
dholbachthe magic davidcalle is back!14:05
davidcallehuhu14:05
dholbach:-D14:05
dholbachin a call with dpm right now14:05
davidcalledholbach, np14:05
dholbachI'll take a look at it in a bit :)14:05
* dholbach hugs davidcalle14:05
davidcalledholbach, here is a diff of my current state (http://bazaar.launchpad.net/~davidc3/+junk/duc-snappy-doc-100815/revision/155)15:04
dholbachdavidcalle, ah yes, the admin change reminds me... there's a few small changes I pushed to different MPs15:05
dholbachdavidcalle, great work15:07
davidcalledholbach, I've seen them, do you have any merges you would like a review on?15:15
dholbachnevermind...... I guess I thought I should split them up logically, but with so many parts moving around, I guess I can just merge two of them already :)15:17
=== gshereme is now known as gshereme|away
davidcalleok :)15:24
JoeyChanhello  mzanetti   need your help over here  ~15:32
popeyJoeyChan: i think he's on vacation, maybe someone else can help?15:35
JoeyChanoh no ...  can someone help with the cmake ? I still can't figure it out   popey15:36
popeyah, sorry. Not sure who else is a cmake expert round here15:37
popeymaybe zbenjamin ?15:37
zbenjamini'm no expert but it might help to kno the problem15:38
JoeyChanbetter than nothing   :P15:38
zbenjaminpfft15:38
JoeyChanzbenjamin:   multi-arch support using cmake15:39
JoeyChanthe reminders-app is using15:39
zbenjaminJoeyChan: multi arch as in fat packaging?15:39
JoeyChanzbenjamin:   yes,   armhf, i386, amd64 in one click pak15:40
zbenjaminJoeyChan: ok, so what is your plan.15:40
dholbachdavidcalle, the case of lp:snapcraft is fixed now too :)15:40
dholbachwoohoo15:40
dholbachthanks again davidcalle!15:40
dholbachdavidcalle, https://code.launchpad.net/~dholbach/developer-ubuntu-com/index_page/+merge/267533 :)15:41
zbenjaminJoeyChan: the problem is, how our builders work to build a cmake project cmake is running inside the chroot. It is simply not possible to have one cmake file to rule them all. Except you write a cmake project that works "outside" the chroots15:41
JoeyChanzbenjamin:   current Shorts-app is pure qml,   & we plan to reboot it as a c++ project,  lp:~mrqtros/ubuntu-rssreader-app/reboot-add-cmake-two-fixes15:41
zbenjaminJoeyChan: well one solution would be to use qmake ;)15:42
zbenjaminJoeyChan: the ubuntu sdk supports fat packaging for qmake using the IDE15:42
zbenjaminJoeyChan: however if you want a automated solution this is what the sdk does:15:43
JoeyChanzbenjamin:   there's a bash script which can build fat click pack:   http://paste.ubuntu.com/11930209/15:43
JoeyChanbut failed with current cmake15:44
zbenjaminJoeyChan: yeah thats what the SDK does as well with qmake15:44
JoeyChanzbenjamin:  the reboot version works will with the SDK, but failed with this script15:44
zbenjaminJoeyChan: whats the error15:45
JoeyChanzbenjamin: I didn't test this cos I have only armhf chroot,   popey said he built an big AMD64 pack15:46
zbenjaminpopey: ^ whats the error?15:46
popeyuh15:46
popeyJoeyChan: got the branch link handy?15:46
popeyzbenjamin: I think it just didn't put the binary bits in arch specific folders15:47
JoeyChanpopey:  lp:~mrqtros/ubuntu-rssreader-app/reboot-add-cmake-two-fixes15:47
zbenjaminpopey: ah, yeah thats a project issue then15:47
popeyso you get an executable in the root of the build dir, which is no good15:47
zbenjaminno, thats a zonk :D15:47
popeywhich would need to go in lib/armfoothing/15:47
zbenjaminpopey: well the builddir is not the problem, the installdir is15:47
popeythats it15:47
popeythats all I know :)15:48
zbenjaminpopey: why do you make me read cmake files? :D15:48
popey\o/15:49
davidcalledholbach, +1 :) Now there are a few tweaks needed, eg. the info box on non-current pages has disappeared15:49
dholbachoh15:49
zbenjaminJoeyChan: ok popey is right, you put the binary into the root folder15:49
JoeyChanzbenjamin:  seems I just need to know how to make the click generate a script to execute multi-arch~15:49
davidcalledholbach, I'll open a pad to list final tweaks? (in any case, we are in a releasable state now)15:50
zbenjaminJoeyChan: no your project setup it wrong15:50
JoeyChanzbenjamin:  yes I can put them in dif-folder15:50
zbenjaminJoeyChan: there are std folders for that15:50
zbenjaminJoeyChan: let me see15:50
mcphailJoeyChan: binaries under lib/whatever_arch/bin15:50
JoeyChanzbenjamin:  could u show an example cmake file ?15:51
zbenjaminJoeyChan: you have the ubuntu sdk handy right now?15:52
dholbachthanks a bunch davidcalle15:52
popeyJoeyChan: http://bazaar.launchpad.net/~notes-app-dev/reminders-app/trunk/view/head:/CMakeLists.txt15:52
* nemo halfheartedly pokes mcphail again15:52
popey    set(BIN_DIR /lib/${ARCH_TRIPLET}/bin)15:52
popey(and the bit above that which defines ARCH_TRIPLET)15:53
zbenjaminJoeyChan: check line http://pastebin.ubuntu.com/12048876/ 1715:53
zbenjaminJoeyChan: line 1715:53
zbenjaminah popey has an example too15:53
mcphailnemo: Hi!15:53
mcphailnemo: you still keen to work on HW for touch?15:54
nemomcphail: well. keen to see if you can get past your link errors ☺15:54
mcphailnemo: ha! Haven't looked at it as have been on holiday, then swamped with work, but back to normal now so can have a look this evening15:55
nemoif I recall, koda's speculation was needing to change lib names in SDLh.pas15:55
mcphailnemo: you around a bit later?15:55
nemokoda is, unfortunately, on vacation15:55
nemomcphail: well, on and off. evenings often dominated by kids15:56
nemobut, hey, can play IRC tag15:56
mcphailnemo: OK, I'll poke around and see if I can get any further15:56
JoeyChanpopey:  I remember that u said there's a script to execute the right "arch" file15:57
popeyJoeyChan: yeah, see the lines in the linked cmakelists.txt15:57
popey33-4115:57
davidcalle np, let's sync tomorrow on all the bright ideas we'll have tonight ;)15:58
zbenjaminJoeyChan: popey: you need no script to execute the right file on the device. PATH is always set to the right directory16:00
JoeyChanpopey:  no...  I mean,  the desktop file can only point to one executable file, but there r at least 3 files ...16:00
popeyah, i dont know how that works16:00
popeyah, as zbenjamin says, PATH fixes that :)16:00
JoeyChanpopey:   so,  I don't need to set anything to the desktop file ?16:01
mcphailJoeyChan: you .desktop file should point to "nameofbinarywithoutanypath" and it will all work magically16:01
JoeyChanmcphail:  lol16:01
popey\o/16:02
popeyI like magic.16:02
zbenjaminJoeyChan: popey: so all binary parts of the application go into that directory:   lib/<arch_triplet>   executables go into the bin subdir, qml plugins into the "qml" subdir and normal libraries just into the lib dir itself16:02
JoeyChanmcphail:  I like your answer   :D16:02
mcphailha!16:02
* mcphail wonders whether we can get rid of architecture-dependent binaries altogether by employing qemu-static, but that is another matter16:03
zbenjaminmcphail: that sounds like slooooooooooooooow apps16:03
mcphailzbenjamin: maybe. Might bring amd64 down to arm speeds :)16:04
JoeyChanhaha~16:04
mcphailJoeyChan: you haven't experienced magic until you have used qemu-static16:05
JoeyChanmcphail:  haha   :P16:06
aalerhi16:11
aalerhow do i compile to executable the app i made in sdk?16:11
aaleri am new here16:12
zbenjaminmcphail: its not only about executing armhf apps on x86, how about 3d acceleration , afaik qemu does not support that16:27
mcphailzbenjamin: yes - might be a problem. I can't quite work out at what level "user" mode qemu interfaces with the graphics drivers16:34
mcphailI think it is different from standard "system" mode, isn't it?16:34
mcphail(these things make my brain hurt)16:36
mcphailIn "user" mode, the kernel/modules are running natively rather than being emulated, at the expense of a few broken syscalls16:38
ogra_mcphail, every time an armhf binary is found, the kernel uses the binfmt module and wraps it in the syscall translator (qemu-arm-static) ...16:52
ogra_there is no way to fake armhf hardware in that setup (you would need a container to do that and actually translation layers for the GL calles and all)16:52
mcphailogra_: where does that leave graphics acceleration? :)16:52
ogra_nowhere :)16:53
mcphailaah. Curses!16:53
* ogra_ wrote the initial imple,mentation of qemu-user-static ... 16:53
* mcphail is in awe16:53
ogra_only for building and test execution though16:54
ogra_well, that wasnt such a big task, i just combined work of others ;)16:54
mcphailogra_: it is very useful for building16:54
ogra_in any case, if HW comes into play you have lost ... that already starts at a garmbage collector using /proc16:55
ogra_*garbage16:55
ogra_i think mono is still not installable in an armhf chroot today16:56
ogra_due to its GC needs16:56
mcphailogra_: so you'd need a full system emulation environment for that?16:57
ogra_yes, and then you will have problems finding actually one that has 3d drivers :)16:57
mcphailogra_: I had hoped qemu-arm-static had solved all my cross-compiling worries :(16:58
ogra_the android emu is special in that regard, it is a full system emu and has a translation layer for the graphics to actually hand the calls through to the host in an understandable fashion16:58
ogra_qemu-arm-static is fine for compiling :)16:58
ogra_just not for running if you actually require HW support16:59
mcphailogra_: brilliant. Cheers :)16:59
mcphailogra_: were ther ever any plans to use qemu-arm-static for SDK builds rather than the current click chroot setup?17:02
ogra_mcphail, i think the click chroot execution actually uses it as backend17:03
ogra_(bzoltan_ should be able to confirm or deny ;) )17:04
mcphailogra_: not sure about that - you still need cross-compilers in the SDK click chroots17:04
* bzoltan_ reads backlog17:04
mcphailogra_: (which is why I found qemu-arm-static in the first place)17:04
ogra_mcphail, right, it is a mix ... you use a qemu-arm-static chroot and inject the compiler from the outside17:05
ogra_that way you compile at host speed using the cross compiler17:05
mcphailogra_: aah - I didn't think there was any emulation going on in the click chroots17:05
ogra_(i know this was the initil design that was discussed, no idea thats still the case)17:05
ogra_*initial17:05
mcphailogra_: reason I ran into problems is because there doesn;t seem to be a pascal cross-compiler: https://adoptingubuntu.wordpress.com/2015/07/10/creating-an-emulated-armhf-chroot-for-development/17:07
ogra_yes, i think fpc was never fixed on armhf17:07
ogra_thats one of the few packages we miss for that arch17:07
ogra_is pascal still a thing ?17:08
mcphailogra_: there is a fpc build on armhf, just not a cross-compiler17:08
* ogra_ would have put that in the same corner as cobol :) 17:08
mcphailogra_: nemo is keen to port hedgewars, which is pascal17:09
ogra_i.e. dead and gone but you get immensely right if you still know it :)17:09
ogra_*rich17:09
bzoltan_ogra_: the armhf click chroot is an x86 chroot with :armhf dev packages and cross compiler17:11
ogra_bzoltan_, ah, so no qemu involved at all ?17:12
ogra_mcphail, why do you need to recompile btw ... cant you just use the binaries from eth archive ?17:12
ogra_*the17:12
mcphailogra_: no - that uses SDL1.217:12
ogra_(with some LD_PRELOAD and LD_LIBRARY_PATH hackery)17:13
ogra_ah, crap17:13
bzoltan_ogra_:  the click is not depending on qemu-user-static17:13
mcphailogra_: the code _can_ use SDL2, but the deb build is on 1.217:13
ogra_bzoltan_, yeah, got it17:13
bzoltan_ogra_:  scratchbox is doing that :)17:14
ogra_well, scratchbox was using qemu-system last time i looked (4-5 years ago though) and injecting commands via serial into the qemu VM17:15
* ogra_ inspected scratchbox when he did the first qemu-arm thingie 17:15
* mcphail would be keen to know what setup the Ubuntu PPA build machine use to build armhf, so he can copy it17:17
bzoltan_mcphail:  I am cross packaging with cowbuilder17:17
mcphailbzoltan_: ooh - that looks good17:18
bzoltan_ogra_:  I am not sure if I remember right (4-6y) but as I remember SB used both system and user mode ... system for emulating and user for simple commands like building17:18
bzoltan_mcphail: for me the pbuilder based builders were the most reliable and least troublesome tools with building the SDK stuff... it has silly issues too.. but simple interface and pretty good with building-packaging.17:20
mcphailbzoltan_: cheers. That is really helpful17:21
ogra_bzoltan_, well, when i researched it user didnt exist ;)17:22
bzoltan_mcphail:  I use `cowbuilder-dist wily armhf create` and then just send it the .dsc files. All logs and results go under the ~/pbuilder And you can tune it to the skies. But it was made for .deb packaging in mind .. so when it comes to clikc app packaging the click chroot are the way to go...17:23
bzoltan_ogra_:  not impossible that i am mixing the SB2 with it... what was a different beast.17:23
ogra_yeah17:23
ogra_SB definitely couldnt use it because i wrote the first prototype of it after i looked at it ;)17:24
ogra_that was later properly implemented by lool in debian then (and renamed to qemu-user-static)17:24
ogra_i think SB2 then adopted lool's work17:25
ahayzenpopey, as per https://code.launchpad.net/~vthompson/ubuntu-weather-app/reboot-remove-cpp-flag/+merge/267437 this site https://developer.ubuntu.com/en/community/core-apps/weather/ should not read "QML and C++" anymore just QML :-)18:18
cwayne-afkhi, is there a way to get the index of the listmodel when calling a leadingaction from that listitem?18:22
ahayzencwayne-afk, should just be "index" ?18:23
cwayne-afkahayzen: i thought so, but that seemed to get me the index of the action itself18:23
ahayzenhah18:24
cwayne-afkmaybe i was doing something wrong :)18:24
cwayne-afkoh wow, i havent been afk for awhile, should prolly change that nick now18:24
* ahayzen looks at the music-app's code to port to the new listitems18:24
=== cwayne-afk is now known as cwayne
ahayzencwayne, we use index here http://bazaar.launchpad.net/~ahayzen/music-app/refactor-use-sdk-listitems/view/head:/app/components/Queue.qml#L6518:25
ahayzencwayne, oh are you putting it in the actions part of the delegate part of the ListItemActions ?18:26
ahayzen*or the18:27
cwayneahayzen: ah, i think I know what I was doing wrong.. (basically the index of the item in my sqlite db doesnt necessarily match the index of the listmodel once one is removed)18:27
cwayneahayzen: so i should be able to get any of the info from the listmodel from there though right18:28
ahayzenfrom where?18:28
cwaynethe listitem action18:28
ahayzenas long as you haven't removed itself... and you should be able to get the relevant info18:29
ahayzenunless you've called the index field in the sqlite 'index' wonder if that would override the actual index property18:29
cwayneno i think i called it 'id' there18:29
cwaynewill need to take a look.. thanks for the link to the relevant music-app code ahayzen, i think that'll help me quite a bit18:32
ahayzenno problem :-)18:32
popeyahayzen: yay18:53
popeyahayzen: fixed! thanks18:54
mcphailnemo: ping20:12
mcphailnemo: if you get a chance, can you have a look at http://paste.ubuntu.com/12051196/ and tell me what I need to change in SDLh.pas (or give me a patched file)? Cheers20:34
nemo'k20:34
nemoheading home tho20:34
nemoso afk for a little while20:34
mcphailnemo: np20:35
* mcphail never learned pascal20:36
antony_Anyone Wanna test a gameboy/gameboy color emulator?21:50
mcphailantony_: is it in the store?21:55
antony_Yep its called ubuntu boy. ill swich it to free for a minute so you can download it.21:56
mcphailantony_: \o/21:57
* mcphail wonders where he left his roms...21:57
antony_Let me know when your ready21:58
mcphailantony_: fire away21:58
antony_Ok set it to free21:58
mcphailantony_: ok, d/ling21:59
mcphailantony_: let me dig out a rom and I'll test22:00
* mcphail loves z80 machines22:03
mcphailantony_: the play area is quite squashed up and the controls are very small. Can I adjust that?22:09
mcphailantony_: it is slightly better in landscape than portrait but still fairly unplayable22:09
antony_Ill make the controls bigger.22:10
mcphailantony_: the aspect ratio of the playscreen is off. I'll grab some screenshots22:10
mcphailantony_: http://themcphails.uk/tet1.png http://themcphails.uk/tet2.png22:15
mcphailantony_: good work, though. Plays well!22:15
antony_What rom did you use?22:16
mcphailantony_: some old tetris rom I had lying around. Only one I can find on this machine22:16
mcphailantony_: it is one I used on an old hacked zxspectrum gb emulator22:17
antony_Thanks for the complement22:17
mcphailantony_: is it all done in Qt?22:17
antony_html522:17
mcphailcool22:18
mcphailantony_: seems to play at normal speed and music works well.22:18
antony_Meizu or Bq?22:20
mcphailantony_: bq - krillin (the 4.5)22:20
mcphailcan someone remind me how I kill all my unneeded click chroots?22:50
mcphailfor some reason they seem to be multiplying at an alarming rate22:52
antony_The emulator should be much better now23:26
antony_Fixed the aspect ratio and made the controls bigger.23:27
mcphailantony_: looks very much better. However, I don't think the direction pad is working and there is an irritating bug where a double-tap on a button zooms the screen. Don't know if that can be fixed?23:32
antony_Would imagine disabling zoom with javascript would fix that23:35
antony_Ill try it23:35
antony_gtg23:35
mcphailantony_: great :). Might be worth forcing portrait orientation as well as the landscape mode doesn;t look so good23:35
=== salem_ is now known as _salem

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