Better HN
topnewbestaskshowjobs
Log inSign up

rcoder

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

Submissions

comment 18y ago · link · parent

I've tried the Gore-Tex thing, and honestly prefer to just layer up and stash dry stuff at home and office. I do tend to ride pretty hard (even when commuting), so the problem I have with a really "waterproof" outer shell is that I end up sweating as much moisture out from the inside as is trying to reach me from the outside.

I have a lightweight rain jacket and a pair of "Rain Leg" waterproof chaps which gets me through my 15-minute ride without getting too soaked.

I do agree about the mass transit in Portland in general -- TriMet is fast, cheap, and reliable, in my experience -- but I have to transfer twice in the 4 miles between home and work, so it's not really time-effective.

comment 18y ago · link · parent

I get wet.

Seriously, that's it. Being out in the rain in a temperate zone isn't a big problem. You just need a change of shoes and a dry pair of socks at the office, and things are generally fine.

It probably wouldn't work out if I were, say, a trial layer, but then again, all kinds of things about my personal and professional choices wouldn't make sense in that case. Good thing I hang out on "Hacker News," instead of "PHB News," eh?

comment 18y ago · link · parent

You're right, of course; doing full-stack development, no matter the target platform, involves a lot of unsexy busywork. Browser incompatibilities are an issue as well, and there are certainly a number of layers of technology beneath any finished application.

That being said, I don't think it's fair to argue that desktop apps are easier to develop, test, and deploy than their online counterparts. Furthermore, information-sharing features that are trivial to implement via the web can be rather more complicated to build into a desktop tool.

comment 18y ago · link · parent

My quality of living is substantially higher due to the fact that I commute by bicycle instead of by car. I save hundreds of dollars a month, get at least 40 minutes of exercise every day, and have an interesting sport/hobby to engage in when I have a few hours free on the weekend.

As a programmer, the exercise and outdoor activity components are particularly critical. I do some of my best "mental coding" while riding to and from work, and while I may have put on a few pounds in the last couple of years, it's not the unhealthy, inactivity-driven sort of weight gain that would make me worry about heart problems or diabetes.

comment 18y ago · link · parent

In a datacenter where you control the DHCP assignments, it would be fairly easy to determine the IP address of a new server, since the MAC address is usually on a label somewhere on the chassis.

For a remote install, you could either configure the IP before burning the install media (as you suggested), or have the installer scan connected USB devices for a known config file name, and load configuration from it. That way, all you would need to do is have the colo tech load a file you emailed them onto a thumb drive, and then insert that into an available USB port on the server before starting installation.

comment 18y ago · link · parent

> I've been thinking about XUL/Firefox addons

If you value your sanity, put the XUL handbook down and step away slowly. Of the handful of completely failed software projects I've worked on, most have involved XUL and the Mozilla runtime stack in some major way.

The complexity of XUL isn't worth it for the payoff, IMHO. Stick with something simple like Shoes or Tk, or go for Qt or WxWindows if you need a rich widget set. Don't let the fact that XUL looks kind of like HTML mislead you into thinking it'll be easy to build on and deploy.

comment 18y ago · link · parent

The problem with finding really great hackers who want to do client-side coding is that a huge percentage of the work required to implement such apps is boring crap: compatibility testing, look-and-feel review, installer authoring, and collection of client configurations from issue reports. You can implement more features in less time when you deliver thin-client solutions.

Also, the knowledge required to deploy apps to each of your target platforms are fairly different, and tend to be developed to the exclusion of each other. A great Mac OS software engineer is unlikely to know Windows inside and out, and a Windows guru isn't likely to know or care much about Linux. Linux folks are, well, an altogether different bunch.

comment 18y ago · link · parent

I'm not arguing with the value of a filesystem as a general-purpose organizational tool. However, it's a strictly weaker tool in terms of structure and semantics than a proper VCS. Also, not only does using a raw filesystem put the burden on you to remember the associations between branches and versions, it also gives you zero support for merging once those branches are made.

Git is pretty good about following renames, moves, and other changes to the underlying filesystem, while still maintaining a proper graph structure to relate revisions to each other. Fast network replication and mirroring is just another benefit, as is the ability to quickly merge changes from multiple branches.

Finally, as another commenter has already suggested, it's really just about establishing good habits as part of your workflow early. It's much like testing: if you start out with a decent test suite, you're much more likely to maintain and use it than you are if you have to overlay testing onto an established project. Similarly, if you have full version history from day 1, things will be much easier further down the road.

