Cover photo
Stuart Langridge
Works at Kryogenix Consulting
4,154 followers|732,243 views


Well, that's rubbish. My Nexus 4, in Android Chrome, when faced with <input type="file" accept="image/*" capture>, gives me the option of taking a photo (with the camera) but not of picking an existing photo from the gallery! If I remove the capture attribute then I still can't choose from the Gallery. Who knows about this stuff? +Paul Kinlan?
Jan Moren's profile photoStuart Langridge's profile photoPaul Kinlan's profile photoJames Henstridge's profile photo
+Jan Moren Firefox for Android offers me more options for choosing a thing to upload; I am not sure if it's just offering everything and ignoring accept=image/*, but I can confirm that one of the things it offers is the Gallery, which is good. Chrome doesn't :(
Add a comment...

Stuart Langridge

Shared publicly  - 
Ubuntu 14.04 question: has the Sync Menu gone away? Its main consumer was Ubuntu One, of course, but it was designed as a generic menu, and I'd like to integrate syncthing into it rather than writing a separate indicator. However, I can't find any API details for it -- in the source there's an example using C, but I'd prefer not to use C to write the indicator, and to do that I need to know what the Sync Menu's D-Bus API looks like, if anyone knows? (Charles Kerr, who doesn't seem to be on G+? +Ted Gould?)
Dimitri John Ledkov's profile photoRodney Dawes's profile photoStuart Langridge's profile photoTed Gould's profile photo
+Ted Gould Sure, but that's a very different explanation from "it only worked with U1." :)
Add a comment...

Stuart Langridge

Shared publicly  - 
Jono's doing a survey -- it will be interesting to see your thoughts. Go fill it in. :)
Listen to Bad Voltage? Please go and fill in our listener survey at - thanks! #badvoltage
Chloe Johnson's profile photoStuart Langridge's profile photo
after contributing, I have the strange desire to listen to some old bad voltage episodes again xD
Add a comment...
Took me a couple of minutes to spot what's weird about this graph. You go to Maths Hell for this sort of thing, you horrible gun apologist, you.
Sean Kinney's profile photoSamson Lai's profile photoEduardo de Vera's profile photoVivian Tse's profile photo
I was so WTF, I created the statistic how it should have been done:
Add a comment...
Have him in circles
4,154 people
+Steven Vaughan-Nichols a couple of comments on your "Hands on with Ubuntu 14.04: The best Ubuntu desktop ever" article (which I have to say I enjoyed; these are minor quibbles).

First, "if you use an older PC you could get as much as 13 years of use out of it before you'd need to buy a new PC—just try that with Windows." Windows XP was released in 2001 and went out of support less than two weeks ago. That is, in fact, thirteen years. Microsoft may do things wrong, and I am in general no fan of their business, but castigating them over one of the things they actually do well is not really cricket.

Finally, you suggest to people that they can disable scopes they don't like, which is a good idea, but then give them a command line to do it. Why not explain how to disable a scope from within the Dash itself? Not only does providing command-line fixes for this sort of thing perpetuate the myth that using Ubuntu requires mad terminal skills, but more importantly it's not generalisable: how do I disable a recipe scope using your technique? Even I don't know the internal scope names for everything (I know how to find them out, but you don't explain that). If the advice showed how to disable scopes in the Dash, then it would not only be useful for people to turn off other things they don't want, but it would also help encourage people to customise their Dash the way they want, rather than just to see this as a way of turning off a few specific things. Teach a man to fish, right?

John Lenton's profile photoStuart Langridge's profile photoNathan Haines's profile photoJames Henstridge's profile photo
+Rodney Dawes: we never got around to renaming those packages (and it's an open question whether they ever will be: it isn't clear there is much code in the unity-lens-* packages that can carry over to Unity8).
Add a comment...
Recommendations for something to monitor and restart a daemon, run as the user (not root), on Ubuntu 12.04 (so not upstart user sessions)? Is monit any good? Are there better alternatives? I can put @reboot in crontab (and will) but how do I restart it if it dies?

Update how I did it: add a line to crontab:

