Better HN
topnewbestaskshowjobs
Log inSign up

rcoder

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

Submissions

comment 16y ago · link · parent

Farmers are the original pioneers of "renewable energy." Their main energy source is sunshine, converted directly to foodstuffs by some amazing works of generic engineering (a.k.a. "plants). Biofuels? Yeah, they've been burning corn and vegetable oils for decades. Robots? How about biological labor aids -- horses, herding dogs, chickens, etc.

Regardless, there's a reason you seldom hear "comfortable" and "subsistence farming" in the same sentence. Growing enough food to feed yourself is a full-time job, even with modern agricultural tech. Yeah, there could be a singularity-style event that makes traditional farming obsolete, but RepRaps and Roombas ain't it.

comment 16y ago · link · parent

I for one took "working at Starbucks" to mean "sitting at Starbucks, working on my laptop."

comment 16y ago · link · parent

Weight matters more if you tend to walk or bike around a lot. Carrying a 6+ lb. mobile workstation from your desk to your car and visa versa isn't much of a burden, but schlepping it around on your back for an hour or more on a regular basis can cause serious back and shoulder pain.

Ergonomics are important when you're either sitting in front of a computer or carrying it on your back for 90% of your waking hours.

comment 16y ago · link · parent

This concept really resonates with me -- my girlfriend and I bought a house recently, motivated by a combination of the tax credit, ever-increasing rent, and a desire to be able to plant, build, and remodel to our hearts' content.

Having a proper workshop in the garage and garden plots in the yard is important for me. I grew up "hacking" on physical objects just as much as computers, so being stuck indoors with only computers and small gadgets to work on always felt oddly limiting.

At a fundamental level, home improvement and micro-scale agriculture offer many of the same sorts of problem-solving challenges as coding. Plus, it's a lot easier to get other people interested in your latest kitchen remodel or crop of produce than the SQL optimization you pulled off at work.

Owning your own place can complicate the pseudo-nomatic lifestyle that a lot of developers seem to thrive on, but it can be totally worth it if you want interesting problems to solve outside of the digital realm.

comment 16y ago · link · parent

I'm currently working on a team that switched from PHP to Python+Django for web application development a little over a year ago. Since I've been writing Python code longer than PHP (8 years vs. 6 or so), I can't really speak personally about what the transition is like, but I can tell you about what I've observed and heard from other members of the team.

In general, the Python language and tools tend to steer you in the direction of writing cleaner, better-structured code. Working with Django also gives you access to a lot of decent 3rd-party applications that you can integrate into your project, and the Python stdlib absolutely dominates PHP in terms of scope, quality, and consistency. Having the bytecode compiler and libraries that provide better data structure and algorithm in app servers also opens up the door to a whole bunch of performance optimizations that are difficult to accomplish with PHP.

That's not to say that the Pythonic way is always better, of course. PHP encourages a very iterative approach to development -- at a basic level, you're creating a static page, then incrementally adding dynamic behavior until it does what you need. Python apps tend to put the code front-and-center, and output HTML (or JSON, or XML, or whatever) as a last step in the process. In the long term, that's usually a Good Thing, but it can make the prototyping and learning processes longer for some people.

comment 16y ago · link · parent

No offense, but putting critical financial data like invoices into a schema-less datastore strikes me as short-sighted and risky in the extreme. Best case, you're making a bunch of extra work for your accountant; worst case, you could completely fail to impose the structure needed to do basic reporting and billing. Financial data is highly structured already; I'm not sure why you'd throw away all that nice regularity and structure in order to save a few inner queries.

Also, in the case of a simple blog app, I don't think that contention is going to be your biggest worry. The on-disk structures for CouchDB are append-only, so your biggest worry isn't going to be locking, it's going to be the stale document revisions taking up disk space between vacuum operations, and the replication overhead for all the intermediate versions.

comment 16y ago · link · parent

I love the "notepad" joke implicit in that name.

comment 16y ago · link · parent

Have you tried out the multivariate experiment type in Optimizer? Unlike the "classic" A/B test, there's effectively no risk of exposing the fact that someone is part of an experimental group to normal users. (Of course, HN types could still pick out the telltale JS fragments in the page source, but that's a risk with any testing that has a client-side component.)

We've been pretty happy with GWO's combination of being a) free, b) easy for marketing+management types to use for reporting, and c) integrated with our Analytics and AdWords accounts.

Just out of curiosity, though: are there competitive hosted solutions you would recommend over GWO? More options would be a good thing to know about...

comment 16y ago · link · parent

I think the more reasonable standard might be this: if you wouldn't use a phrase or word in communication with your own colleagues, don't use it when talking to customers. If I got an email from a coworker talking about "synergies" and "visioning", I would likely reply with a direct and blunt request that they STFU and use real words.

That being said, having worked for a company which prepared business training materials for online MBA programs, I can tell you that the use of weasel words is literally part of the curriculum for any biz-school-trained managers. It's up to us, the somewhat-business-savvy geeks, to gently steer them back in the direction of real communication. (At the same time, we should probably listen when they tell us that "EPIC DATABASE FAIL!" is not actually a good way to describe what happened in an outage report.)

