HNHacker News
TopNewBestAskShowJobs

chrisfarms

1,029 karma · joined May 6, 2010

Web Developer, Brighton UK
submissionscomments
chrisfarms··on A Case for Upserts
I'd still argue that at least you are aware there may be an issue with your code. So at least if something comes up (duplicates, exceptions during high load upserts) you'll know where to look.
chrisfarms··on A Case for Upserts
This does not solve the fundamental problem of an upsert.

This rule allows the possibility of raising an exception on INSERT if two Pages with the same Url are "upserted" in parallel.

You would still require a table level lock to ensure you don't get an exception within the statement as a whole.

Also: Rules are easy to get wrong. Try not to reach for them unless absolutely necessary.

chrisfarms··on A Case for Upserts

  > If Postgres would implement a shitty and 
  > inefficient version of an upsert statement at 
  > the very worst it could be as bad as the current 
  > implementation that people write on their own
Wow. please don't do that.

Many people do not understand why an upsert is a hard problem and would blindly use any solution presented without understanding it's limitations. At least with the current situation if a developer finds themselves in need of an upsert they are forced to seek out a solution and in the process understand why it's tricky.

chrisfarms··on Angular JS Kinda Sucks
That may be true if your site is an article repository (blog, news etc) where the primary purpose is consuming text. If I'm on your site to read, then I certainly don't want to be "interacting" with the page.

But the browser is the new OS, complex applications are written for the web as a platform/runtime and this is not a bad thing. This is where Angular can help. It's not built to help you show/hide a few dom elements, it there to give you a powerful structure for developing web applications.

chrisfarms··on A keyboard that rises up from flat touch screens
I'm going to guess that the "pump" is probably piezoelectric? ...but however the pressure is created I suspect it will have a significant effect on battery life while the keyboard is active, which is going to make adoption difficult. I'd always take charge over bumpy keys.
chrisfarms··on Transitioning the web to Namecoin by addressing name-squatters
I think you just reinvented the "hosts" file there.
chrisfarms··on Freakishly realistic telemarketing robots are denying they're robots
She sounds so sad at the accusation, like she's failed at the game.

I'm interested in what triggers the "laugh" response, it doesn't just appear to be a random "I don't understand", I wonder if it's picking up on the inflexion in the caller's voice and trying to mimic their tone/mood.

chrisfarms··on DataStickies: USB drives as sticky notes
Ok so ignoring the fact that this relies on magic...

I think there is something to using physical locations to keep references to files. I can remember the shelf that I stored a notebook and the rough location in the notebook of a sketch for a project from 2005. I can't say the same about my filesystems even with the help of "cloud" services of more recent years.

Our brains are definitely wired to get clues from lots of context, and just sitting at a similarly layed out UI doesn't take advantage of that.

So drop the crazy magic... add rfid tags to the stickys ... replace the optical(??) strip thing with an rfid reader that just maps the stickies to my cloud files, and that might be relatively useful.... pretty sure rfids aren't quite disposable yet though.

chrisfarms··on Google Shopping: Upload Your Content Without Watermarks or Be Banned
Not sure why this gaining traction?. The rule seems fair, and someone broke the rule? Am I missing something.
chrisfarms··on Lightpack – Ambient backlight for your displays
Some Sony TV's have this ... I like the effect during films, but I don't know why I like it... intuitively it feel like it should reduce the apparent contrast of the picture, but it instead feels like I'm watching a larger screen or that there's more going on in my environment.

I'm going to hypothesise something to do with how brains process our peripheral vision.

Anyway, not sure how much fun it would be to to run it on a monitor that has vim/consoles 90% of the time... maybe it would encourage me to tab certain syntax highlighted code to the far edges of the screen and go wild :)

chrisfarms··on Show HN: MightyName.com – Search over 4.7M available English .com domains
idea for a realllllly naive ranking metric...

Take the words for the domain, so "airport smell" for airportsmell.com (yes that was one of the random domains heh). Then do a search on Google for the phrase, and fetch the number of results as a 'score'.

I'd be interested to see if this can pluck out "better" names from the pile.

chrisfarms··on Compute Engine Load Balancing hits 1 million requests per second
Single IP != Single Machine.

There can be multiple paths that all end with the same address.

http://en.wikipedia.org/wiki/Anycast

chrisfarms··on Sheerwind
> The unit is about 50% shorter than traditional wind towers

This is the same thing people say about VAWTs... but they don't build HAWTs really tall just for fun, the wind speed is faster and more consistent up there. So all they are really saying is "the one we built isn't very big"

I think the biggest benefit to this design is that it looks like it could be dirt cheap to make and maintain since it appears to have very few moving parts exposed to the elements.

chrisfarms··on Internetopia - the supersized Internet drawing
It's a smaller, cheaper, offline version of the milliondollarhomepage[1]

[1] http://www.milliondollarhomepage.com/

