Better HN
topnewbestaskshowjobs
Log inSign up

rcoder

2,116 karma · joined Aug 14, 2007 (19y ago) · 566 submissions

Submissions

comment 17y ago · link · parent

Shame on me. Shoulda pasted the useful link, instead of the promo link in defunkt's tweet.

comment 17y ago · link · parent

This is all the more critical when you consider how the usual web developer handles the complexities of chained certificate verification: namely, by disabling verification entirely, and instead trusting every upstream certificate as offered.

For example, as of Rails 2.3, ActiveResource (the default RESTful web service API client used in many Rails applications) disables all SSL verification whenever SSL is used, without so much as a configuration flag to enable it again.

comment 17y ago · link · parent

Also posted here a few minutes ago: http://news.ycombinator.com/item?id=653144

comment 17y ago · link · parent

This basically looks like an effort to clean up some of the warts of RubyGems, which have become especially painful in the era of the DVCS. GitHub has made forking of Ruby libraries easy, which is great for pace of development, but also causes rapid proliferation of many potentially-conflicting versions of libraries.

Rip looks like one reasonable approach to reclaiming some sanity out of all of that.

275.

Hello Rip(hellorip.com ↗)

30 points · by rcoder · 17y ago · 2 comments

comment 17y ago · link · parent

I would presume that most coffee shops have no idea that CALEA even exists. The airport question is a good one, though -- they've obviously pretty security-minded (however poorly they may implement said security), so I would assume they've found some middle ground that allows them to offer "anonymized" access.

Of course, any paid access immediately associates a name with an IP: the person on the credit card used to charge the access.

comment 17y ago · link · parent