comment 18y ago · link · parent

I have to respectfully disagree here. Having super-lightweight branching and local commits has helped me greatly, even in the tumultuous early days of a new project. Basically, it gives me the freedom to create a branch, hack for a while, and then either pull the changes into the trunk or abandon them, while still keeping an easy "bookmark" in place (a.k.a. the branch itself) to go back and review later.

Using rsync may offer a history of your code, but without any associated semantics, you're dependent on your own memory and grep to actually find out why a change was made. Making commits intentional, and associating them with a particular task, will greatly simplify your code archeology later. Rest assured, some day you will need to figure out why certain decisions were made, and your memory won't be complete (if it was even you who made the decision the first time).

Furthermore, adding a ticketing system from day 1 really helps impose a useful type of discipline onto your process. Work to be done is described in a ticket, and the ticket identifier gets referenced in your commit messages. Much like basic version control discipline, having a record that associates change requests with units of work will help keep you sane down the road.

comment 18y ago · link · parent

First, you should know that many types of caching will increase your memory usage, not decrease it. The whole point of a cache is to use fast storage (RAM) to keep a local copy of data that would be slower to retrieve from its persistent source (filesystem or DB).

Second, 384 MB just isn't much memory for a medium-traffic Drupal site. I would recommend at least a gig of memory, and perhaps more if you use plugins heavily. Drupal is neither particularly lean nor blazingly fast, so you're going to need a lot of Apache listeners working to handle that load, with each process probably consuming 30-50 MB of RAM.

Third, you're right to think that you need someone on-call who knows Apache, Drupal, and database tuning and configuration inside and out. A $60/mo. support package isn't going to do it, though. If you think about it, that's really only paying for an hour or two of tech time each month, so expecting to get 24/7 interactive performance tuning and optimization for free along with your support contract is pretty unreasonable. Put a performance guru on retainer, and establish an SLA with them if necessary to maintain your site uptime.

Finally, opening >30 tickets in less than a week is not the best way to get quality support. It's like the stereotypical impatient kid on a road trip, asking "are we there yet?" over and over again.

My suggestion would be for your to find an experienced LAMP admin who is willing to manage your hosting for you, and pay them a reasonable fee for doing so.

comment 18y ago · link · parent

> If they want to compete with photoshop they should focus > on usability rather than features. The scripting features > might be awefully cool for developers but for designers > who have to sometimes make hundreds of clicks to get one > pixel straight, usability matters the most.

Perhaps the same designers who love to complain about the increasing licensing costs of the Adobe stack should step up and start putting their money where their mouth is? If a few hundred design nerds donated even a fraction of the upgrade costs for CS4 to developers working on GIMP, they could probably get all kinds of nifty usability and functional fixes into the next release.

402.

Ubuntu "Intrepid Ibex" beta release(releases.ubuntu.com ↗)

3 points · by rcoder · 18y ago · discuss

comment 18y ago · link · parent

This was my first thought, too -- how do you manage licensing fees for Windows virtual machines?

My hunch is that the price per CPU-hour will be a bit higher, with the difference going straight to Microsoft. They've been looking for a way to migrate to a subscription-based pricing model for a long time, and this could provide just the test-case they need to gauge the willingness of customers to accept such a pricing scheme.

comment 18y ago · link · parent

I actually think this is a key point: the Linux kernel only provides a small fraction of the utility a Linux user derives from the system as a whole. The work that Canonical does to insure that Ubuntu releases are stable, supported, and documented pays much higher dividends to most users, and does more to attract new users.

Attacking Canonical for not contributing enough to the kernel sounds to me a lot like attacking the members of local Linux user groups for not including enough core kernel hackers in their membership.

comment 18y ago · link · parent

If I may be so biased as to offer my own take: http://rcoder.net/content/contrasting-the-iphone-and-android...

comment 18y ago · link · parent

Spinach is great, but if you're on a tight budget, and therefore not getting a lot of trace minerals, the oxalic acid content can actually mess you up pretty badly. (Oxalic acid binds to calcium, iron, etc. to form an indigestible chelate.)

comment 18y ago · link · parent

A big wok full of veggie stir-fry was my "go-to" dish in college. Frozen vegetables work well enough if money is really tight, but if you're willing to work with whatever is in season (or on sale) at the grocery store, you can get a lot of variety and flavor without spending much.

