Better HN
topnewbestaskshowjobs
Log inSign up

codebeaker

1,632 karma · joined May 4, 2012 (14y ago) · 268 submissions

http://lee.hambley.name/ http://www.capistranorb.com/ https://www.harrow.io/
Submissions

comment 13y ago · link · parent

I'm keen for any media which is a) structured and b) is an essentially append-only dataset.

I fear that existing APIs, through design and coincidence fail to address the needs of flexibly covering media of all types.

Join the list, look me up, or feel free to contact me to discuss

comment 13y ago · link · parent

I believe trakt.tv is the kind of service that might benefit from a simplified back-end system if it were to use openmedia.io. They likely use thetvdb, or epguides or similar now, or may even have their own integrations with EPGs.

Similar services: * Web: trakt.tv, watched.it, watched.li, gomiso.com, getglue.com * Android: TV Series, TV Show Favs, Twee, DroidSeries, MyEpisodes

I don't think that trakt.tv is really competing on an API level, but the data from openmedia.io would make building and maintaining a TV and movie tracker trivial.

comment 13y ago · link · parent

@carbuncle - If TMDB's licence allows, I can absolutely imagine offering the webhooks, and changes stream and a Movie type backed by TMDB. It's something I'll have to take up with their moderators.

@theallan - It depends whether that would be a competing service under liberal interpretations of the law, when the legal chap has drawn up the API permission guidelines, I'll be sure to notify the mailing list. Under German law we have to be quite explicit about granting permission, but the beta list will be notified of the full terms of usage before the API opens. (My gut-feeling, no problem with using the data to back an app, that's sort-of what the data's for!)

comment 13y ago · link · parent

I'm working on an API that doesn't suck that will represent TV, Movies, Podcasts, WebTV, and other forms of media.

A stack-overflow inspired reputation system will reward community members to contribute translations, new shows, movies and corrections.

Background workers interface with EPGs, other APIs and streams of data from other sources.<p>An image proxy server means openmedia.io will do the heavy lifting delivering images in the dimensions that you want, backed by a speedy CDN.

245.

A fast, modern API for TV, Movies, Podcasts and more(openmedia.io ↗)

35 points · by codebeaker · 13y ago · 39 comments

comment 14y ago · link · parent

Doesn't this solution as soon as people come directly to the forum from a search engine, and asking bots to maintain a cookie jar is hardly challenging.

comment 14y ago · link · parent

I believe that studies (which I cannot find citations for now) determined that this device makes the sutation worse, as it scatters metalic debris over a wider area, and that human mine clearance teams have to work an order of magnitude harder, cleaning up tiny bits of shrapnel. Before an area can be marked clear, it has to be devoid of all unidentified metalic shards, and of course, all mines of other materials. As a result, it was the determination of more than one agency that this device makes things worse.

With that said, props to the designer for working on a solution to a difficult problem, but perhaps more domain knowledge would have lead him to a more suitable solution

comment 14y ago · link · parent

Congratulations to Jean-Baptiste, that's been an incredible arduous piece of work for him.

249.

Why doesn't Ruby include class reloading as a language feature?(stackoverflow.com ↗)

1 points · by codebeaker · 14y ago · discuss

comment 14y ago · link · parent

Stow seems to have a flavor of Mac homebrew about it (more likely the other way around) everything is compiled and installed into `/Library/Cellar` and then symlinked into the system path, you can `brew unlink readline`, for example and it goes away, link it back and it's available to the system again.

The `brew` executable knows about the correct flags to give to `--configure` within it's own context, so it rarely goes wrong.

comment 14y ago · link · parent

> checkinstall

Thats a half-decent idea, nice smart move, and it looks like the authors motivations weren't dissimilar to my starting point for this query.

I do wonder however if it isn't slightly over-killed, `make install` must generate a list of commands to run, or there should have been some way to stream the output of `make install` to a text file, that it might be undoable ?

