HNHacker News
TopNewBestAskShowJobs

fiznool

86 karma · joined September 25, 2011

Software Engineer from Bristol, UK.

tomspencer.dev meet.hn/city/gb-Bristol

submissionscomments
fiznool··on Apple Introduces AirTag
Just wanted to say thank you for posting this. I have three small children and had no idea of the dangers these batteries pose. We seem to be changing button batteries every couple of weeks or so, they are in a number of sound books and toys we have around the house. I will be sure to take extra care with them after reading that article. It’s every parent’s worst nightmare.
fiznool··on Ask HN: Does anyone else find the AWS Lambda developer experience frustrating?
If you are ok using a ‘higher level’ serverless provider, vercel offers first class support for running and debugging serverless functions locally, in an environment which closely mirrors their production environment (which I believe is mostly AWS under the hood).

See the following for more information:

https://vercel.com/docs/serverless-functions/introduction#lo...

I tried a few solutions earlier in the year for a side project (vercel, netlify functions, Cloudflare workers, begin) and found vercel to be the outstanding choice for developer experience, features (wildcard DNS for example is fully supported on their free plan) and support.

fiznool··on Ask HN: Best Source for Desktop Backgrounds
As mentioned by others, the daily wallpapers supplied by bing are very nice. They aren’t 4k, but the 1080p images still look good on my 4k monitors.

There are a number of scripts out there which download the ‘picture of the day’ and store it locally. You can then set your computer to scroll through these images every so often. Here’s the one I use: https://github.com/thejandroman/bing-wallpaper

fiznool··on You made app for Android, iOS, Windows - what about the UI?
Not sure I agree with the prediction:

> My prediction is that Xamarin will come up with its own GUI abstraction framework in future, along the lines of SWT. It is a compromise; but one which delivers a lot of value to developers who want to create cross-platform apps with the maximum amount of shared code.

This will almost certainly create the 'uncanny valley' which the author refers to in an earlier paragraph.

I consider the fact that Xamarin has two APIs for the two platform UIs a real advantage. You can still write your business logic once - so the time to create an iOS and Android app reduces from 2 to 1.x, and you still get the benefit of a fully native feeling app.

fiznool··on IOS browsers have a 300ms click delay - But developers can bypass it
Yep, saw that, just wondering if there are any insights into why it won't work for WP7.5, in case it is a work in progress or a complete no-hope.
fiznool··on IOS browsers have a 300ms click delay - But developers can bypass it
Great library, going to give it a shot in one of my upcoming projects.

Quick question - I just tried the demo on IE on a Nokia Lumia 710 running WP 7.5 Mango, and there was no difference between A and B. Do you have any idea why FastClick might not work on Mango?

fiznool··on Show HN: I love Essential Mixes. So I made this.
Brilliant site. One suggestion - can you add a 'Random' or 'Shuffle' button?
fiznool··on Why I switched to Spine.js
You forgot:

4. Framework / Library size. I'm turned off by many JS MV* Libraries due to their larger size. Backbone is very small and lightweight - perfect for mobile web apps.

fiznool··on First draft of HTML img srcset for responsive images
An alternative, completely server-side implementation: http://adaptive-images.com/

It takes the approach of setting a cookie when the page first loads with the viewport size, determined through media queries. Every request to the server then includes this cookie.

When an img is requested (as an <img> tag or through CSS background-image) the cookie is read to determine the viewport size of the client. The PHP script then serves up the most appropriate image size to the client.

The only thing you really need to do is add the .htaccess rule (to intercept image requests and route them through the PHP script), the php script itself and the highest resolution you need for each image. The script takes care of scaling down the image for smaller screens, caching them for later use.

I like the way this requires nothing on the client side, other than a cookie being set. All the heavy lifting is done on the server.

fiznool··on Show HN: Find days out near you in the UK
Awesome project. One of those things I can see will be really useful.

One suggestion: make it responsive. The design lends itself well to mobilising: shrink the map view, put the columns into tabs, etc. This would be an even better resource for using when you are out and about, especially as it could use the HTML5 geolocation API to work out where you are and what is close by.

Great work!

fiznool··on How to build fast HTML5 mobile apps using backbone.js, zepto.js and trigger.io
I've been musing the same thing for a little while now. I think Zepto, Backbone, RequireJS and HTML5 Mobile Boilerplate makes a solid foundation for a mobile app framework, much more lightweight than jQuery Mobile, which is IMO unusable for anything but the simplest of apps. All that is missing is a CSS library to take care of the UI elements and perhaps transitions too.

One idea I had was to take the CSS from Sencha /KendoUI / jQTouch and combine with the components above to create a 'Backbone Mobile' framework. I just haven't had the time yet to figure out if this would work.

fiznool··on Why I Don't Do Unpaid Overtime and Neither Should You
Whilst I agree with the general principle of not working yourself to death (nobody ever says on their death bed, 'I wish I'd spent more time in the office'), I think the author of this piece is missing something crucial.

I regularly work more than 40 hours a week, not because I have to, but because I want to learn. One day I'd like to go freelance or perhaps start up a business, but I need to skill up first. I'm lucky that I have a job in my chosen sector of mobile web development, something which pays me to learn about the technologies I am passionate about. I am seizing the opportunity to learn as much as possible so I can be in a position to just work when I want to in later life.

IMO the author is looking at this from an experienced point of view. Juniors and those starting out often have no choice but to work a little longer to get where they want to be in 20 years time. There's nothing wrong with that, surely?

fiznool··on Open Web Device
I would also like to find out how this is planned. Ideally a Chrome-style auto-update would be great. The bane of mobile web application development is dealing with the lowest common denominator - developing for multiple Android versions is especially painful. Anything to prevent fragmentation will be a good thing, as we all know carriers won't bother updating very often, unless they have a good reason to do so!
fiznool··on EasyXDM – crossdomain javascript done right
Good idea. I tried them on Twitter but they seem a bit busy to respond right now :) Will see if I can get through to them.
fiznool··on EasyXDM – crossdomain javascript done right
I recently had a problem with a cross domain AJAX call to a third party web service which requires a JSESSIONID cookie to be present in each request for session management.

