Better HN
topnewbestaskshowjobs
Log inSign up

jsingleton

3,046 karma · joined Apr 8, 2013 (13y ago) · 1,188 submissions

Author of ASP.NET Core 2 High Performance (Packt Publishing): unop.uk/book

I'm a developer, engineer, hacker and entrepreneur. My personal blog is at: unop.uk

[ my public key: https://keybase.io/jps; my proof: https://keybase.io/jps/sigs/O8UP6-fFcMSV4qZW8VA39-Z_NiV8JtLjKAk6cOH1O7A ]

Submissions

comment 11y ago · link · parent

That's also the old Pi [0]. The new ones look a bit different [1,2]. :)

[0] https://www.raspberrypi.org/products/model-b/

[1] https://www.raspberrypi.org/products/model-b-plus/

[2] https://www.raspberrypi.org/products/raspberry-pi-2-model-b/

comment 11y ago · link · parent

It's not just Android. Google is a massive Java shop and a lot of their stuff is written in it. They have plenty of Java expertise in all areas.

It's also the main language taught at universities, which helps with hiring. I've heard that Google's public use of Python is more for PR. If you want to change this then the way is to change what educators are teaching.

Java is probably one of the reasons why they acquired Android. Possibly even one of the reasons Android is written in Java.

I once knew a senior Java architect who turned down a job at Google. This was back in the "who needs another Yahoo!" days. Needless to say they regretted that decision.

comment 11y ago · link · parent

I didn't expect this to get so much attention or I'd have written some context. I came across this while researching solutions to the old thumbnails problem. It doesn't look like it took off or is maintained but I thought it was interesting.

Image resizing is a hard problem. At a place I used to work at we wrote a custom distributed image thumbnail generation system for user supplied images. It was pretty complex and used a database and pub/sub message queueing to propagate changes from a SAN file system. The main issue was that the underlying image libraries weren't suited to running on a web server. It leaked memory like mad. This resulted in layers of sophisticated monitoring and automatic restart systems being built on top.

It shouldn't have to be this hard. If a progressive format like JPEG2000 or WebP takes off then browsers can just download enough data to fill whatever pixels they need to fill.

I have a lot of other thoughts on this but they can wait for a blog post. If anyone is interested?

874.

Resize.ly – Images resized, responsive, and retina ready(resize.ly ↗)

50 points · by jsingleton · 11y ago · 50 comments

comment 11y ago · link · parent

Looks good, thanks. I'm on Windows but it should be pretty easy to port to batch or PowerShell. I've used 7z command line before for automation.

The script makes an 8GB file by default but it should be possible to change that. Add a parameter for the size of the card or even auto-detect it.

I've documented the process and written up my thoughts on IoT core here: https://unop.uk/dev/windows-10-iot-core-public-release-for-r...

comment 11y ago · link · parent

I've written up the process here: https://unop.uk/dev/windows-10-iot-core-public-release-for-r...

I'd host the file but I imagine it will go out of date pretty quickly as MS change the original.

877.

Windows 10 IoT Core Public Release for Raspberry Pi 2 – Install and Impressions(unop.uk ↗)

1 points · by jsingleton · 11y ago · discuss

878.

How to Watch BBC News Videos on a Desktop Without Flash in Safari(unop.uk ↗)

2 points · by jsingleton · 11y ago · discuss

comment 11y ago · link · parent

You're correct about Mono being complex. It was easier to install than IoT core though. Including installing the OS first. Having a package manager like apt is a revelation coming from a Windows and Mac world.

I previously tried Mono on the Pi and it had lots of bugs related to the processor architecture. Problems with the hard float support stopped things like Datetime from working properly.

This was a while ago so I imagine it's been fixed in a recent build. It shouldn't be a problem on the newer architecture of the Pi 2 either.

I think it's better to bite the bullet and just learn Linux and Python. You can then add those skills to your CV along with Windows and C#.

comment 11y ago · link · parent

I completely get that but when the app you pushed to it requires interaction with a button then a mouse is more than just a nice to have.

comment 11y ago · link · parent

I tried the technical preview of IoT core and was underwhelmed. The mouse didn't even work! It jumped around erratically making it unusable.

My experience with Linux on the Pi is that it just works out of the box. Simple things that you need to install a driver for on Windows are plug and play on Linux [0].

I installed the desktop Windows 10 preview just to flash the SD card. Although I read in the Mag Pi [1] that there is a Python script [2] to convert the image to a normal format.

I'm a big fan of C# and I'm a professional .NET developer. It's my go to stack. Yet, I believe that the best way to use a Raspberry Pi is with Python on Linux.

[0] https://unop.uk/dev/raspberry-pi-electricity-monitor

[1] https://www.raspberrypi.org/magpi/issues/34/

[2] https://github.com/t0x0/random

comment 11y ago · link · parent

You can use this python script to convert the image to standard raw format: https://github.com/t0x0/random

Then flash it with your normal tool such as dd or Win32DiskImager.

883.

All the Unofficial Electronic Badges of DEF CON(hackaday.com ↗)

6 points · by jsingleton · 11y ago · discuss

comment 11y ago · link · parent

I wonder if this will mean that all the extension version numbers will stop ending in -signed. I'm used to having any build number with -label in its name denote it's a pre-release and isn't stable [0].

I was recently searching for user agent switcher add-ons as part of a blog post [1] and almost all have -signed in the name. To some people it could look like the un-signed ones are more stable and better.

[0] http://semver.org

[1] https://unop.uk/dev/how-to-watch-bbc-news-videos-on-a-deskto...

comment 11y ago · link · parent

I don't use many extensions but I'm finding I have to use more as Mozilla remove features from Firefox.

For example you can no longer set the User Agent string on a per site basis natively in Firefox preferences [0]. This would be very handy to force HTML5 video on BBC News when you don't want to install flash [1]. I only discovered this setting was deprecated by finding that bug report whilst researching the blog post.

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=933959

[1] https://unop.uk/dev/how-to-watch-bbc-news-videos-on-a-deskto...

886.

How to Watch BBC News Videos on a Desktop Without Flash in Firefox(unop.uk ↗)

2 points · by jsingleton · 11y ago · discuss

887.

Britain's Nuclear Secrets: Inside Sellafield(bbc.co.uk ↗)

1 points · by jsingleton · 11y ago · discuss

888.

Making the Grade (Separation): The Bermondsey Diveunder(londonreconnections.com ↗)

7 points · by jsingleton · 11y ago · discuss

889.

Detailled London transport map(carto.metro.free.fr ↗)

2 points · by jsingleton · 11y ago · discuss

890.

BBC Four Goes Slow(bbc.co.uk ↗)

3 points · by jsingleton · 11y ago · discuss

comment 11y ago · link · parent

London Overground doesn't have toilets on train. Better this than just dumping it straight onto the track like a lot of the existing stock still does. A vacuum system would be better but then they have to empty them. Less space to fit people in too.

comment 11y ago · link · parent

Nice article. I thought they missed a trick by not putting a Crossrail station at London City Airport. See how it goes in 3 years when it opens.

comment 11y ago · link · parent

OWASP is good especially the top 10:

https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Proje...

Troy Hunt has some good advice on his blog and a site for checking for issues:

http://www.troyhunt.com/

https://asafaweb.com/

comment 11y ago · link · parent

  You've heard about slow food. Now here's slow ... TV? 
  In this very funny talk, Norwegian television producer 
  Thomas Hellum shares how he and his team began to 
  broadcast long, boring events, often live — and found a
  rapt audience. Shows include a 7-hour train journey, an 
  18-hour fishing expedition and a 5.5-day ferry voyage 
  along the coast of Norway. The results are both beautiful 
  and fascinating. Really.
The BBC recently did some slow TV on BBC Four [0,1] and it reminded me of this TED talk I saw a while ago.

[0] http://www.bbc.co.uk/iplayer/episode/b05t7kc1/all-aboard-the...

[1] http://www.bbc.co.uk/programmes/b05t7kc1

895.

The world's most boring television and why it's hilariously addictive(ted.com ↗)

1 points · by jsingleton · 11y ago · 1 comment

comment 11y ago · link · parent

  A two-hour, real-time canal boat journey down one of
  Britain's most historic waterways, the Kennet and Avon 
  Canal, from Top Lock in Bath to the Dundas Aqueduct. 
  Using an uninterrupted single shot, the film is a rich 
  and absorbing antidote to the frenetic pace and white
  noise of modern life.

  Taking in the images and sounds of the British countryside,
  underpinned by the natural soundscape of water lapping, 
  surrounding birdsong and the noise of the chugging engine, 
  this is a chance to spot wildlife and glimpse life on the 
  towpath while being lulled by the comforting rhythm of a 
  bygone era.

  Along the journey, graphics and archive stills embedded 
  into the passing landscape deliver salient facts about 
  the canal and its social history.
There is a good TED talk about the origins of slow TV in Norway:

http://www.ted.com/talks/thomas_hellum_the_world_s_most_bori...

897.

All Aboard! The Canal Trip(bbc.co.uk ↗)

1 points · by jsingleton · 11y ago · 1 comment

898.

How to Watch BBC News Videos on a Desktop Without Flash(unop.uk ↗)

2 points · by jsingleton · 11y ago · discuss

comment 11y ago · link · parent

The probe that took this photo is the Deep Space Climate Observatory (DSCOVR) and it "was the first time a SpaceX rocket launched an object into deep space".

http://spaceprob.es/dscovr/

comment 11y ago · link · parent

L1 in particular is perfect for measuring the solar wind and Coronal Mass Ejections as an early warning system [0]. DSCOVR (the probe that took this photo) is the successor to ACE which is used to predict Auroras amongst other things [1]. This data is released by NOAA as a forecast [2]. I built an Aurora simulator with a similar API [3], but I think that mainly uses magnetometers.

[0] https://en.wikipedia.org/wiki/Lagrangian_point#Spacecraft_at...

[1] http://www.nesdis.noaa.gov/DSCOVR

[2] http://www.swpc.noaa.gov/products/aurora-30-minute-forecast

[3] https://unop.uk/dev/led-strip-aurora-alerts

1
293031
40