2,116 karma · joined Aug 14, 2007 (19y ago) · 566 submissions
comment 17y ago · link · parent
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
comment 17y ago · link · parent
Rip looks like one reasonable approach to reclaiming some sanity out of all of that.
275.
30 points · by rcoder · 17y ago · 2 comments
comment 17y ago · link · parent
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
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
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
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
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
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
"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
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
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
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
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
comment 17y ago · link · parent
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
comment 17y ago · link · parent
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
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
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
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
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
...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
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...