On the face of it, CORS supports this by setting withCredentials: true on the XHR object being sent over the wire. But as I was building a PhoneGap app, the files were being loaded using the file:// protocol, which has the side-effect of setting the Origin header to null whenever you make an AJAX call. According to the CORS spec, when using withCredentials, you must set the response header Access-Control-Allow-Origin on the server to something _other_ than the wildcard *. In this case, it would need to be my Origin. But since my Origin was null, I was stuffed, and I don't think that what I was trying to do, could be done.

Do you think EasyXDM might help here?

(The scenario is explained in more detail on Stack Overflow: http://stackoverflow.com/questions/9103876/cors-cookie-crede... )

fiznool··on Backbone 0.9.0 released
I was in a similar position to you a little while back. I found the annotated source of the TODO app on DocumentCloud a good start. I then found it was worth spending the money on Recipes with Backbone by Nick Gauthier & Chris Strom.

http://documentcloud.github.com/backbone/examples/todos/inde... http://documentcloud.github.com/backbone/docs/todos.html http://recipeswithbackbone.com/

That being said, I've always found the best way to learn, is to do. Come up with an idea for an app and build it using Backbone, with the help from the resources above. You'll learn a lot.

fiznool··on JQuery Mobile 1.0.1 Released
What you are experiencing might be down to the browser waiting for a double tap when you tap on links and buttons. Google produced an article on implementing fast buttons which describes this phenomenon: http://code.google.com/mobile/articles/fast_buttons.html

From the article:

' ... mobile browsers will wait approximately 300ms from the time that you tap the button to fire the click event. The reason for this is that the browser is waiting to see if you are actually performing a double tap. For most buttons we are developing we know that there is no double click behavior that we want to handle, so waiting this long to start acting on the click is time wasted for users. '

The article goes on to discuss how to mitigate against this problem. jQuery Mobile's solution is to use virtual events to listen for touch events rather than mouse clicks. Try listening for vmouseup instead of vclick, this could solve the issue. See http://jquerymobile.com/demos/1.0.1/docs/pages/page-scriptin... for more details.

fiznool··on Amit Gupta has found a 10/10 matched donor
It's stories like this that make you realise what's really important. It's so easy to get sucked into a life of computers and tech but heartwarming stories like yours, Amit, are what keeps us all human. I wish you the best for the forthcoming weeks, months and years, and I really look forward to hearing your progress on your blog, once you have recovered.
fiznool··on Introducing the Backbone.js Boilerplate
This looks fantastic, especially with the integration with HTML5BP. Awesome work!

Just wondering if you considered using RequireJS instead of namespacing? Backbone plays quite nicely with RequireJS if you use James Burke's version which has been forked to be compatible: https://github.com/jrburke/backbone/blob/optamd/backbone.js

More info here: http://jcreamerlive.com/2011/12/09/backbonejs-modular-app-us...

fiznool··on Desingineer – the mythical person every startup is looking for
Big-headed?
fiznool··on 63% Prefer a Dark Themed Text Editor
Totally the opposite for me. In the dark days of coding on Windows, I used to invert the entire screen's gamma ramp just to have white text on dark background. I found that switching back to black on white caused my eyes to squint due to the excessive brightness.

I've often wondered why computers in general still persist with black text on a white background. I'm convinced in 50 years time there will be legions of people with eye problems that could have been avoided by just inverting colours on active displays.

For this reason I only like ePubs too as you can invert the colours easily when reading on a tablet.

fiznool··on HTTP Cats
Amen to that. People need to seriously lighten up. My favourite: http://httpcats.herokuapp.com/426
fiznool··on Poll: HN readers, where's your residence?
It would be interesting to see a split of 'London, UK' and 'Rest of UK' as I reckon there will be a big percentage of UK HN readers in London. Coming from Bristol myself, it would be good to see what the split is outside of London. There is a focus right now on TechCity in London, but I believe there are lots of great things going on elsewhere in the UK. Specifically, Bristol and Bath (OK I might be a little biased there...)
fiznool··on Don't use MongoDB
And in the process of discrediting, you might have turned many people away from MongoDB. You actions seem irresponsible to me. Unbeknownst to you at the time of posting, I'm sure, but your blog has gone somewhat viral, and it could take 10gen a while to recover from the negative press. Did you consider this when posting?

Kudos to Eliot for coming on and answering your phony accusations. I feel sorry for him though as he has obviously spent a great deal of time in responding, when he could have been doing other important things, like fixing urgent bugs. As others have pointed out, this is the mark of a company who take very good care of their customers. Customer service is what differentiates chiefs from cowboys.

HN is an important community resource, especially for people with little startup / dev experience. I would urge you to think next time before being so irresponsible.

fiznool··on The Lean Startup is a NYTimes Best Seller.
Totally agree. I'm based in the UK and I'm looking forward to putting his methods into practice over this side of the pond.
← PreviousPage 2 of 2