*/1 * * * * wget -q http://localhost:8180 || STNORESTART=yes /path/to/syncthing

This is for syncthing, a BTSync replacement. I pass STNORESTART=yes so that when it needs to restart it just stops and then the cron job can restart it. And I monitor it by fetching its web UI's URL.

On my actual desktop computer, which is running 13.10 (and soon 14.04), I did it with upstart:

$ cat ~/.config/upstart/syncthing.conf
start on desktop-start
stop on desktop-end
exec /path/to/syncthing
Stuart Langridge's profile photoJohn Lenton's profile photoStuart Bishop's profile photoDustin Kirkland's profile photo
Add a comment...

Stuart Langridge

Shared publicly  - 
The US Postal Service basically doesn't seem to understand the concept of international delivery. Failed to deliver to here, and I can't fill in or schedule a redelivery because to do that I have to fill in a redelivery form which has a compulsory State dropdown list. Gnah.

Also, the automated help phone number is hell.
1. Smooth poll-tested automated voice says chirpily "hi! Just say what you want."
2. I say: you did not deliver my parcel.
3. Smooth voice: "I didn't understand that. You can say things like: 'track a package', 'order supplies', or 'zip codes'."
4. me: look baffled. I have to pick from a list, but you won't tell me what the list is?? OK, let's try again. "Failed delivery."
5. go to 3.

Second attempt:
1. Smooth poll-tested automated voice says chirpily "hi! Just say what you want."
2. I say: customer support.
3. Smooth voice: "I can route (pronounced 'rout') your call, but there are high call volumes. Are you sure?"
4. me: yes. yes I am.
5. "I didn't understand that. Are you sure?"
6. (sigh) "yes".
7. "Before I route your call, I need to know what you're calling about."
8. Go to 1.

This is like playing a 1970s text game.
Rodney Dawes's profile photoJohn Lenton's profile photoStuart Langridge's profile photoRonald McCollam's profile photo
Add a comment...

Stuart Langridge

Shared publicly  - 
Excellent writeup from about porting the Haskell compiler to arm and ppc. I laughed at the magnet line. I'm glad that someone understands this stuff :)
Stephen Kellat's profile photoElliot Murphy's profile photo
Add a comment...

Stuart Langridge

Shared publicly  - 
Android question: you want to display a short piece of text on screen, as big as possible, then a touch or swipe changes to a second piece of text, also as big as possible. How?
Chad MILLER's profile photoStuart Langridge's profile photoBen Thorp's profile photoJames Henstridge's profile photo
If you write the app yourself all you have to do is to set the with and height of the TextView to MATCH_PARENT and create a OnClickListener on it like: myTextView.setOnclickListener(new OnClickListener()) to switch to the next text you want to display.
Add a comment...
Have acquired a very crap Android 2.2 tablet. Resistive touchscreen, battery life a few hours. Suggestions, lazy g+ for interesting uses I can put it to.

("Haha a doorstop! Lol!" is not a helpful thought, and I've already thought it.)
Stuart Langridge's profile photoBen Thorp's profile photoSeth Arnold's profile photoJames Henstridge's profile photo
The sensor SW I mentioned from Nomovok can be found here:
Add a comment...
Have him in circles
4,154 people
Basic Information
Other names
Digital consultancy, web strategy, and apps
  • Kryogenix Consulting
    Owner, 2013 - present
  • Canonical Ltd.
    2009 - 2013
Other profiles
Contributor to
Slick professional-looking place near the Bullring. They did a great job cutting my hair; used the cut-throat razor for really close sideburns and edges; a quick wash and dry; and only £12. Recommended.
Public - a week ago
reviewed a week ago
Excellent restaurant. Just up from a street full of places to eat; this is higher-end than most, and worth it. I recommend the poitrine de cochon confite unreservedly. Friendly waiters, good wine, a good menu.
Public - 8 months ago
reviewed 8 months ago
Professionally done by a barber who cares about detail.
Public - 2 years ago
reviewed 2 years ago
4 reviews
Best pizza place in Stourbridge: well made, swiftly delivered, and enjoyable to eat.
Public - 11 months ago
reviewed 11 months ago