Profile

Cover photo
Stuart Langridge
Works at Kryogenix Consulting
Lives in Birmingham, United Kingdom
5,058 followers|1,559,552 views
AboutPostsPhotosYouTubeReviews

Stream

Stuart Langridge

Shared publicly  - 
 
blimey, Cyanogen shutting down services and builds by the end of the year. 8 days notice. http://www.ubergizmo.com/2016/12/cyanogen-services-shutting-down/
After a lot of talk about wanting to take Android away from Google, it seems rather ironic that Cyanogen will be the first one to go. In an...
3
Enos666's profile photoSimos Xenitellis's profile photoRodney Dawes's profile photoMichael Sackett's profile photo
10 comments
 
They fought the good fight for a long time, sad to see them go.
Add a comment...

Stuart Langridge

Shared publicly  - 
12
2
Michał Prędotka's profile photocm-t arudy's profile photoPierre Equoy's profile photo
3 comments
 
As we say in French: « Excellent ! »
Add a comment...

Stuart Langridge

Shared publicly  - 
 
Is it just not possible to get antialiased/hinted fonts on the xscreensaver unlock dialog? (If not, and the reason is to avoid adding xft support because the dialog is security-critical, then OK, understood.)
2
1
James Henstridge's profile photoStuart Langridge's profile photo
10 comments
 
I've found a bunch of people who've posted .Xresources files which do it. I have seen no evidence that it actually works, and I've also seen a bunch of people posting .Xresources files with lines like that in them but those lines are commented out, which I do not understand either.

(Also: this is solely about hinting. I can have any font I want show up in the xlsfonts list, and work in the dialog, but the text isn't antialiased which means it looks rubbish.)
Add a comment...

Stuart Langridge

Shared publicly  - 
 
 
#Amazon #Prime is on sale in the US and the UK. The first episode of, what all right thinking people are calling, The New Top Gear is out today. The Amazon Echo and Dot will likely be on offer next Friday. So it seems like a good time to get Amazon Prime then.

So I did.

And here's what I think after 24 hours.

Anti-Clickbait: In my opinion, you're getting what you pay for.

Preamble. As a analytically minded person, is it worth getting Amazon Prime? I signed up yesterday and spent the evening setting up the various services. It was on offer with £20 off, it was the day before The Grand Tour came out, and I recently bought an Amazon Dot – well played Amazon, ...
1 comment on original post
2
Mark Fraser's profile photoMichael Mahemoff's profile photo
2 comments
 
"constant nags to spend money on the basis that all the good stuff is just out of reach"

I don't think it nags. Most of Amazon's services are designed to be "good enough" and bundled into Prime for free. The core delivery service - and Amazon's amazing customer service in general - could be considered Apple-level premium, the rest is budget by design and, yes, would require paying to enjoy the full thing.

Having said that, I really don't see Amazon nagging to pay for anything. Closest I've seen is Prime Video mixing all-you-can-eat content with paid content, but I actually consider that a good thing. I would be more than happy if Netflix let me pay for HBO TV series that are otherwise off-limits on their app. (Main issue here is if you add something to your playlist, then it expires as a free video, it remains in the list and it's not indicated until you try to open it to play it. I think that's more of a design oversight tbh.)

Also, since launching the premium music service, I did once get Alexa telling me I can upgrade to play something I had requested. That was the only mention so far though.
Add a comment...

Stuart Langridge

Shared publicly  - 
 
OnePlus and customer service

Turns out OnePlus are bloody excellent at customer service. Who knew, eh?


4
Tarus BALOG's profile photoJoe Borg's profile photoJono Bacon's profile photostealth banana's profile photo
5 comments
 
I had the same thing happen with my Moto X. However, they wanted me to ship it at my own expense for them to "look at" and when I asked for a time this could take, was told about 4 weeks. Anyway, happy owner of a oneplus 3 now.
Add a comment...

Stuart Langridge

Shared publicly  - 
 
Wow, +Jono Bacon​ got to hang out with Lordi! I am so envious, after they won Eurovision. Rock on Jono! I support you from the pinnacle to the pit.
 
Well, this happened last week. :-)
1 comment on original post
7
Mathieu Comandon's profile photoMatt Dobson's profile photoPeter Cannon's profile photoJono Bacon's profile photo
5 comments
 
Haha :-)
Add a comment...

Stuart Langridge

Shared publicly  - 
 
Bryan's last show! Our mostly epic failure to predict the future! The last show of series 1 before series 2 starts in the new year! Much else besides!
 
For those that haven't heard yet: After just a hair over 3 years of recording Bad Voltage with +Stuart Langridge, +Jeremy Garcia, & +Jono Bacon... I have recorded my final episode of the podcast.

It's been an absolute blast making this show. My co-hosts are kick-ass guys and I love 'em.

Near the end of this episode we talk about the change -- why I'm departing the show, what's in store for Bad Voltage in the new year... worth a listen. All good stuff. Very, very good stuff.
16 comments on original post
5
Kiera Linus's profile photo
 
MMmm not bad - hope it doesn't become another LAS, I mean Noah is the pits.
Add a comment...

Stuart Langridge

Shared publicly  - 
 
Little maths-ish puzzle for you.

You've got two sequences of numbers, and you're trying to establish whether they are "roughly the same". So, sequence 1 might be [150, 320, 90, 560] and sequence 2 is [146, 328, 98, 572] and those do count as "roughly the same"; the each number in the sequence is pretty close to its counterpart in the other sequence.