Fresh ginger and garlic, along with some soy and sweet chili sauce, is really all you need for seasoning; protein can come from tofu, chicken, or really any meat or seafood item; carbs come from rice or ramen noodles that are boiled and then tossed in to sautee once all the veggies are done.

comment 18y ago · link · parent

I'm not trying to perpetuate a stereotype, by any means. My family has a long history of military service, and while I may have overstated the potential social ossification that could arise from only veterans being able to vote, I very much stand by the assertion that military service affects your thinking in fundamental and powerful ways.

There are of course other obvious problems with making voting rights dependent upon military service. Specifically, I doubt that same-sex marriage and civil unions laws would have passed in even the smattering of states where they did, if only because few of those most directly affected (i.e., homosexuals) would have been allowed into the military, and therefore, allowed to vote.

comment 18y ago · link · parent

  > I've heard many times that it is best to minimize the
  > amount of Python code that executes in the critical 
  > paths of a program; instead, we will get better 
  > performance by using native libraries (like the re 
  > module).
Keep in mind that, while the 're' module itself may be written in C, it is in effect an interpreter for another language (regexps). You can easily build a regular expression that will happily backtrack and capture its way into a performance black hole, esp. since you can't trace the individual sub-patterns using normal Python profiling tools.

Benchmarking the two implementations, as you suggest, is of course the only way to be sure in your case.

comment 18y ago · link · parent

You would also ensure that every voting member of the populace had been exposed to military discipline and doctrine during their impressionable post-adolescent years. Much of the message of military training is that you should accept orders, respect the chain of command, and resist the urge to second-guess the motivations of your superiors.

It's a great way to keep a bunch of heavily-armed people trained to efficiently kill other people from turning on each other, but it's not necessarily the thinking you want out your voting populace, unless you want to make sure that society never moves forward.

The military attitude also strikes me as being pretty much anathema to hacking.

Now, if you want to talk about mandatory public service, where that two years can be spent doing social work, student teaching, etc., then I can get behind the idea.

comment 18y ago · link · parent

When you say you're writing the client API for a Python object database, do you mean a database that will only hold Python objects, or one that may contain arbitrary data structures, and be accessible from other languages as well?

XMPP may be a more efficient protocol than HTTP for stateful, session-oriented communication, but using it as a database client protocol is going to introduce a lot of overhead as compared to, say, using Protocol Buffers, or even the native ZEO Client interface.

Is there something about the ZODB/ZEO combination that doesn't work for your application?

comment 18y ago · link · parent

I still don't see why "type systems don't solve" the problem of keeping data domains separate. If user input is of a different type than SQL query components, you simply can't allow GET or POST arguments to hit the database un-sanitized. Yes, you can perform the check by hand (i.e., fix the "design problem"), but as we've all seen, programmers don't do that consistently, which leaves us patching the same class of vulnerability time and time again.

Type systems also don't have to be the algebraic types of Haskell; SELinux DTE and FlowCaml/Jif information flow analysis both fit loosely under the umbrella of "type checking," and yet allow for very fine-grained and interesting security properties of complex, real-world systems to be asserted and enforced.

comment 18y ago · link · parent

That's exactly my point, though -- there's a standard module for POSIX integration, but it's not part of the language syntax itself. It's a subtle thing if you don't do systems code often, but it becomes apparent after working with Perl for a while how much of it really is a domain-specific language for UNIX systems operations.

Haskell, as a general-purpose functional language, is always going to require just a few more keystrokes/lines of code to accomplish the equivalent system operations.

comment 18y ago · link · parent

Not to be too negative, but I think it might be a bit ambitious to get someone with no technical background up to speed on the entire web development lifecycle quickly. Being an effective web project manager is software project management; it just happens to be client/server software with a very, very large installed base of clients.

I would focus less on specifics of servers and implementation languages, and more on numbers 3, 4, 5, 7, and 9. If he can focus on the information architecture, usability, and overall project workflow, a decent design and engineering team can support him in the rest.

comment 18y ago · link · parent

You're right, of course, that systems security encompasses more than a formally-verified system can encompass. I say this having worked for a group that pitched the DoD and private vendors on "provably correct" systems that relied on commodity operating systems and compilers, so I really do get it, and know just how horribly limited formal methods are in the real world.

