gdonald

1

votes
3

answer
990

views

how to run apk remotely

Anyone know how to run an Android APK inside a webpage? I need my sales guys to be able to demo our Android app for potential clients without the trouble of being onsite or asking them to install the app on their phone. Ideally I'd like to be able to send a URL with the APK running in a webpage. M...
gdonald
1

votes
1

answer
2.2k

views

How to use Google Oauth2 access_token?

I'm building a SSO setup for a web app. I can login known users and create new unknown users via https://www.googleapis.com/oauth2/v1/userinfo. I get back a response like this: { 'access_token':'1/fFAGcxxxxxxxxxxxxxxxxxxx', 'expires_in':3920, 'token_type':'Bearer', 'refresh_token':'1/xEoDL4iW3cxlI7...
gdonald
3

votes
4

answer
2.6k

views

Android auth_token validation and usage server-side

How can I validate the auth_token returned from token = bundle.getString(AccountManager.KEY_AUTHTOKEN); ? After I get the new user on Android I need to insert them into my database server side, but I need to validate that token somehow before I do. I am trying to use the token like this: url = 'http...
gdonald
8

votes
8

answer
9.7k

views

Where to revoke Google API permissions granted on Android?

I'm working with some sample code here: http://code.google.com/p/google-api-java-client/source/browse/picasa-android-sample/src/main/java/com/google/api/services/samples/picasa/android/PicasaSample.java?repo=samples I authorized access in my Android app, but I cannot find where to now revoke access,...
gdonald
8

votes
1

answer
2.7k

views

pgpool2 load balancing not working

I have a Python/Django app that will require database load balancing at some point in the near future. In the meantime I'm trying to learn to implement pgpool on a local virtual machine setup. I have 4 Ubuntu 12.04 VMs: 192.168.1.80
gdonald
8

votes
3

answer
16.8k

views

how to call context menu

I open my context menu like this: private OnClickListener optionsClickListener = new OnClickListener() { public void onClick( View v ) { registerForContextMenu( v ); openContextMenu( v ); } }; How can I call registerForContextMenu( v ); openContextMenu( v ); from inside my regular menu handler here:...
gdonald
3

votes
4

answer
2.3k

views

sorl thumbnail + django issues in production

I'm using sorl thumbnail with Django. On my local setup it works fine, but in production the thumbnails are not made. My code looks like this: {% load thumbnail %} {% thumbnail up.image '32x32' crop='center' as im %} {% empty %} {% endthumbnail %} I enabled logging and the trace looks like this: Tr...
gdonald
4

votes
2

answer
830

views

rcov + Rails3 rc now broken from linecache dependency

I hit a wall today with rcov + Rails3. I am developing my Rails3 app using Ruby 1.9.2-preview3. rcov and relevance-rcov do not work with Ruby 1.9.2 yet. I can't find any fork of rcov that does yet either. It wasn't that big of a deal since I could easily switch over to Ruby 1.8.7 using rvm --defa...
gdonald