IRC log of #harmattan for Monday, 2012-05-28

*** elldekaa_ has quit IRC00:01
aquariusSo be it. I am basically trying to cope with one specific not-handled-very-well-currently situation: that when you give a QML Audio component a file:// URL where that file is in the process of being downloaded, the Audio will only play as far as the file extended when playback started and will not pick up the changes.00:05
aquariusthere are many, many other use cases for audio streaming and audio downloading which this does not handle at all00:06
*** DocScrutinizer2 has quit IRC00:12
*** DocScrutinizer2 has joined #harmattan00:13
*** b0unc3 has quit IRC00:28
*** beford has joined #harmattan00:29
*** b0unc3 has joined #harmattan00:29
*** lardman|home has joined #harmattan00:31
*** lardman has quit IRC00:31
*** piggz has quit IRC00:34
*** tom_ has quit IRC00:39
*** b0unc3 has quit IRC00:50
*** b0unc3 has joined #harmattan00:52
*** e-yes has quit IRC01:07
aquariusgod, stop losing the network connection, n9. This is the One Annoying Thing about harmattan :(01:12
* ieatlint doesn't have that issue01:23
ieatlintwifi or cell network?01:23
*** faenil has joined #harmattan01:25
*** bef0rd has joined #harmattan01:28
*** bef0rd has quit IRC01:28
*** bef0rd has joined #harmattan01:28
*** rcg1 has joined #harmattan01:31
*** Sniper_swe has quit IRC01:31
*** niqt has quit IRC01:33
*** DocScrutinizer2 has quit IRC01:35
*** NIN102 has quit IRC01:36
*** gabriel9 has quit IRC01:40
aquariusieatlint, wifi01:45
*** e-yes has joined #harmattan01:51
Jareanything in syslog?01:51
*** Natunen has quit IRC01:51
aquariusinteresting thought. I hadn't considered checking01:52
aquariusnow I get to try and make it happen again :001:52
aquariusyou watch, it'll just work now.01:53
aquariustypical, all working fine.01:55
aquariusas I suspected: the way to make the wifi work perfectly is... to tell someone else that it doesn't work01:56
aquariusso the universe gets another chance to maximise its irony cunt01:56
aquariuser, count.01:56
aquariusstupid question: what's the best way from the N9 command line to launch a URL in the browser?02:20
ieatlintthere's a dbus command, but i forget what it is02:22
aquariusyeah; I can do that if need be. I was wondering if there were an easier way -- I don't want to write a little complex d-bus command line and then have someone say "why didn't you just use meego-open?" or somethnig :002:23
aquariusmosh-server doesn't run because the locale isn't utf-8. how irritating02:24
* aquarius pokes aroun02:24
Elleoaquarius: xdg-open02:26
aquariusI never even looked for xdg-open02:27
*** liar has quit IRC02:27
aquariustime to write tiny Fox2Phone thing then :)02:27
*** arcean has quit IRC02:29
aquariusalthough I'm not sure I understand the difference between the "user" and the "developer" accounts.02:29
ieatlintnote that in an application, you should be using qdesktopservices to open urls in the browser02:32
ieatlintand the difference is that they're two accounts.. the ~/MyDocs folder is shared, but any stored settings/data outside of MyDocs isn't.. they otherwise have the same permissions for accessing things02:33
aquariusieatlint, oh, sure, that's what I am doing02:34
aquariusI'm not talking about shelling out from an app to xdg-open, I'm not that much of a bellend. :)02:34
aquariusthis is because I was looking at the Nokia push messages notifications magic in order to do Fox2Phone02:34
aquarius(that is: a button in my browser to open the same page on the phone)02:35
*** M4rtinK has quit IRC02:35
aquariusand I thought: well, why don't I just ssh to the phone?02:35
ieatlintwasn't seriously trying to say you were, it's just a better way to go about it than asking "you aren't running a shell command from an app, right?"02:35
aquariussince I never, ever, ever want to send to my phone if my phone and my laptop are not on the same wifi connection02:35
aquariusso I can just ssh in and run xdg-open url02:36
aquariusthe sort of question is: if i ssh in as *developer* and then open the browser... is that bad? Since normally when I run the browser I'm running as "user"02:36
aquariusbut afaict I can't ssh in as "user" because I don't have a password for it, and I can't su to it, and I can't read its home folder as devel-su to add an ssh authorized key02:37
ieatlintwell, "bad" is relative.. it won't hurt anything to run the browser as developer, but depending on how the browser does its caching and stores its cookies, it may not share it with the user account02:38
ieatlintso cookies you have from normal browser usage may not be present and vise-versa02:38
ieatlintalong with setting a browsing history, or so forth02:38
ieatlintand if you want to access as user, you can set a password for the user account via the phone's terminal app02:38
ieatlintyou can also setup pubkey auth for it02:39
aquariusheh, I never thought of the terminal app. Wisdom.02:40
ieatlintalternatively you could write a very quick and simple app that just listens on a port, and then push urls to it from your browser.. could have features like showing the current ip address and port, and a history of urls received02:40
aquariusextra thing...does the phone get a whatever.local DNS name with the mdns stuff?02:40
ieatlintnot sure02:41
ieatlintit will report a name to the dhcp server, which your dns server can in theory use02:42
ieatlintbut that's a configuration on your network side02:42
aquarius"hostname" on the phone says "RM696", and RM696.local doesn't exist, but I don't really understand mdns -- all my Ubuntu machines are available as <machine hostname>.local, but I don't know exactly how that works :)02:42
* ieatlint shrugs02:44
ieatlintmy gateway has a dns server that proxies my requests, and adds in local resolution using the dhcp name as the hostname02:45
ieatlintso "RM696" resolves through my domain search order02:45
*** oberling has quit IRC02:45
*** Jare has quit IRC02:46
*** Jare has joined #harmattan02:46
*** MikaT_ has quit IRC02:46
*** Kozzi has quit IRC02:46
*** Kozzi has joined #harmattan02:46
*** MikaT has joined #harmattan02:48
*** faenil has quit IRC02:49
*** e-yes has quit IRC02:56
*** rcg1 has quit IRC03:04
aquariusaha. Wifi problem replicated.03:04
aquariusso, currently, I am sshed into the N9 over USB03:04
aquariusand the browser can't see the internet -- "Couldn't open page"03:05
aquariusit thinks it's connected to wifi (that is: it's in the top bar)03:05
aquariusand my router sees that it has an IP03:05
aquariusnothing in syslog03:05
aquariusis there anything useful I can do to debug?03:05
aquariusand, of course, now it starts working, after five minutes of hitting refresh and it not working. As soon as I try "ifconfig", the problem resolves itself.03:07
aquariusHeisenberg, eat your heart out.03:07
ZogG_laptopnice monolog dude =)03:16
aquariusit is possible that all that's happening is that the N9 is (correctly) dropping off the network and then reconnecting when I ask it to03:17
aquariusI don't mind that03:18
aquariusif that's the case, though, I wish the top bar wouldn't lie and show the wifi symbol. ;)03:18
aquariusanyway, time for bed.03:19
*** aquarius has quit IRC03:25
*** b0unc3 has quit IRC03:27
*** b0unc3 has joined #harmattan03:29
*** DocScrutinizer2 has joined #harmattan03:30
*** bef0rd has quit IRC03:33
*** beford has quit IRC03:34
*** bef0rd has joined #harmattan03:46
*** beford has joined #harmattan03:47
*** b0unc3 has quit IRC03:47
*** b0unc3 has joined #harmattan03:49
*** DocScrutinizer2 has quit IRC03:58
*** DocScrutinizer2 has joined #harmattan03:58
*** DocScrutinizer2 has quit IRC04:00
*** DocScrutinizer2 has joined #harmattan04:01
mtd_anyone know how N9(50)'s face recognition works?  what the software is called?  It is quite cool...04:10
* mtd_ cannot believe it's haar-cascade based, given the training times.04:10
Elleomtd_: well, there's a custom gstreamer element called facetracking, presumably that's what handle it04:17
Elleoas to the method used I have no idea, since it's a proprietary plugin04:17
SpeedEvilPosts image to server, has person in india compare pictures.04:34
*** b0unc3 has quit IRC04:39
*** b0unc3 has joined #harmattan04:40
ieatlinti can vouch for that as being the method04:40
* ieatlint contemplates hiring the day workers who stand outside the nearby hardware store to write his design doc so he doesn't have to04:42
ieatlint"why'd you write your design document in spanish with a pen and paper?" "uh... no sé"04:44
*** diorahman has joined #harmattan04:50
diorahmanI didn't do anything, I received the device in that way04:52
diorahmanI just frustrated to make it work, maybe there are other ways except usb04:53
mtd_Elleo: ooh05:10
GeneralAntillesSomebody in Europe want to price this for me: ?05:13
TronicSays € 1,00 on the website.05:14
TronicIncluding VAT.05:15
Tronic$ 1,00 in USA?05:15
GeneralAntilles$0.99 in the US05:15
TronicPlus sales tax?05:16
Tronic(not that it really matters)05:16
*** diorahman_ has joined #harmattan05:20
GeneralAntillesTronic, sales tax is a state issue05:20
GeneralAntillesas Nokia Store doesn't have any local stores that I'm aware of . . .05:20
GeneralAntillesDepends on how they incorporated05:20
GeneralAntillesBut, I doubt there's anywhere charging sales tax on the Nokia Store in the US.05:21
*** diorahman has quit IRC05:22
*** diorahman_ is now known as diorahman05:22
ieatlintassuming you can charge it via your carrier, then you'd pay sales tax on it when you get your monthly bill05:28
*** hardaker has joined #harmattan05:38
*** natunen has joined #harmattan05:51
*** b0unc3 has quit IRC05:55
*** b0unc3 has joined #harmattan05:55
*** diorahman_ has joined #harmattan05:57
*** diorahman has quit IRC06:00
*** diorahman_ is now known as diorahman06:00
*** diorahman_ has joined #harmattan06:12
*** diorahman has quit IRC06:15
*** diorahman_ is now known as diorahman06:16
*** imunsie has joined #harmattan06:18
*** diorahman_ has joined #harmattan06:29
*** diorahman has quit IRC06:33
*** diorahman_ is now known as diorahman06:33
*** b0unc3 has quit IRC06:35
*** imunsie has quit IRC06:36
TronicThe sales tax seems rather minor in any case, compared to our VAT of 23 % (next year 24 %, and Sweden already has 25 %).06:37
*** b0unc3 has joined #harmattan06:37
*** imunsie has joined #harmattan06:44
*** DocScrutinizer2 has quit IRC07:04
GeneralAntillesTronic, thus why our economy tends to do better. :P07:09
*** diorahman has quit IRC07:15
*** b0unc3 has quit IRC07:17
*** b0unc3 has joined #harmattan07:19
mtd_Elleo: I am amazed at how concise stuff like is07:36
*** adlan has joined #harmattan07:38
Elleomtd_: thanks, :)07:47
Elleoalthough I don't maintain those plugins anymore, they've become part of one of the main gst-plugins packages and I think thiagoss looks after them now07:48
*** natunen has quit IRC07:49
mtd_Elleo: seriously this is cool :).  Was stumped for a bit because the haarcascade xml files are in a non-default location on Fedora but now have a happy blue circle on my face :)07:52
mtd_Elleo: now if only I could do face recognition I could unlock my PC with a small python script.07:53
mtd_Elleo: thanks for the pointer about thiagoss07:53
mtd_Elleo: will thank him too07:53
Elleomtd_: great :)07:56
Elleomtd_: if you're interested I have an old post on my blog about using the face blurring plugin on an n900:
mtd_Elleo: thanks, that's very cool07:59
*** lamikr has joined #harmattan08:01
*** DocScrutinizer2 has joined #harmattan08:13
*** DocScrutinizer2 has quit IRC08:14
*** piggz has joined #harmattan08:31
*** natunen has joined #harmattan08:31
*** gabriel9 has joined #harmattan08:32
*** piggz has quit IRC08:36
*** hardaker has quit IRC08:38
*** gabriel9 has quit IRC08:39
*** GonzoTheGreat has joined #harmattan08:47
*** fignew has quit IRC09:13
*** bef0rd has quit IRC09:14
*** fignew has joined #harmattan09:18
*** e-yes has joined #harmattan09:21
*** GonzoTheGreat has quit IRC09:35
*** Shaan7 has quit IRC09:42
*** rcg1 has joined #harmattan09:55
*** rnovacek has joined #harmattan09:56
*** gabriel9|work has joined #harmattan09:58
*** elldekaa has joined #harmattan10:05
*** tom has joined #harmattan10:05
*** diorahman has joined #harmattan10:20
*** jreznik has joined #harmattan10:25
*** beford has quit IRC10:31
*** lamikr has quit IRC10:34
*** aquarius has joined #harmattan10:46
*** aquarius has joined #harmattan10:46
*** ArkanoiD_ has joined #harmattan10:50
*** lamikr has joined #harmattan10:51
*** vladest has joined #harmattan10:51
*** faenil has joined #harmattan10:58
*** rcg1 has quit IRC11:05
*** diorahman has quit IRC11:05
ZogG_laptopElleo: the eyrie worked on n9, though tested one song11:14
ElleoZogG_laptop: great :)11:15
ElleoI've been chatting with some of the folks at echonest and it sounds like they should have a mechanism for contributing fingerprints soon11:15
Elleowhen that happens I want to write a mafw plugin that automatically sends fingerprints when you listen to stuff, that way N9 users can help other N9 users recognise music just by listening to stuff themselves11:16
kimjujust fingerprint everything as rick astley? ;)11:19
*** e-yes has quit IRC11:23
*** cityLights has joined #harmattan11:26
ZogG_laptopkimju: i think in about 1 millisecond the reply of echonest is "OH, COME ON!!!!! =\"11:27
*** rcg1 has joined #harmattan11:28
*** b0unc3 has quit IRC11:33
*** M4rtinK has joined #harmattan11:34
*** b0unc3 has joined #harmattan11:35
*** faenil has quit IRC11:37
*** artemma has joined #harmattan11:37
*** NIN101 has joined #harmattan11:45
*** natunen has quit IRC11:55
*** Shaan7 has joined #harmattan12:03
*** ZogG_laptop has quit IRC12:08
*** tom has quit IRC12:13
*** tom has joined #harmattan12:14
*** GonzoTheGreat has joined #harmattan12:27
vladestis there is a chance to get same set of qt components for harmattanas for symbian?12:34
timophafaik you could compile them but they would collide with the symbian ones (using same names for different things)12:40
GonzoTheGreatis anybody around who knows about qmobility messaging/location?12:46
*** tom has quit IRC12:48
MohammadAGI've used location in sociality13:00
aquariusElleo, I agree that submitting fingerprints would be nice for echoprint, but my understanding was that they were fingerprinting their whole catalogue in the background, rather than expecting that the entire echoprint catalogue will be crowdsourced. Am I wrong about that?13:01
fluxhow large is their catalogue in the first place?13:02
Elleoaquarius: I'm not sure if they plan on fingerprinting their own catalogue with echoprint like they've done with their other algorithm, but they are certainly planning on making it possible for users to submit fingerprints13:02
Elleoflux: well for their other fingerprinting algorithm they have ~30,000,000 tracks fingerprinted13:03
aquariusflux, the echoprint catalogue is 200,000 songs or so. the ENMFP catalogue (the old-fashioned proprietary fingerprint, which isn't as good technically) is about thirty or forty million -- basically every popular song ever :)13:03
*** snowpong has joined #harmattan13:03
GonzoTheGreatMohammadAG you aren't using qml though ;-). Anyway I have trouble sending SMS (c++ mobility) have you encountered this?13:03
*** NIN101 has quit IRC13:03
fluxI bet they don't have many Finnish songs.. ;)13:03
aquariusflux, I admit that when I said "popular" I meant "in the UK and the US" because I am a scumbag English imperialist. Sorry :)13:04
ElleoI have a giant dump of jamendo oggs I'd like to get fingerprinted for them too13:04
aquariusGeneral question: PageStackWindow is lovely, but because it's a meego-specific thing, it makes it hard to build/play with an app without a meego-specific build environment (which I have, but it's annoying). Has anyone got an implementation (which could be pretty basic) of PageStackWindow that works without the meego components?13:05
Elleoaquarius: there's a qt-components package for ubuntu somewhere, hang on13:05
Elleobit old though13:06
aquariusI mean, I could just steal PageStackWindow.qml out of the meego components, but that seems like I'll end up in dependency hell :)13:06
aquariusooh, interesting13:06
Elleonot sure what package you need to get a working theme with it13:06
Elleoalthough you could probably pinch the blanco theme straight off your device if you want to keep everything looking consistent between the two13:07
aquariusI don't care so much about consistency here -- I'm not looking to *release* an Ubuntu version of my app13:07
Elleo(don't think you'd be able to redistribute blanco, but there's an n900 theme for qt-components that looks very similar you could use if redistribution of the desktop stuff was what you wanted)13:07
*** imunsie has quit IRC13:07
aquariusI'd just like to be able to test in a native window, without all the faffing about with xephyr and scratchbox and all that :)13:08
Elleoaquarius: you will need to grab a theme from somewhere, though, otherwise a lot of stuff will just look black13:08
*** pinheiro has joined #harmattan13:08
aquarius(and this would make sound work, to boot :))13:08
MohammadAGGonzoTheGreat: Nope, never used the API, what problems though?13:08
*** NIN101 has joined #harmattan13:11
GonzoTheGreatthe message only get marked as delivered (not sent) and when I monitor dbus I see a reply from the message senter with an error field.13:13
GonzoTheGreatthe message gets delivered eventually and/or when i send one to the same number via Conversation.13:16
*** natunen has joined #harmattan13:17
*** natunen has quit IRC13:23
*** Natunen has joined #harmattan13:25
MohammadAGOh, no idea then :(13:26
MohammadAGThe galaxy sii does that too sometimes :p13:27
*** mschlens has quit IRC13:29
*** mschlens has joined #harmattan13:31
*** adlan has quit IRC13:31
GonzoTheGreatWell another few nights will be wasted doing work arounds.13:45
*** aleksander_m has joined #harmattan13:47
*** ZogG_laptop has joined #harmattan13:47
*** M4rtinK has quit IRC13:55
*** GeneralAntilles has quit IRC14:07
*** GeneralAntilles has joined #harmattan14:07
*** cityLights has quit IRC14:17
*** jluisn has joined #harmattan14:28
*** Shaan7 has quit IRC14:45
*** cityLights has joined #harmattan14:46
*** liar has joined #harmattan14:47
*** aleksander_m has quit IRC14:52
*** aleksander_m has joined #harmattan14:54
*** DocScrutinizer has quit IRC14:54
*** DocScrutinizer has joined #harmattan14:54
*** Shaan7 has joined #harmattan15:04
*** elldekaa has quit IRC15:15
*** elldekaa has joined #harmattan15:16
*** djszapi has joined #harmattan15:34
djszapiHow can I access a C++ enum from QML which is not supposed to be in a class, like a specialized Q_OBJECT for nothing ?15:34
*** pa has joined #harmattan15:39
*** beford has joined #harmattan15:43
GonzoTheGreatdjszapi: How about using a QVariantMap instead15:54
*** aleksander_m has quit IRC15:54
*** aleksander_m has joined #harmattan15:55
djszapiGonzoTheGreat: sounds like a castrated idea ;)15:56
GonzoTheGreatisn't that qml ;)15:56
djszapiGonzoTheGreat: well, I kinda cracked this around two years ago, but I hoped for a more mature qml nowadays :)16:07
*** etrunko has joined #harmattan16:12
artemmadjszapi: I studied it lately. Nothing for non-classed enums in QtQuick 1.116:13
artemmabarely remember that it could be improved in QtQuick 2.016:13
*** Shaan7 has quit IRC16:13
artemmaor maybe it was about javascript constants only16:13
djszapiartemma: the problem is also that I need to instantiate the enum with Q_ENUMS usage. That is a bit unhandy, when you would need a status enum instantiated for only one item of the repeater.16:14
djszapifor all items of the repeater*, heh16:15
djszapiI mean in qml, it would be just one-time instantiation inside the relevant element obviously.16:15
artemmaI can certainly tell you some workaround tricks, but you know them anyway16:15
djszapiI cannot think of a simple way.16:15
artemmalike exposing a C++ model that happens to be a list of all enum values16:15
artemmaor mentioned QVariantMap for virtually the same16:16
djszapiI am leaning towards the enum created in qml.16:16
artemmaor a C++ side object with a function or two16:16
artemmaoh, if pure QL approach is fine for you - why not then :)16:16
artemmaI thought you need enum for interoperating QML <-> C++16:17
djszapinot too cool since this is something that the library should provide.16:17
djszapibut as far as I see the C++ integration with Qml wrt seems too hacky to my taste.16:17
artemmaI use specialized class for just enum in my app16:18
artemmaworks fine16:18
djszapiThe main problem as far as I see that, I would have a status for each element a repeater.16:18
djszapiso ideally, the instantiation should happen inside that element, and not on C++ side.16:18
artemmaoh, actually my specialized class uses Q_ENUMS16:18
djszapiI would only need the type defined inside the library.16:19
artemmawhat's the end goal?16:19
djszapito have buttons in a repeater with a state enum.16:19
artemmabut repeating on some other model?16:19
artemmaor one element per one possible status?16:20
djszapiGrid { Repeater { Button { .. property MyEnum myEnum: Init; ... }  } }16:20
djszapiwith pseudo code ^16:20
artemmaso element in the model have some sort of state that is expressed as enum value16:21
artemmaand you want to show different icons for different states16:21
djszapinot sure how this is related to a model.16:22
artemmaI was trying to make sure you are trying to iterate the possible enum values16:22
djszapiit would be just a property of an element in a Repeater.16:22
artemmaok, I think I've got it16:22
artemmaI had same issue, solved it with a specialized class16:22
artemmajust a few lines16:22
artemmaclass TwContactAvailability : public QObject16:23
artemma    Q_OBJECT16:23
djszapiso this would be changed willingly according to the need for each button separately. The status, that is.16:23
artemma    enum Availability {16:23
artemma        AVAILABLE = 0,16:23
artemma        MAYBE_AVAILABLE,16:23
artemmathat's it16:23
djszapithat did not work for me.16:23
djszapiI have tried to use TwContactAvailability.AVAILABLE16:23
djszapior twContactAvailability.AVAILABLE as well16:23
artemmaon top of that you need to register this class to qml16:24
artemmaqmlRegisterType<TwContactAvailability>("TwineLib", 1, 0, "TwContactAvailability");16:24
djszapiyes, that is what I did two years ago :)16:24
artemmathen in my code I just import a library and use enums16:24
artemmaas in the following16:24
artemmaimport TwineLib 1.016:24
artemmaavailability: TwContactAvailability.AVAILABLE,16:25
djszapithough, I hoped for something simpler, like a context property.16:25
djszapiUnsure why I used UncreatableType back then. :)16:25
artemmawell, you can instantiate something in c++ side and inject it as a context property16:25
djszapiLike I wrote in the comment in there, this is a bit flaky stuff :)16:26
artemmaanyway, custom class approach works for me. You mentioned you can't use Q_ENUMS. Why?16:26
*** zhxt has joined #harmattan16:26
djszapiartemma: well, ideally, I would expose an enum, maximum from a namespace.16:26
djszapiQ_ENUMS ruins that goal. :)16:27
djszapisince then I need to use a wrapper class.16:27
djszapisecondly, I do not feel cool with this register type thingy =]16:27
djszapiI would feel more comfortable with an exposed context property.16:28
artemmaI don't think there is a way for proper enums16:28
djszapiThe syntax of this register thingy is unheuristic to me :)16:28
artemmaworkarounds are certainly possible16:28
artemmayou can even create a data model for all possible statuses on c++ side16:29
artemmaand use its indexes as enum values16:29
artemmathough registering a specialized class looks more elegant to me :)16:29
djszapiI hope QtQuick2 will be user friendlier.16:30
djszapisomewhat nightmare this has not changed the last two years :)16:30
djszapiI still need to make the same ugly hack...16:31
artemmaI somehow stopped considering it a hack after I used it16:31
artemmaand managed to even find some elegance in the approach :)16:31
artemmasort of a feeling of constructing an own strict type system dynamically.16:31
djszapiI think it would be cool if I could mark an enum "invokable" similarly in complexity to a method.16:32
djszapimeaning: Q_ENUMS + Context property.16:33
artemmayeah, that would have been good16:33
djszapithis is also similar to the properties and how to use them from Qml.16:33
artemmaHmm, you might be able to achieve something like this with your own clever macros that will declare same specialized class behind the scenes..16:34
*** Shaan7 has joined #harmattan16:41
*** danielcbit has joined #harmattan16:46
*** jluisn has quit IRC16:48
befordhi djszapi16:49
*** GonzoTheGreat has quit IRC16:51
*** vladest has quit IRC17:01
*** aleksander_m has quit IRC17:01
*** aleksander_m has joined #harmattan17:02
*** Natunen has quit IRC17:02
*** artemma has quit IRC17:07
*** Shaan7 has quit IRC17:08
*** Shaan7 has joined #harmattan17:09
*** thp has quit IRC17:21
*** thp has joined #harmattan17:21
RST38hmoo thp17:22
*** zhxt has quit IRC17:22
thpRST38h: hey ho :)17:22
*** zhxt has joined #harmattan17:22
*** gabriel9 has joined #harmattan17:23
djszapiCan I have Q_PROPERTY without WRITE method, but definitely with NOTIFY signal ?17:25
*** gabriel9|work has quit IRC17:25
ZogG_laptopdjszapi: if it was up to me — you would17:26
djszapiZogG_laptop: kindness :)17:26
*** gabriel9|work has joined #harmattan17:28
*** rnovacek has quit IRC17:28
djszapiso what is the reality...17:30
thpdjszapi: yes17:30
thpdjszapi: it's a read-only property that you can still notify with the NOTIFY signal17:30
djszapiI do not have an "int foobar" member since I read the stuff from the configuration file with QSettings.17:30
djszapiso I do not change this explicitely.17:30
thpdjszapi: and property bindings (to it) and these things work great, you just can't set it (not sure if you get an error)17:30
djszapithe reader method basically reads the configuration file17:30
djszapiand counts how many elements are in there.17:30
djszapiand I have a addNewStuff method which adds a new item to the configuration file, and emits the signal.17:31
djszapithp: I do not set this.17:31
thpyes, then it will work :)17:31
thpQ_PROPERTY(int cool READ getCool NOTIFY coolChanged)17:31
djszapithp: here is my code, but something goes utterly wrong:
djszapiso I do not need to have "cool" member variable, right ?17:32
*** gabriel9 has quit IRC17:32
thpdjszapi: nope17:32
thpit will only be read via the READ method17:32
thpi.e. the getCool above should be a public: int getCool() { return mycoolvariable; }17:32
djszapierr... I do not have such a stuff...17:33
thpoh, and to be qt-ish, the read method should be named like the property17:33
djszapilike I said, no real variable, really.17:33
djszapiI fire up the config file for reading with QSettings, and I return how many items are in there.17:33
*** aleksander_m has quit IRC17:33
thpyes, you don't need to store it in a member variable17:34
*** aleksander_m has joined #harmattan17:34
thp(though for performance reasons you might, depending on how often you read that property)17:34
djszapithp: well reading a really short config file is not much of a time.17:35
djszapithp: in any case, I do not see the signal emitted in your example...17:35
thpyes, sure - you need to emit it from some code that "knows" when the config file changes17:35
thpif you emit it, and you have something bound to that property in qml, the cool() method will be called again to get the new value17:36
djszapiyes, the one which adds a new item.17:36
djszapiI do not know where the problem lies in my code then. :/17:36
djszapilays* :)17:36
thpdjszapi: does it just crash or something?17:37
thp(and I think it's "lies")17:38
djszapiI think, lays down is fine17:39
djszapibut this is clearly not what I am after really.17:39
thpdjszapi: you could put some qDebug() output into the READ method to see when and if it is called17:39
djszapiI think better to debug this in qml to be honest.17:39
*** lamikr has quit IRC17:40
*** rcg1 has quit IRC17:40
djszapithp: setStuff really decrease the counter in this code:
djszapiso I wonder why buttons are not recolorized and re-subtexted accordingly :o17:43
thpdjszapi: you have to emit the signal17:43
thpthat you specified with NOTIFY17:44
thpotherwise there's no way for QML to know that the property changed17:44
thpthe configurationManager would have a foobarCount property that has a NOTIFY signal there and that signal needs to be emitted for the property to be re-read17:45
djszapiI do emit like I said in the beginning17:45
thpdoes the READ method for the foobarCount property get called?17:45
thpand what does it return?17:45
djszapi17:31 < djszapi> and I have a addNewStuff method which adds a new item to the configuration file, and emits the signal.17:45
*** rcg1 has joined #harmattan17:45
thpdjszapi: but you are not calling addNewStuff from QML, so I can't know that setStuff calls it (indirectly?)17:46
MohammadAGyou have to have a method called getFooBar17:46
MohammadAGso I'd suggest storing the data in a variable17:46
djszapithp: addNewStuff is exactly called by setStuff.17:46
MohammadAGand there's a getStuff method?17:46
thpdjszapi: so why not add some debugging output to the READ method?17:46
djszapiI already did.17:47
thpdjszapi: if you can/want, please paste the C++ code also - that might help17:47
djszapierr.. sorry, that is not going to work..17:47
*** aleksander_m has quit IRC17:47
*** aleksander_m has joined #harmattan17:49
thpdjszapi: then read up on how properties work on the C++ side here:
djszapiI have known that for years really :)17:50
*** vladest has joined #harmattan17:50
thpsure. but apparently it doesn't work. and i forgot my magic 8 ball today, so can't guess what your code does wrong17:51
djszapiyou do not need to be cynical t o help17:51
djszapinobody said, you should have "your magic 8 ball today".17:51
*** b0unc3 has quit IRC17:52
*** cityLights has quit IRC17:52
thp;) anyway, have you found the cause of the problem? i'd still be interested to know17:52
rcg1could be interesting for you in that context17:53
djszapiI am not a superman to find every issues in two minutes, sorry.17:53
thprcg1: looks good. but i'd only emit the changed signal when the value really changed17:53
*** b0unc3 has joined #harmattan17:54
thp(i.e. in the set method: if (myA != a) { myA = a; emit aChanged(); })17:54
rcg1thp: hehe, yeah.. well it's intended as minimal working example that shows the mechanism on interacting between qml and c++17:55
rcg1yeah, i know.. however the aim was not to provide a full-fledged property getter setter example ;)17:55
djszapibeford: how are you ?17:56
thpit's great as it is :)17:56
rcg1thp: thx :)17:56
*** Venemo_N950 has joined #harmattan17:56
rcg1thp: also comments are in fact highly appreciated :)17:57
thprcg1: you mean as a comment in the blog entry or via mail?17:57
rcg1however you like17:58
rcg1comment entries are not shown directly.. i have to manually approve them17:58
*** Venemo_N950 has quit IRC17:59
rcg1i think comment should be better as then everyone can benefit18:00
thpargh! now i wrote a nice comment and it wants me to login to wordpress :/18:00
rcg1that shouldn't happen :(18:01
rcg1thp: did you use an email address that was already registered at wp?18:03
rcg1just tried it.. with my email address used at wp it wants me to log in.. with a different one it doesnt18:04
thprcg1: yep. i've tried to login now, but not sure if the form data was submitted18:05
rcg1i'll check18:05
djszapithp: for some for some reason, after the notification signal emit, the read method is executed zillion times.18:05
rcg1however, i noticed that wp is sometimes pretty slow wrt showing new messages18:06
thpthen you have a binding loop somewhere18:06
*** gabriel9|work has quit IRC18:06
djszapiin fact, it is executed many times periodically, apparently not like a flood permanently, just periodically... I presume I need to look for stuff where it is read in a loop...18:06
thpdjszapi: btw, why do you use the "lastIndex" array as parameter to setStuff?18:07
thpdo you plan to set more values there later on?18:07
djszapithp: because setStuff expects string18:07
djszapiin fact, QStringList.18:07
djszapibut that is not the point here.18:08
thphmm. curious. because in the other line, you call it with "index + 1"18:08
thp(line 36 + line 78 in
djszapi for (var i = 0; i < configurationManager.receiverCount; ++i) { -> this runs in a second timer, so that explains it.18:09
djszapithp: yes of course since the settings is human readable.18:10
djszapiaka. not starting from zero18:10
*** javispedro has joined #harmattan18:10
thpbut didn't you say that fooBar.setStuff expects a QStringList? index+1 evaluates to a single (numeric, but that would be auto-converted to string anyway) value18:11
djszapiQString != QStringList18:11
djszapibut, no, it does not autoconvert.18:11
djszapiOtherwise I would not obviously use that :)18:12
thpdjszapi: so then one of the calls is wrong - line 36 if you say it expects a QStringList18:13
rcg1thp: thanks for the comment.. i also wrote a short reply as i wasn't yet aware of QDeclarativeProperty::read and ::write as mentioned in the guide you linked18:13
djszapiwell, they are different methods in the reality.18:13
thpdjszapi: ok. i should probably stop trying to be helpful here :)18:14
rcg1thp: however i am currently very busy with other stuff so updating this example unfortunately doesn't have top priority.. nonetheless, thanks for the very useful comment. :) and if people are really interested they can follow the link and see on their own in the meantime18:15
djszapithp: I wonder how you got that conclusion...18:15
djszapiit really seems to be a better option to bind a C++ property to a qml instead of reading the C++ property all the time.18:18
djszapior perhaps actually not.18:19
*** zhxt has quit IRC18:20
*** rcg1 has quit IRC18:28
*** lamikr has joined #harmattan18:36
*** hardaker has joined #harmattan18:43
*** bef0rd has joined #harmattan19:05
*** beford has quit IRC19:06
*** lamikr has quit IRC19:13
djszapiany qml guru here ? :-)19:19
*** elldekaa has quit IRC19:21
*** jaywink has joined #harmattan19:23
*** lamikr has joined #harmattan19:27
*** rcg1 has joined #harmattan19:33
*** jreznik has quit IRC19:39
*** piggz has joined #harmattan19:41
*** gabriel9 has joined #harmattan19:44
trxdjszapi nope, but you can ask anyway19:44
*** jluisn has joined #harmattan19:45
*** piggz has quit IRC19:46
*** Natunen has joined #harmattan19:51
*** tom____ has joined #harmattan19:53
*** hardaker has quit IRC20:01
*** befr0d has joined #harmattan20:06
*** javispedro has quit IRC20:11
*** piggz has joined #harmattan20:19
*** tom____ has quit IRC20:19
djszapitrx: how do you know "nope" for everybody ? :)20:21
djszapiand I already asked...20:21
MohammadAGif there was anybody they'd say that :p20:23
gabriel9for those who does not hate google :P20:24
gabriel9and godo evening20:24
*** NIN101 has quit IRC20:25
trxdjszapi can you copy the question?20:25
djszapitrx: I would replicate the log.20:26
trxis this it : "Can I have Q_PROPERTY without WRITE method, but definitely with NOTIFY signal ?" ?20:27
djszapiwe sorted that out20:27
trxso whats the problem then, the repeater isnt updating or what?20:29
*** Enforcer has quit IRC20:33
*** astm has joined #harmattan20:34
hahlogabriel9: what is that map?20:36
*** aparaatti has joined #harmattan20:36
djszapitrx: one base problem is that, I do not understand why these are not equivalent:
gabriel9N9 users20:36
gabriel9across the globe :)20:36
gabriel9i say also20:37
trxdjszapi because of the elseif's20:37
trxthe code is not the same20:37
*** piggz has quit IRC20:38
djszapiwhy not ?20:38
djszapithe last could be else for sure, but I think they represent the same logic.20:39
djszapijust an explicite function is way more readable.20:39
trxthis would be the same20:40
trxbut both should work anyway20:40
djszapisorry ?20:40
djszapiit is exactly the same with different personal taste...20:40
trxas i said, both should work in this context20:41
djszapithat is the thing, they do not.20:42
trxwhich one works?20:42
djszapiand I am just wondering why20:42
gabriel9if i may add the bottom syntax is better20:43
gabriel9not long and 2 lines of code20:43
*** xmlich02 has quit IRC20:43
gabriel9oh one :D20:43
hahlogabriel9: how they have found those phones in the map?20:43
gabriel9you add yourself20:44
gabriel9just click edit on the left and then add20:44
djszapigabriel9: and that is exactly the reason why that is ugly.20:44
hahloah so there must be many others20:44
djszapithat tries to be smart unnecessarily.20:44
gabriel9The Good Coder book(nice read) sugest always smaller lines of code20:44
gabriel9it is more readable, and smaller chance to make a mistake20:44
djszapihuh ?20:44
djszapihuh ?20:44
djszapiafaik, almost every programming book begins with do NOT be tricky.20:45
djszapiunless there is a very compelling reason.20:45
gabriel9i agree, and i use normal if else only if the line os long20:45
trxas long as it workes, no one cares, its not that big a diffrence20:45
*** lmoura has joined #harmattan20:45
djszapitrx: clearly you never contributed to other projects like Qt, KDE, etc20:46
gabriel9one dude sayed the syntax is not important20:46
trxand if it were a real language, the second case would be better20:46
djszapithose projects are definitely against tricky code20:46
trxbecause it is inline20:46
hahlodoes manufacturer know exact amount of phones and where they are? about updating etc20:46
djszapitrx: you do not know what you are talking about :D20:46
djszapiyou essentially say you are smarter than gcc, msvc and other compilers...20:47
gabriel9hahlo: i don't know20:47
gabriel9either way we shall write text documents :/20:47
gabriel9sometimes short syntax is OK20:48
gabriel9sometimes it is not20:48
trxdjszapi whatever, your setColor function doesnt have a return value..20:48
djszapireadability makes a big difference.20:48
gabriel9for php when you mix it with html shorts sytax is far better20:48
gabriel9i agree also, but there is situations where shorter is more readable20:49
djszapitrx: yes20:49
gabriel9i lost link for this subject :(20:49
gabriel9but there is more important thing then syntax20:50
gabriel9code optimization, concurency20:50
gabriel9i'm relativly new too all this but i have 1 year of expiriance :)20:50
*** xmlich02 has joined #harmattan20:55
*** tom____ has joined #harmattan21:16
*** swerige has quit IRC21:18
*** achilles999 has joined #harmattan21:19
achilles999i'm having problem in deploying ssh keys to N9 device via Qt creator21:20
achilles999I get connection failed :(21:20
*** snowpong_ has joined #harmattan21:20
achilles999can someone please help??21:20
gabriel9usb or wlan?21:21
bef0rdwhat fails21:21
gabriel9did you set up IP adresses?21:21
*** b0unc3 has quit IRC21:21
bef0rdcan you ping the ip from terminal?21:21
bef0rdn9's ip21:21
*** swerige has joined #harmattan21:21
achilles999i'm on windows21:21
achilles999let me try to ping & see21:22
*** snowpong has quit IRC21:22
*** bef0rd has quit IRC21:23
*** djszapi has left #harmattan21:24
befr0dcan you ssh to the phone with the ip?21:26
befr0dfirst thing is to find out if the usb network connection is set21:26
gabriel9just use Wifi if you can, it is much easier21:26
befr0dnot sure how is in windows, I suppose a new network device will appear21:26
gabriel9achilles999, check in setting of the phone password21:27
gabriel9and then set up Qt Creator21:27
gabriel9befr0d: he should use GNU/Linux21:27
*** b0unc3 has joined #harmattan21:28
*** achilles999 has quit IRC21:28
*** achilles999 has joined #harmattan21:29
achilles999sorry, my connection dropped21:29
achilles999i'm not able to ping my device21:29
befr0d<befr0d> can you ssh to the phone with the ip?21:29
befr0d<befr0d> first thing is to find out if the usb network connection is set21:29
befr0d<gabriel9> just use Wifi if you can, it is much easier21:29
befr0d<befr0d> not sure how is in windows, I suppose a new network device will appear21:29
befr0d<gabriel9> achilles999, check in setting of the phone password21:29
achilles999i disabled firewall & tried21:30
gabriel9check settings21:30
gabriel9of the phone21:30
gabriel9did you install dev packages???21:30
achilles999what settings on the phone? settings on sdk tool?21:30
achilles999yes, I enabled dev mode21:30
*** snowpong_ has quit IRC21:30
gabriel9what do you have under sdk cnnection?21:31
achilles999in past I connected my device on windows, but a different machine(work PC) i'm trying to connect on home PC21:31
*** NIN101 has joined #harmattan21:32
gabriel9sometimes reset of the phone helps21:32
gabriel9and double check pass and ip settings21:32
gabriel9in Qt creator and N921:32
gabriel9i had some issues also, but now i am back on Arch and all is nice21:33
achilles999let me try over wifi21:35
achilles999thanks for your time21:35
gabriel9np :)21:36
gabriel9so anyone wish to give me N950? :D21:36
*** adlan has joined #harmattan21:39
*** Morpog has joined #harmattan21:40
gabriel9something is wrong, i am to happy21:41
gabriel9my gf is at her parents21:45
gabriel9but i like her21:45
befr0dthat's good21:46
befr0dno drugs involved21:46
*** Enforcer has joined #harmattan21:46
gabriel9for me drugs are code, my PC and SF movies21:47
*** aleksander_m has quit IRC21:47
gabriel9Sciance Fiction21:47
gabriel9can you debug QML?21:48
gabriel9on N9?21:48
befr0dfrom qml21:48
befr0dwith qtcreator I believe so, not sure if you can put them on QML/Js code21:49
befr0dbut on the Qt side if things I have21:49
befr0dof things*21:50
gabriel9js code needs debuging also21:50
gabriel9and QML items(states)21:50
*** rcg1 has quit IRC21:50
befr0dnever tried it so not sure21:50
gabriel9i tried it couple of times but no hope21:51
gabriel9still does not work21:52
*** aparaatti has quit IRC21:53
gabriel9QDeclarativeDebugServer: Ignoring "-qmljsdebugger=port:10000,block". Debugging has not been enabled.21:53
gabriel9i give up :/ well i go and code my XML/HTTP pareser21:54
*** M4rtinK has joined #harmattan21:55
befr0dxml ?21:57
befr0dqml already parses xml21:57
befr0dfrom http21:57
*** tom____ has quit IRC21:57
gabriel9i have some bad XML to parse21:58
gabriel9it have huge chunk of data in CDATA part21:59
gabriel9and i need that part to parse21:59
MohammadAGdoes anyone know where the brightness icons in settings are?22:03
gabriel9sorry i did not go that deap22:05
MorpogMohammedAG when your at it, add switches for BT and DLNA on/off there too ;-)22:07
gabriel9BT off/on would be nice :)22:07
jonnigabriel9: you need to build the debugging helpers first if you want to debug qml,  but enabling console.log can even be done more easily22:08
gabriel9I build some stuff, also console.log is OK, but sometimes i wish to break on some point and then inspect all stuff22:08
gabriel9thanks for hint22:09
jonniqml inspector is pretty handy tool22:10
gabriel9and i see there is JS console22:10
gabriel9that is real power!!!22:10
gabriel9for JS part BTW22:11
MohammadAGMorpog, heh22:12
Morpogin the starus bar menu22:13
Morpogwhich you are modding atm ;-)22:13
*** hardaker has joined #harmattan22:18
*** piggz has joined #harmattan22:20
*** xnt14 has quit IRC22:31
*** MohammadAG has quit IRC22:31
*** e-yes has joined #harmattan22:34
*** achilles999 has quit IRC22:35
*** achilles999 has joined #harmattan22:43
*** xmlich02 has quit IRC22:56
*** achilles999 has quit IRC23:00
*** etrunko has quit IRC23:00
*** lmoura has quit IRC23:04
*** achilles999 has joined #harmattan23:07
*** MohammadAG has joined #harmattan23:09
*** MohammadAG has joined #harmattan23:10
*** NIN101 has quit IRC23:10
MohammadAGcc Morpog ^23:10
MohammadAGhave fun :p23:10
MohammadAGtoggles should be easy, it's a normal MTF MWidget23:11
Morpogseen already ;) Just need to redo inception.23:11
thpMohammadAG: good move :)23:13
thpso, why does the alarms applet not appear in the stock sysuid? did they blacklist it or something?23:13
achilles999i'm learning QML & experimenting on N9. can anyone suggest some simple open source N9 app which is written in QML?23:13
achilles999I like to see how it is written & improve my understanding23:13
thpachilles999: you could try (shamless plug warning) gpodder - (it uses python and not c++, which might be good or might be bad depending on how you see it ;)23:14
MohammadAGthp, they have a hardcoded regex :p23:15
mankeliMohammadAG: ooh, very nice. would it possible to add scrolling to the status menu while the phone is in landscape mode?23:15
befr0dthere is a harmattan showcase api, it may be alittle advanced example, however it includes a lot of funciontality23:15
mankelisince that menu will problably get a lot of extensions in future23:16
MohammadAGmankeli, it already scrolls as of the latest PR from Nokia23:16
MohammadAGat least on the N95023:17
mankeliprobably only on n95023:17
mankelipr1.2 here, and no scrolling. but landscape isn't normally available either23:17
MohammadAGthe N9 has a newer firmware23:17
MohammadAGand the source clearly has a viewport23:18
mankelidoes it btw open full screen on n950?23:18
mankelior does it only cover the left side of screen23:18
MohammadAGsame as in portrait23:18
MohammadAGthp, the regex has alarms...23:19
*** b0unc3 has quit IRC23:19
MohammadAGok, I'm stumped, lemme check again23:19
mankelihmm. probably installing that unrestricted system-ui will fix behavior to n950-like23:20
*** b0unc3 has joined #harmattan23:21
mankeliis it possible to get old system-ui back if unrestricted package doesn't work?23:21
MohammadAGprobably, haven't tested23:21
*** Mohammad- has joined #harmattan23:21
MohammadAGhmm, bouncer back23:21
*** MohammadAG has quit IRC23:21
*** Mohammad- is now known as MohammadAG23:21
*** MohammadAG has quit IRC23:22
*** MohammadAG has joined #harmattan23:22
*** xnt14 has joined #harmattan23:22
*** jaywink has quit IRC23:26
MohammadAGthp, how do I create a new repo under harmattan?23:28
*** arcean has joined #harmattan23:29
MohammadAGoh nvm, figured it out23:32
*** aquarius has quit IRC23:35
thpMohammadAG: ;) thanks!23:35
ZogG_laptopMohammadAG: did i tell you — you are the man23:35
MohammadAGZogG_laptop, lots of credit goes to itsnotabigtruck for Inception really ;)23:36
MohammadAGthp, you're welcome :)23:37
*** hardaker has quit IRC23:38
*** rZr is now known as RzR23:49

Generated by 2.15.1 by Marius Gedminas - find it at!