comment 16y ago · link · parent

If you're thinking of operating in the USA, you should read up on Communications Assistance for Law Enforcement (CALEA). CALEA pretty much requires that you be able to associate a name with any IP on your network, so you're going to have a hard time operating as an ISP without any personally-identifying information about your customers.

Regardless, if you can figure out a way to anonymously collect payment for services online without either getting ripped off by your own customers or leaving a paper trail for law enforcement to subpoena, then you have a far more valuable commodity than simple bandwidth to offer. In fact, you would have invented "digital cash", and any number of folks (afore-mentioned law enforcement and tax agencies amongst them) will race each other to control or use it.

comment 16y ago · link · parent

The GPL generally doesn't block a proprietary program from calling an open source one via a shell pipe. If it did, most commercial software running on a Linux system would run afoul of the GPL licensing of the core system commands (cp, ls, bash, etc.).

Furthermore, there are a number of more liberally-licensed binary-compatible reimplementations of Git available now (Grit and JGit spring to mind) that could be used as an alternate access layer, if you were less concerned with 100% compatibility with the latest Git features.

comment 16y ago · link · parent

Forgive me if I'm just out of date here, but last time I checked, REE offered something like a 30% memory savings per forked worker. By my math (Workers_ree = Workers_mri / 0.7) that gives you something like a 1.4X increase in number of available workers.

Now, a 40% boost in running threads within the same memory is nothing to sneeze at. It's just a far cry from a 200% increase in the same metric.

Furthermore, for many deployments running on bare hardware (or even virtualized in a private datacenter), RAM isn't really the most precious resource. An modern app server can easily be packing 16-32GB of RAM, at which point CPU and I/O throughput can easily challenge memory for "most precious resource".

comment 16y ago · link · parent

Why exactly do you assume that a credit card reader is a "closed box that is obviously provided by a bank"?

I've implemented point-of-sale systems before, and lemme tell you, there's nothing magical about a magstripe reader, a microcontroller, and a bit of firmware.

Think for a second about recent credit-card purchases you've made. If your habits are anything like mine, aside from gas stations (where the reader is usually integrated into the pump), most card "swipes" happen through either a peripheral device connected to a generic PC, or a compact card reader with little more than a keypad and phone jack, with no visible branding, certification, or tamper-resistant seals in sight.

comment 16y ago · link · parent

Magstripe readers have been within the reach of any reasonably-clever fraudster for a long time. Attaching them to an iPhone and using audio modulation for the signal doesn't magically open the floodgates to card skimming and duplication.

This isn't even as big a threat as, say, making people acclimated to the idea of joining open wireless networks at coffee shops -- card skimming at least requires physical access to the card for a few seconds.

comment 17y ago · link · parent

> It all looks and smells...of the Aerons of the late 1990s.

I'll admit that ragged on all the Aeron-acquiring startups back in '97-99, too. Then I bought one (second-hand, of course) for my home office last year, and discovered that, much to my surprise, Joel's arguments are actually sound: I can work for more hours, with better focus/less discomfort, in a really nice office chair.

Ergonomics aren't just faddish indulgence -- they can really make a difference.