chrisfarms··on Show HN: My first iOS game, Hungry Henri
Agreed. I did grasp it... but I gave it more mental processor time since it came from HN than I ordinarily would have. If I had just stumbled across it, I may not have bothered to work out what was going on in the vid.
chrisfarms··on Sudden Progress on Prime Number Problem Has Mathematicians Buzzing
> There are a lot of chances in your career, but the important thing is to keep thinking

I hope this quote gets picked up and cited throughout future history

chrisfarms··on Announcing App.net Broadcast
> A good Broadcast Channel will send at most 1-2 Broadcasts per day

What about the bad channels. I'd love it if that 1-2 broadcasts was a hard limitation. I would be more inclined to subscribe to something I know was forced to pick the most interesting thing they had to say or at least to summarise.

chrisfarms··on Zurb Foundation 5 Released
Let's just try some searches for some common names using github code search with a ".js" extension filter

hideImage vs hide_image: 424 vs 50

toggleItem vs toggle_item: 1022 vs 52

clickElement vs click_element: 3469 vs 368

Coding conventions by statistics :)

https://github.com/search?q=searchPage+extension%3Ajs&type=C...

chrisfarms··on Ask HN: How do you back up your data?
btsync [1] seems pretty promising so far. I've been syncing a NAS drive at home with my a disk at the office and a small linode instance.

Shame it's not open source as there have been a few things I'd like to tweak (like quieten down the UDP noise a bit), but it's a pretty good backup solution IMO.

[1] http://www.bittorrent.com/sync

chrisfarms··on Moving forward on improving HTTP's security
The encryption of the transport and the verification of the identity of the server should be more disconnected.

The CA part is only to verify that the machine you are talking to is who it says it is.... in reality all this really verifies is that they filled out a form and there is probably a money trial somewhere leading to a real entity.

But I've never understood why the identity is so tied to the transport security. It would make everyone's life easier if HTTPS could be used WITHOUT identity verification (for 90% of cases this would make the world a better place)

We'd still want to purchase third-party identify verification... and browsers would still present this in the same way ("green padlocks" etc)... but even without verification every connection could be encrypted uniquely, and it would raise the bar considerably for a great number of sniffing-based issues would it not?

EDIT: I guess what I'm saying is a social issue: We've put so much effort into telling everyone that "HTTPS is totally secure", that we've left no room for a system that is "Mostly secure, unless someone has compromised the remote system/network" .... maybe it's too late to teach everyone the difference between "encrypting a letter" and "verifiying that the person you give the letter to is who they say they are"

chrisfarms··on Hstore development for 9.4 release
yes. See the operators at:

http://www.postgresql.org/docs/9.3/static/functions-json.htm...

chrisfarms··on Google Checkout Closing Down on Nov. 20th
To be fair, that does require your device has a compass-sensor.
chrisfarms··on Docker + Red Hat OpenShift = The Tipping Point for Open PaaS?
Are all Docker images going to be required to conform to the Cartridge API, or is this another layer of standardness aimed at PaaS systems?

I have to say the Cartridge API does look quite good. Has anyone had any experience with it to share?

chrisfarms··on AngularJS is amazing, and hard as hell
Angular's dependency injection is literally magic. Someone who has never used javascript before would probably have the advantage over a seasoned js-pro when reading the code.

That said; once I realised what it is doing, I quite like it and it has led to some of the cleanest client-side code I've written.

chrisfarms··on Reveal.js
Am I the only one who finds the concept of "vertical slides" a bit, errr, wrong?

A presentation is a linear process. The first time a skipped through someone's slides who had this concept (without being presented to) I missed half of the content.

Is it for "things I might not have time for"? or What am I missing here?

chrisfarms··on Google timer
I think all these kind of searches fall under the "conversational search" goals that they are now aiming for.

Conversion: https://www.google.co.uk/search?q=150+GBP+in+USD Weather: https://www.google.co.uk/search?q=temp+in+london

chrisfarms··on The ﹤main﹥ element
The ARIA roles ideas seem to address the semantics/accessibility issues much better than semantic tags.

Plus with the direction that the Web Components stuff is going, I think they should probably scrap all the semantic elements, just stick to a smaller set of HTML elements that are "functionally" different. Then tell everyone to create their own tag-semantics by extending the basic elements for their use-case and use the standard roles taxonomy to describe the intent of the user-created tags.

It feel a bit like parts of the groups are not talking enough :)

chrisfarms··on Show HN: My Isometric GPU-Powered Voxel Engine
Yeah would make a pretty cool openstreetmap tile generator
chrisfarms··on Pilbox: an image resizing application server
I've got a feeling it's something that many people have been doing on even mildly complex sites for a long time, but people seem to be trying to SaaS it up recently.

protip: Dynamically generating content by URLs is also a nice DOS attack surface if you don't rate limit in some way or try to detect abuse.

chrisfarms··on Free online resume creator based on LaTeX
This gives me a bad feeling. If the "false signup" is SUCH an issue, it makes me speculate that the end goal is to have my details for some other purpose - like passing on to annoying recruitment companies.
← PreviousPage 4 of 8Next →