These are chat archives for abranson/rockpool

3rd
Feb 2017
Andrew Branson
@abranson
Feb 03 2017 20:32
ah that sucks
still, there are much better things on the horizon ;)
finally got a working PTS. it's a lovely thing...
ruff
@rufferson
Feb 03 2017 20:49
yea, i even bought titanium bracelet for mine as a token of my satisfaction with the piece :)
Andrew Branson
@abranson
Feb 03 2017 21:23
the strap it comes with is pretty nice
good price too - about 4120
€120
so what's going on with this weather underground stuff then, does it work?
never had the built-in weather with the old pebble classic, now I see it!
ruff
@rufferson
Feb 03 2017 21:24
yes, it does
Andrew Branson
@abranson
Feb 03 2017 21:24
but I need an extra header file with an api key in?
ruff
@rufferson
Feb 03 2017 21:24
ehm... no, that's for nuance
for WU just enter it in config
mark Alternative Provider and enter key
or if you want i can drop you builtin TWC key
Andrew Branson
@abranson
Feb 03 2017 21:26
hmm the daemon crashed
oh yeah that would be better!
ruff
@rufferson
Feb 03 2017 21:26
you can set it via dbus
daemon crash is fixed in the trunk, probably not in release
Andrew Branson
@abranson
Feb 03 2017 21:27
i'll update. i should probably do a release soon, there was that old bugfix, and i've cleaned up that pascalstring PR
he should have done it in the actual writePascalString function
he had half of a better implementation there
ruff
@rufferson
Feb 03 2017 21:28
yes, I've noticed our pascal is a bit lightweight but didn't dare to touch it since it works
bcz it's not ours after all
Andrew Branson
@abranson
Feb 03 2017 21:28
it's a good idea to limit it to 254 chars as he'd tried to do
but 0xEF isn't 254
ruff
@rufferson
Feb 03 2017 21:30
I didn't touch the trunk for 3d month already, still being a bit in despair for all the stuff
but finaly i've recovered my old xmpp code :D to have own messaging server
Andrew Branson
@abranson
Feb 03 2017 21:31
and he should also chop it after he converts to utf8...
cool!
i really want to add some owncloud to sailfish if I get chance. the news app should fill the sailfish event feed...
ruff
@rufferson
Feb 03 2017 21:32
chopping after encoding may lead to corrupted chars
Andrew Branson
@abranson
Feb 03 2017 21:32
but before might leave it too long
ruff
@rufferson
Feb 03 2017 21:32
yes, so chop and trim
or adaptive chpping (in the loop, while len()>254)
Andrew Branson
@abranson
Feb 03 2017 21:33
ooh where's that?
is there a trim that'll take off incomplete utf chars?
ruff
@rufferson
Feb 03 2017 21:34
ehm I'm not sure if it's in qt, but certainly i remember using it somewhere
Andrew Branson
@abranson
Feb 03 2017 21:35
i bet there is. it's not a rare thing to want to do
though the chances of having a 255 byte string are pretty slim. though if you do then it's likely going to be full of big unicode chars
a contact name full of emoticons might get there
maybe a 14 year old
ruff
@rufferson
Feb 03 2017 21:36
yes, that's where I've first faced with it - in timeline pins. was testing in ascii and then received cyrrilic message all blank
so if it goes utf - it usually goes big
Andrew Branson
@abranson
Feb 03 2017 21:38
oh, did you fix it there already?
ruff
@rufferson
Feb 03 2017 21:42
well I just truncate it by attr.max with no additional handling of incomplete chars, but from time to time I'm getting it corrupted
Andrew Branson
@abranson
Feb 03 2017 21:42
which string write function does that use?
ruff
@rufferson
Feb 03 2017 21:43
it uses internal packing of the timelineItem structure
Andrew Branson
@abranson
Feb 03 2017 21:43
looks like writeFixedString
ah ok
Andrew Branson
@abranson
Feb 03 2017 22:25
oh yes i like that. chop it to the requested length, then while the bytearray is too long, chop it one shorter
did you say you'd fixed the weather crash in your trunk? can't see it...
ruff
@rufferson
Feb 03 2017 22:27
you've picked that PR
it's in 3d124b2d6f935de0caca7e7c20df35b27438f6ec
just not released i think
Andrew Branson
@abranson
Feb 03 2017 22:28
yeah i thought so, I must be running release on this instead of trunk. I was sure I'd built it.
ah different phone. my original C got a bit smashed. i must have installed it from openrepos.
ruff
@rufferson
Feb 03 2017 22:29
gee, fell down?
Andrew Branson
@abranson
Feb 03 2017 22:35
fell out of my pocket as I was getting in the car, got crushed in the car door as it was closing. Now S shaped. Still works ;)
ruff
@rufferson
Feb 03 2017 22:36
wow, can use as SailfishServer :)