2,116 karma · joined Aug 14, 2007 (19y ago) · 566 submissions
comment 18y ago · link · parent
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
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
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
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
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
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
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
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
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
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
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
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
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
comment 18y ago · link · parent
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
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
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
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
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
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
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
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
comment 18y ago · link · parent
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
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
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.