However. We need two people to be able to establish whether their sequences are "roughly the same" without actually revealing their numbers to one another. (The numbers are not themselves secret.) So we need to generate a "hash" or "signature" of a set of numbers where two sets which are "roughly the same" generate the same signature, and therefore we know that both have the same set of numbers.

It's easy to think up a trivial way to do this. Imagine that we define "roughly the same" as "each number is no more than 20 away from its counterpart"; the "hash" is then "round each number to the nearest lowest 20", so sequence 1 generates the hash [140, 320, 80, 560] and sequence 2 generates [140, 320, 80, 560]; they're the same, so the sets of numbers matched, hooray. But there are boundary condition problems here; imagine if instead of 328 in set 2 there were 318? Then that would have rounded down to 300 not 320, and the hashes wouldn't match. This might be solved by "round to the nearest 20", but then two numbers 309 and 311 won't match (309 rounds down to 300, 311 rounds up to 320) despite being only 2 apart.

How does one calculate a hash in this situation which doesn't have these boundary problems?
2
Gordon Syme's profile photoMichael Hall's profile photoKenneth Gibbs's profile photoe male's profile photo
5 comments
e male
+
1
2
1
 
My thoughts went also towards the idea of +Michael Hall.
However, you don't have to know the numbers of your counterpart if you compare sets calculated on both sides.
In your example this would look like:
[(140-160), (310-330), (80-100), (550-570)] and
[(136-156), (318-338), (88-108), (562-582)].
All you would need to do is check whether there is an intersection for each of the sets.
Add a comment...

Stuart Langridge

Shared publicly  - 
 
Mini-hack: how do you stop xscreensaver from kicking in, if you're watching youtube videos? Well, how I do it is this:

"crontab -e" in a terminal to edit your personal cron file, and add this line (it's all one line) to it:

*/2 * * * * XDG_RUNTIME_DIR=/run/user/1000 bash /home/aquarius/bin/xscreensaver-chrome-suppress.sh

then create /home/aquarius/bin/xscreensaver-chrome-suppress.sh (obviously, change the path to put this somewhere you want it to go), and put this in it:

#!/bin/bash
if pacmd list-sink-inputs | egrep 'application.name = "(Chrome|Chromium)"'; then
xscreensaver-command -deactivate
fi

and you're done. I imagine that this can be generalised to work with Firefox or other browsers as well. It's obviously a bit sus, because it will also suppress the screensaver if you're just playing audio in a browser tab, but I'm fine with that.
5
James Henstridge's profile photoJakub Steiner's profile photoStuart Langridge's profile photo
16 comments
 
+Jakub Steiner what have I done wrong now? :) (Having to do this certainly was annoying, which may be the source of your complaint)
Add a comment...

Stuart Langridge

Shared publicly  - 
 
Hey, looks like +Maria Langridge, my mum, liked this post about .Xresources! I didn't realise she was on Google Plus. Everyone say hello to my mum! She's always on the lookout for games on Android, so do you have recommendations for things like Candy Crush, followers?
 
Is it just not possible to get antialiased/hinted fonts on the xscreensaver unlock dialog? (If not, and the reason is to avoid adding xft support because the dialog is security-critical, then OK, understood.)
10 comments on original post
4
David Morley's profile photo
 
My wife likes best fiends, gardenscapes 2, toy blast and something about witches kitchen or something like that
Add a comment...

Stuart Langridge

Shared publicly  - 
 
One to terrify +Adrian Bradshaw...
 
From the dept of Devop Horrorshow 🙈
1 comment on original post
11
2
Adrian Bradshaw's profile photoLinux Lady05 Winter's profile photoHenrik Danielsson's profile photo
3 comments
 
They should have randomly cross-connected all ports instead hehe
Add a comment...

Stuart Langridge

Shared publicly  - 
 
wow, there is literally no documentation for how to use gi.repository.DBus to create a service in Python. I can't find anything; it's all using the old "import dbus" static bindings. Is it even possible?
1
Stuart Langridge's profile photoAlberto Ruiz's profile photo
7 comments
 
if they were deprecated, nobody ever replaced those with anything more pythonic...
Add a comment...
Work
Occupation
Digital consultancy, web strategy, and apps
Employment
  • Kryogenix Consulting
    Owner, 2013 - present
  • Canonical Ltd.
    2009 - 2013
Basic Information
Gender
Male
Other names
sil
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Birmingham, United Kingdom
Links
Other profiles
Contributor to
A small and well-put-together bar. Friendly, and they care about both their beer and their customers. Fun place to hang out; not too loud, and welcoming.
Public - 3 weeks ago
reviewed 3 weeks ago
Nice bar. Empty on a Monday but that's quite nice. Bottled beer only but a good selection of Veltins.
Public - a month ago
reviewed a month ago
Bar is attractive looking but short on draught beer.
Public - 3 months ago
reviewed 3 months ago
Good beers; a modern, stripped wood feel. Quite trendy.
Public - 5 months ago
reviewed 5 months ago
10 reviews
Map
Map
Map
Fairly standard Wetherspoons pub. The bouncers once refused us readmittance for no reason, which isn't encouraging. Also the toilets are miles away underground. Cheap and OK food, though, as with all Spoons places.
Public - 3 months ago
reviewed 3 months ago
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 - 2 years ago
reviewed 2 years ago