Now, a DJ booth, and hand-rolled rattan bench cushions...those are faddish indulgence. (I'm still jealous, of course.)

comment 17y ago · link · parent

When I worked on a sizable JRuby/Rails codebase, our team had a hybrid approach: ephemeral jobs (rake tasks, migrations, autospec) all ran under MRI, while long-lived processes (app servers, CI/acceptance test runs) ran in JRuby. That gave us the best of both worlds: quick startup in cases where total runtime was an issue, and better throughput (and more predictable memory usage) for CPU-heavy workloads.

In my experience, MRI/REE fits into smaller RAM footprints only in cases where either you start up and shut down runtimes relatively regularly, or you can monitor for runaway leaks and terminate bloated processes.

I do agree that switching to a different runtime just to get access to a few libraries is probably the wrong approach, however. The big wins in using JRuby are, to me, twofold: a nice performance boost for general application code, and the availability of robust, battle-tested application servers. Mongrel, Unicorn, and Passenger are fine if you're willing to live on the edge, but if you have a more conservative ops team, or simply don't want to both with rolling your own monitoring and deployment stack, being able to drop a Rails app onto Tomcat or Glassfish as a single WAR file is pretty damn nice.

comment 17y ago · link · parent

It's a network security tool used for exploiting security holes in Windows systems in order to inject a remote control payload. It does have white-hat utility, but my sense is that it's mostly used for grey and black-hat activities.

Unlike the usual "script kiddie" Linux rootkits, it is largely focused in exploration and control of a single machine, but the building blocks Metasploit provides could easily be used to construct botnets, especially in dense networks like college campuses or medium-sized businesses without a strong IT security focus.

comment 17y ago · link · parent

Once you have a Javascript environment, it's not a large jump to emulate a minimal DOM -- see env.js, for example: http://ejohn.org/blog/bringing-the-browser-to-the-server/

With a stub DOM and Javascript interpreter, you can pass generated output from web application views directly into your testing environment and make assertions about the resulting behavior, dynamically-generated DOM nodes, etc.

There are a number of projects similar to this one (for which, sadly, I cannot currently pull up any bookmarks) mostly intended for a similar set of tasks. Being able to bring RSpec or Cucumber to bear on a hairy JS testing job can make the process much more enjoyable.

comment 17y ago · link · parent

Have you heard of a little something called Fair Use? If you were to modify one of Apple's system utilities and then distribute it, you could easily run afoul of copyright. Simply making a local modification in-place, however, is no more illegal than installing a new hardware driver, changing your shell prompt, or downloading and using Firefox in place of Safari.

Now, if you changed some piece of the system in order to circumvent FairPlay, or some other DRM component, then you might be running afoul of the DMCA. Not the same thing as copyright violation, however.

comment 17y ago · link · parent

At minimum, the fact that the core functionality is available as open source gives me some additional confidence in the platform's long-term viability:

http://www.dimdim.com/opensource/dimdim_open_source_communit...

Even if the company goes away, others can use the Community Edition source to host their own instances of the service. Also, security reviews and enhancements can be generated from the bottom up by the community, instead of being 100% dependent on Dimdim.

comment 17y ago · link · parent

How about this: install Debian, 'apt-get install kvm' (okay, you'll probably have to run that through module-assistant, but still, it's only a few more presses of 'Enter' away), then run 'qemu-system-x86_64 haiku.img -m 2048'. Voila! Linux as hardware abstraction layer and virtualization engine, with Haiku running on top.

comment 17y ago · link · parent

The reasons to stick with DHTML/JS as a "thick client" development platform are simple: decent, free development tools, the ability to interpose proxies and application middleware between the client and server transparently, and a very, very large install base for the client runtime.

That being said, I share much of your amusement at/disdain for the attitude of "OMG, look at this brand new thing I have made that is completely different from all those old things!"

comment 17y ago · link · parent

Since the pickle module doesn't marshal many types of stateful objects (filehandles, functions, etc.), I'm not sure it's fair to describe it as a means of saving the "state of the Python interpreter". It really just serves to save a compact representation of data on disk, without explicitly managing packing an unpacking from the binary serialization.

In that respect, it intuitively seems like it should behave more like the ASN1 or YAML formats w.r.t. the safety of data loaded from it. I may understand the risks, and you may understand the risks, but I think that a new Python programmer could be forgiven for simply scanning the standard library documentation and thinking that the pickle format would be safe for transport across untrusted channels.

comment 17y ago · link · parent

I guess it was, "no, it shouldn't be, except that the pickle module is broken by design."

I.e., data structure parsing should not require a Turing-complete language. If it does, your serialization format is broken.

But yeah, I can see the issue with my original comment.

comment 17y ago · link · parent

YAML is strictly a superset of JSON in its expressiveness, since it allows tagging of serialized objects with a type name. JSON reduces everything to maps, arrays, and scalars, so any type information has to be encoded in (or inferred from) the structures themselves. I also find it to be a bit easier to read, and so prefer it for configuration files or console dumps of data structures.

However, YAML isn't quite as well-supported in the standard libraries of various programming languages, most notably Javascript. Which one to use depends largely on how heavily you expect browsers to consume your service output.

comment 17y ago · link · parent

No.

Proving termination for programs written in models less powerful than a Turing machine does not require you to solve the halting problem. Programs using primitive recursion, finite automata, and regular expressions, for example, can all be proved to terminate, and can express a number of useful computations.

The problem is that the pickle module is far too permissive. In particular, the REDUCE operation invokes a Python callable with an argument tuple on the pickle stack, which means that 'pickles' are at least as powerful (in the Turing-general, halting problem sense) as Python.

comment 17y ago · link · parent

Since it sounds like a number of people are maintaining local patches to this library, might it make sense to fork it on GitHub to try to get some additional contributors onboard?

comment 17y ago · link · parent

I'm not sure that I 100% buy the claim that this is a new form of web navigation -- knowledge base, ticket-tracking, and e-commerce tools have had numeric quick-jump features for years. It is an interesting approach to more traditional textual page navigation, though.

239.

Spoken Directions to Web Content(info.org.il ↗)

1 points · by rcoder · 17y ago · 1 comment

comment 17y ago · link · parent

  > That means that someone manually took the site down.
Since the News.YC code (which NewMogul also uses) runs in a single Scheme process, it could have shut down for any number of reasons: it might have crashed, failed to start after a server reboot, been killed by the OS or hosting provider due to a memory leak, etc.

I don't know what kind of monitoring nickb might have set up, but if he's not responding to personal email or phone calls, it seems reasonable that he simply doesn't/can't know that the site is down.

1
789
19