More importantly, the Federal CALEA wiretapping law basically requires any ISP (including corporations, colleges, and other organizations that provide 'net access to their community) to record the identity of anyone given access to their network so that law enforcement agencies can gain access to usage logs.

The fact that Microsoft chose to conform with the letter of this law is to be expected; rather, the fact that Google's lawyers somehow decided they didn't have to do the same is surprising, at least to me.

comment 17y ago · link · parent

Have you checked out PubSubHubbub project?

http://code.google.com/p/pubsubhubbub/

It looks like there's a lot of overlap with the feature set you need, as well as the advantage of some extra documentation + testing. It's a Python WSGI app, instead of Sinatra/Rack, and the data over the wire is encoded as Atom, but there could be some useful lessons to work from at least.

comment 17y ago · link · parent

If you don't set up sessions for users working with wget, curl, etc., you'll also lock out a lot of legitimate users who want a scriptable interface to your site. This goes double if you don't offer any sort of official API.

Refusing to initialize a session for non-browser UAs just invites abuse via agent masking by malicious users, while locking out innocuous and acceptable uses by your real users.

comment 17y ago · link · parent

You can always test for nil explicitly. Compare:

  unless foo
    # ... foo can be false or nil to reach this branch
  end

  unless foo == false
    # ... this branch is reached unless foo == false
  end
Since terseness is considered such a cardinal virtue amongst Ruby programmers (including myself), however, this kind of issue is often ignored, and difficult to detect unless your tests explicitly check for "truthy" and "non-truthy" values in addition to the true/false literals.

comment 17y ago · link · parent

Voila! I give you XMPP + threading:

http://xmpp.org/extensions/xep-0201.html (last updated Feb. of last year)

Wave is XMPP, with additional Google extensions for a variety of collaboration features. That is possible because the first letter in XMPP doesn't stand for "XML", it's the (annoying but common) "eXtensible", suggesting that domain-specific additions are not only accepted, they are encouraged.

comment 17y ago · link · parent

Yeah, it looks a lot like XMPP to me, too:

  "The Google Wave Federation Protocol is an open extension to XMPP core [RFC3920] protocol..."
(From the first paragraph of the draft spec.)

Whatever your feelings about XMPP, I challenge you to point to a standardized, interoperable protocol that you think would be a better fit. It may not be ideal, but it's extensible, already supported by a large number of clients and servers, and doesn't require starting from scratch when building interoperable software.

comment 17y ago · link · parent

Two 8-bit cores != a 16-bit CPU.

By your math, every dual-core 64-bit Intel CPU would actually be a 128-bit processor, a quad-core would equate to a 256-bit system, and the Cell would be a very studly 1088-bit chip (64-bit PPE + 8x128-bit SPEs).

You appear to be confusing "linear" scaling with "exponential", which makes a serious difference.

comment 17y ago · link · parent

Repeat after me: censor-ware does not work. It's like spam -- since you can't even define what constitutes offensive content in a consistent, formal way, how in the hell can you expect any system (human or algorithmic) to make an effective, fair determination about what goes in which bucket?

Apple does a great job of design, usability, hardware hacking, and recently they've even been pretty effective at getting content owners to move in the direction of reasonable licensing terms for digital distribution. However, they do not have magic pixie dust which makes them immune to brain-dead "content filtering" algorithms, whether human-mediated or not.

comment 17y ago · link · parent

> ...these C libraries are always insanely convoluted...

If you haven't actually looked at the code, you might want to avoid making such a overly-general statement. CDB is a very simple data structure (basically a two-stage hash table) serialized to disk in a format that makes lookup fast. You can check the link I posted above to see a simple explanation of the format, and this page to see examples for usage (from an API-compatible reimplementation):

http://www.corpit.ru/mjt/tinycdb.html

Since the core algorithm is so simple, creating a 64-bit version should be similarly easy, at least on a UNIX-like system (trying to run code designed by Dan Bernstein on a non-UNIX system would be...interesting).

comment 17y ago · link · parent

Actually, the core CDB data structure only limits keys and values to 4GB each, not in total:

http://www.unixuser.org/~euske/doc/cdbinternals/index.html

The hash algorithm used also only produces a 32-bit key, meaning you'll be limited to 2^32 total records. Again, though, unless your data is of trivial size, that gives you considerably more room to work with than a hard 4GB limit.

Edit: doh! can't use double-asterisk for exponent on HN

comment 17y ago · link · parent

I'm a bit surprised at the poor showing of Tokyo Cabinet in this test, given the amount of buzz it's gathered in the last few months, but the CDB results honestly don't surprise me in the least -- it's a special-purpose datastructure wrapped in a thin library that just smokes any other DB type if your workload allows for a complete rebuild of the database on each update.

comment 17y ago · link · parent

I would honestly say that they're all pretty equally terrible, across both the paid and free/OSS segments on the market. Making any of them useful for your environment requires customization, training, and plain old time.

When I was working at a school that had to pick a new LMS, we eventually settled on Moodle simply because it was the only option that was sufficiently hackable for us to turn it into something usable.

comment 17y ago · link · parent

Thankfully, there are better, free alternatives out there to either Angel or Blackboard. Sakai (http://sakaiproject.org/) has the more substantial "big school" base, and looks like a good platform on which to build if you're okay with a Java app stack, and willing to put up with some "design by committee" architectural choices. Moodle (http://moodle.org/) on the other hand is much easier to get up and running quickly (it's just a standard PHP app), and has an active community of extension, theme, and patch contributors, albeit at the cost of some of the typical PHP framework's tendency to grow warts.

comment 17y ago · link · parent

As I see it, data.gov isn't so much a source for new types of information -- it's a more approachable and usable clearinghouse for the public datasets already being made available by the federal government.

comment 17y ago · link · parent

XMPP solves many of the issues with email only because it requires explicit whitelisting of message senders, and because it's still a niche ecosystem compared to email. Most users don't even try to accomplish cross-domain message sending, much less extensive file transfers or server-side storage and archiving of messages, no matter what the server capabilities might be.

As a set of protocols, SMTP and IMAP are both pretty well-suited for the task they set out to accomplish. Furthermore, the delays you mentioned in message delivery are largely due to intermediate spam filters and store-and-forward queues, not inherent issues with email as a transfer mechanism.

comment 17y ago · link · parent

Starting a conversation is much easier when you have a reason to think you have something to talk about with the other person. I too find it difficult (and generally, also fairly pointless) to engage random strangers on the street in conversation, but have found on the other hand that tech meetups, volunteer opportunities, and alumni events have a relatively high chance of producing interesting conversations, especially once I've established an "anchor" group of friends and peers within a particular community.

You may also want to consider the context for the conversations when trying to determine the reason that they die out. There was an article posted here some time back on the subject of "acceptable settings for flirting", which wasn't all that informative, but did hammer on one key point: people's degree of receptiveness to conversation with strangers depends largely on context. I.e., someone sitting by him or herself in a bar or coffee shop may be a bit more open to chit-chat than they would be when sitting at a bus stop, or having lunch in a cafeteria.

Basically, you should rely on favorable settings (parties, departmental mixers, sporting events) and implied social ties (academic cohort, shared professional interest, friends in common) to get your foot in the door, then try out your best lines, rather than expecting your wit alone to forge a new relationship.

comment 17y ago · link · parent

This is all very cute, but the real exploit isn't embarrassing your friends and co-workers by revealing their kinks. Imagine a phishing site which could sniff your browser history to see which bank you use, and then provide a customized login form masquerading as that same site.

Exposing browsing history via CSS color information in the DOM is a serious security hope that should be closed by browser vendors.

comment 17y ago · link · parent

You have a point, but you're dangerously close to an argument that people who live in more expensive areas are intrinsically "better" than those who don't, whatever the reason.

Some of us may choose to live in more affordable cities because the quality of living is higher, or because we value being able to safely and comfortably walk or bike between home, office, and other destinations.

I personally make enough to live reasonably well in most any city in the US, and after a couple of years in the Bay Area, moved back to my native Portland because the quality of life was simply better, at least on the axes I care about.

comment 17y ago · link · parent

Cost of living affects startups in a number of ways, including the price of office space (or home rental, in the "working in the basement" stage) and the minimum salary expected by your staff (once you start hiring).

However, the areas with higher cost of living also tend to be desirable places to live, with an existing concentration of business and tech-savvy people.

296.

TorqueBox: JRuby on JBoss(torquebox.org ↗)

3 points · by rcoder · 17y ago · discuss

comment 17y ago · link · parent

Knowledge of macroeconomics != personal spending discipline

comment 17y ago · link · parent

> Yet another smug boomer with an overinflated sense of entitlement...

...who, to be fair, made a very public "mea culpa" about his failures in personal judgment when faced with the possibility of buying a house he couldn't really afford.

I don't necessarily think this article was all that appropriate for HN, but I did think it was a compelling piece, because of the insight it offered into how even otherwise-rational people could make bad decisions about credit.

comment 17y ago · link · parent

I think the reference to gaming in the article threw me off a bit -- looking over the NaCl API docs, I don't see any references to accelerated 3D of any sort[1]. Basically, it can handle Quake, because it works with a software-only rendering pipeline, but Crysis is going to be out of reach for some time to come.

As I understand it now, NaCl is really just a way to offload CPU-bound tasks to native code with minimal overhead. It's interesting, but I'm not sure I like the trade-offs vs. a platform actually designed from the start to insure confinement of untrusted code (i.e., Java).

[1] -- Does anyone know of good literature on confinement of GPU-intensive code? I've read up x86 and Java security issues, but don't know of any good work on the security profile of code using OpenGL or DirectX...

comment 17y ago · link · parent

Okay, good to know. It was unclear from the article what set of syscalls we exposed to the apps running within the NaCl sandbox.
1
91011
19