Adam S

Waterloo, Canada

speakman.net.nz

Age: 27

Android Developer from New Zealand, recently moved to Waterloo in Ontario.

You can find me on Twitter at @adamsnz or Google+.

Apr
22
comment ReactiveX (Rx) - Detecting Long Press Events
It appears that RxPy is the only implementation with takeWithTime, and the ReactiveX site doesn't have any docs on it yet.
Apr
21
revised How to use appendFormat to format a string in Swift?
added 5 characters in body
Apr
21
comment How to use appendFormat to format a string in Swift?
This works well too, added an example using this method to my answer. It's much more obvious as well (where as the cstring conversion will need a comment to explain what's going on).
Apr
21
revised How to use appendFormat to format a string in Swift?
added 238 characters in body
Apr
21
revised How to use appendFormat to format a string in Swift?
edited title
Apr
21
answered How to use appendFormat to format a string in Swift?
Apr
21
accepted CoreData NSFetchRequest with 'count' expression property is returning a NSManagedObjectID instead of an integer count
Apr
21
comment How to use appendFormat to format a string in Swift?
I can reproduce this in a Playground, the random characters change every time the code is run. Using str += String(format:"%-12s", "Hello"), and variants.
Apr
21
comment How to use appendFormat to format a string in Swift?
This will simply append 12 spaces to the end of the string, rather than padding the string up to a minimum of 12 characters.
Apr
20
revised Type mismatch on subscription with RxJava
Updated the title for future searchers to refer to the actual issue
Apr
19
answered How to zip 2 observables with different length in RxJava
Apr
18
awarded Constituent
Apr
18
answered Picasso Only Loading 5 Images until re-using ones in cache
Apr
18
revised Add space to the end of the recycerview
added 376 characters in body
Apr
18
answered Add space to the end of the recycerview
Apr
16
comment Manage identical requests with RxJava
Re-reading the question again, it's tough to say - this will work if you build the observable for the image and then keep a reference to that (as in your example), knowing you'll always have the same URL. If the URL changes, then your Observable changes, and this falls apart - you have to cache references to Observables for different URLs, each of which are caching images themselves... Eek.
Apr
16
comment Manage identical requests with RxJava
Okay, I guess we're looking at the problem differently. This works if you already have an Observable that you know supplies the image for the URL (on subscription). If, however, you just know that you need to get an image for a URL (and you want to abstract the fetching and caching of that image), Rx is probably not a good solution for that - especially on Android.
Apr
16
comment Manage identical requests with RxJava
This won't filter out requests in progress - if your second request for an image comes in before the first one has returned. In fact, it won't stop the request being run multiple times at all - this solution assumes that the url->cache mapping is done elsewhere.
Apr
16
accepted Any way to resize text on the back of Windows Phone 8 Live Tiles?
Apr
16
revised Any way to resize text on the back of Windows Phone 8 Live Tiles?
added 86 characters in body
1 2 3 4 5