My point is, as I originally suggested, that any static analysis would likely be an improvement over what currently happens in the LAMP world. Most compiled languages have at least some tools available which developers can use to perform basic sanity checks -- the compiler itself being of course the first and most oft-overlooked of these. Dynamic language users lack even that basic safety net, which is the reason for my primary argument about the benefits of type safety and static analysis.

Basically, we're in furious agreement, and if you had caught me at a different time of day or mood, I could just as easily be standing on your side of the fence, arguing against someone who was trying to tell me that theory could solve all my security problems.

comment 18y ago · link · parent

I agree 100% with the assertion that modern webapps should divide privileges across multiple database connections/security principals. A large portion of SQL injection and session-hijacking issues could be rendered useless overnight if the basic tenet of "minimal privilege" were taken to heart by LAMP coders.

comment 18y ago · link · parent

I'm not sure how you can assert that math hasn't informed real security. Even disregarding crypto (which is pretty much the purest math you'll ever see in CS), the bulk of classic security design is based around systems like BLP and Biba, which are not only very strongly rooted in algebraic theory, but rely on formal proofs for assurance of their correctness.

At the end of the day, Haskell is just another programming language, with all the equivalent strength and limitations that provides. However, I do think that having a cultural expectation of strong type checking and reasoning about systems can only help security.

(To be fair, I should disclose that I do most of my day-to-day coding in Ruby. However, I'm trying to impose the discipline of at least mocking out security-sensitive systems in Haskell before implementing them in Ruby to force me to make my assumptions about safety and information flow explicit.)

comment 18y ago · link · parent

Where a static analysis tool can help is in flagging those cases where a developer might have made a bad assumption, and forcing them to reconsider that code point. Basically, it's a way to enforce some basic code review practices without requiring one of your senior developers to be able + willing to read over your junior devs' code.

The whole point of programming is to automate those tasks that can be automated, right? So, let's automate the first-pass stage of a basic security audit as much as we can.

To your specific points:

* Parameterized queries are available in some cases, as you said, but don't work when you have to build some portion of the query (sort order, grouping, etc.) at runtime. Static tools can help flag such dynamic values as being tainted or clean, as well as help insure that resulting queries will be well-formed.

* All that's necessary to extend your type checking to the database is to enforce the same level of discipline you do for built-in API functions. Just as static analysis tools need a signature for primitive functions provided by the runtime platform (syscalls for C, primitive library functions for PHP, etc.), your static checker could ensure that queries which used stored procedures checked at least the asserted type signature of those procedures. (SQL is pretty type-savvy, and most stored proc authors should be able to trivially provide type sigs for their code.)

The advantage to using Haskell for all of this is twofold:

* There are excellent existing parsing and graph algorithm libraries maintained by the Haskell community

* Working in a strict, pure functional language makes you think in terms of mathematical theories, rather than stateful effects, which in turn tends to result in better, more deterministic code

That being said, I think you could use OCaml, Lisp, or any number of other high-level languages to similar effect. The uniquely math-oriented world view of Haskell (and its implementers and users) does tend to lend itself to just the kind of defensible reasoning that you would want from a security-focused static analysis tool, though.

comment 18y ago · link · parent

You're right that #1 is indeed just a matter of using the right API. (I actually blame the poor state of many database client libraries and tutorial docs for the proliferation of interpolated query params, but the point remains that it's basically a mechanical fix.)

For #2, the problem is a bit trickier, but again, it just requires attention on the part of the developer.

Given the limited use of stored procedures by most LAMP developers, I think that #3 may be the least critical, even if it is the most difficult to tackle with a simple code analysis tool.

As you suggest, none of these issues are particularly hard to avoid via careful programming. The problem is that programmers often aren't careful, and when working in languages which offer "one-size-fits-all" string, array, and file types, they tend to just shove everything into and out of those containers without thinking about type or flow checking.

Type checking isn't a panacea, but it can flag issues of either type 1 or 2 early, which gives developers a chance to catch themselves before they commit (or even worse, deploy) a potential security hole.

Part of my motivation for this comes from reading a lot of unit tests and specs for webapp code. If you step back and think a bit, it becomes obvious that a lot of the test harness is simply devoted to type checking, and that the verbosity (and easy satisfaction of coverage metrics such tests provide) often mask otherwise glaring gaps in the actual test coverage.

1
131415
19