comment 14y ago · link · parent

> I think there is no `uninstall` command included usually because most packages that are installed using `make install` are system libraries that other packages depend upon. And so just uninstalling that one package could result in a broken system. There may be some other historical reason, but that's my guess.

That's a good point, there is no dependency resolution at this low-level; and with that in mind, there's probably a good way to uninstall things by hand, if you really wanted to.. thanks for the thought.

253.

Ask HN: Why do Makefiles typically not include an uninstall script?

5 points · by codebeaker · 14y ago · 9 comments

comment 14y ago · link · parent

I hope that Rails has the weight to push these kind of changes into Rack.

I think that Rack is one of the best things that happened to the Ruby web-application community, and I'm a little sad that Rails is getting a "vendor specific" implementation of what should be a wide reaching feature. As you said at @scotruby though, Rails is in a unique position to direct the development on both sides, front and back end of development. (I believe in Scotland you were referring specifically to pushing backend queue implementors to meet the new Rails queueing API.)

I'm looking forward to seeing people building upon this for common use-cases such as streaming reports, CSV exports etc to clients, as well as the more `fun` stuff about live browser reloading (which guard-reload implements very nicely, actually, using a different technique)

And, I think it's fair to say that using a queue, and having a queue consumer (again, I think you demo'ed that in Scotland) isn't such a bad solution, at least as a more experienced developer I appreciate the moving parts, and it doesn't distract me too much from solving the problem at hand, and - most importantly it works.

That all said, I think this is a valuable change, and I thank you for your time in making it work, and coming up with an interesting test-case.

For what it's worth, my last word would be about a post on HN a few days ago, about streaming JPEGs, multi-frame streams often (apparently.) used for IP camera livestreams, that's quite an interesting case which could lead to this controller technique being used to do live image previews without page reloads in Rails with AJAX image upload.

comment 14y ago · link · parent

I encouraged him to work on returning EXIT_SUCCESS or EXIT_FAILURE in order to better integrate with tools such as git-bisect (which can be used to binary-search the history for code passing a certain condition with a successful shell exit) - beyond that, I couldn't come up with any obvious improvements, what do you think?

256.

This programs author is looking for feedback, let's help him out(github.com ↗)

1 points · by codebeaker · 14y ago · 1 comment

comment 14y ago · link · parent

After reading the "What Happens" section of the OP's article I can see that he's made the classical mistake of making many things do one small thing, but they're not independent.

The message queue to notify component X of changes to data in Y is endemic of badly designed systems; if system X cares about changes to data in Y it should be designed that (at scale) it caches the data for a suitably short time, otherwise reads-through to the canonical source.

This is a common anti-pattern, and I've seen it built by smart teams at epic scale (millions of uniques per day) and it is still un-manageable.

Feature toggles, hard and soft-failing, together with a baked-in assumption that APIs are asynchronous (that is, unreliable) at as many levels as is feasible is a good architectural move. (And does not necessitate an abundance of architecture over feature code)

Loosely coupled components that expect their counterparts to respond slowly, or not at all are easy to implement and even easier to test. (HTTP, if one wants to use HTTP as the transport medium, learned this, and offers 201 and 202 for CREATED and ACCEPTED).

In my own projects (and I work mostly on near-realtime billing APIs) we bake this assumption (and others) into every transaction, as try to be restful, and transmit the state, and a URL which can be used to get the canonical representation of any resource, at any given moment, and objects in all parts of the system are stateful, relying on the handshakes (accepted/created) (404, 406, 409) to avoid race conditions and to make sure our systems can handle downtime of any component (internal or external)

As a result, we have lightning quick tests, we are very confident in the system's ability to perform, and we have read-through caches which respect the transport medium's headers.

I suspect the OP is right, many do over-engineer the startup, but remember many startups appear to have an abundance of developer potential, until they don't. (Usually through bad design, not over engineering, the two ought not to be confused)

Perhaps I am biased by having seen it happening in a large company, completely unscalable architecture, and at a point as many "architects" as they had developers, desperately trying to keep the wheels turning.

comment 14y ago · link · parent

There's a good chance you need to invest in your wildignore or ctrlp ignore settings. I run: https://gist.github.com/67de417c5c38f0ff8093 in the end of my ~/.vimrc to ignore the SCM directory, the tmp directory and my data-dirs (you can adapt as required) - this makes ctrlp really responsive for me. YMMV.

comment 14y ago · link · parent

Website is still down, that's a shame - OP can't even get the homepage back online before showing HN.

30 minutes to bring back a homepage is pretty bad man, also your personal homepage http://paulbjensen.co.uk is returning NO CONTENT, is that on the same (bricked) server?

comment 14y ago · link · parent

Your "formParams" link refers to the "dimensions" anchor, might want to fix that oversight.

261.

Fixing slow development mode for Rails under OS X(lee.hambley.name ↗)

1 points · by codebeaker · 14y ago · discuss

comment 14y ago · link · parent

I adore that you used literate style documentation for your source, as someone who is also learning to love programming efficient tools in C I very much appreciate that.

I question the need for yet-another-process-monitor, but I acknowledge that upstart, monit, etc are by and large overcomplicated and messy. They provide more features, of course, but they violate my interpretation of the unix philosophy.

I'm sure many people on HN will condemn you for writing this but, I for one am very excited to try it.

I had a similar idea of a daemon that would allow inter-process signaling for users to signal processes which shared their GID, to simplify web application deployment without relying on sudo privilege restrictions.

You may have just inspired me to take your lead, and just do it - a few hundred lines of C, and smart documentation have a lot of value as learning, experience, proof-of-concept and a discussion point; and that in itself is reason enough for this to exist!

comment 14y ago · link · parent

Way to exclude mainland Europe through your short-sighted decision to use Imperial units.

There's simply no valid reason (and hacked in a weekend doesn't cut it) to store units in Imperial, let me choose, as as an engineer I abhor laziness in building such sites, in 2012, more than ever I18n and L17n are more important than ever, even within sites only offered in English language.

(plus the maths on converting weights is more sane with metric units, I just don't get it)

comment 14y ago · link · parent

And overkill for almost all intermediate sized installations, but a great use of their technology to meet their requirements, thanks for the link.

Of course Twitter have snowflake: https://github.com/twitter/snowflake and many other tools such as UUID[4r] - see an old discussion on HN: http://news.ycombinator.com/item?id=1396667

Of course I wanted sequential, small IDs, within a small margin of acceptable loss (if a save fails that ID is never used), that were't taking up a massive amount of space.

comment 14y ago · link · parent

> Sorry, but slugs serve a real purpose, so your solution is only a solution in the sense that walking is a solution for a broken down car.

This doesn't replace slugs, at all - the slugs are still generated, this replaces the SQL unique sequencer. The SQL sequencer which isn't universally supported, and has a different API on every platform.. many modern applications have Redis or a similar atomic structure store which could provide an interim solution, short of building a purpose built ticket provisioning system such as that employed by Flickr.

comment 14y ago · link · parent

I'm weighing in here on the comments about "Solving a problem that doesn't exist" - the database is quite loaded, and we have Redis in the stack anyway. The solution to this problem is any backend which creates unique numbers atomically; I happened to choose Redis because I'm interested in it technologically and I like the API.

It's worth mentioning that Rails doesn't encourage access to the underlying database features - and that stepping outside of the Rails/ActiveRecord results in features which are difficult to test and more difficult to maintain in the face of an ever changing API.

I don't care where the next atomic ID comes from, as long as it comes from a datastore that is fast, and that I can trust.

267.

High concurrency friendly IDs in Rails without SQL locks.(lee.hambley.name ↗)

26 points · by codebeaker · 14y ago · 16 comments

1
56789