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'm going to buck the general trend here, and recommend that your next language not be Perl, Python, or Ruby. If you really want to become a well-balanced programmer, you should either learn a lower-level, compiled language like C or Java, or you should stretch a bit and try Lisp/Scheme or Erlang.

Working only within the "scripting language" space of the typical LAMP stack will limit your thinking in ways that could hurt you later on.

comment 18y ago · link · parent

There's really no substitute for setting up a system that you can break without negative consequences. Also, putting a public server for which you have root access out on the Internet entails a degree of public responsibility: if your box gets 0wned and becomes a DDoS attack node or spambot, it's your fault. (I say this coming from the POV of someone who had their first "real" server cracked wide open within 90 days of putting it online due to an OpenSSH remote exploit many years ago.)

If you haven't already done so, download an install ISO for Debian/Ubuntu or CentOs/Fedora, and install it on a spare machine, or even in a VMWare image on your regular workstation. Work through some of the examples on HowtoForge, and learn to install and configure Apache, MySQL and/or PostgreSQL, PHP/Ruby/Python, and Postfix or Exim w/basic spam filters.

Running a virtual private server (VPS) is a bit easier, in the sense that you don't have to manage the actual hardware, but the fundamentals are the same, and you'll be glad you have physical access to the system when you screw up the configuration or forget the root password. Get comfortable maintaining a machine locally, then go out and inflict your administration skills on the 'net at large.

comment 18y ago · link · parent

"...a point release...[that] doesn't seem to change the overall API too drastically"

In other words, you mean "a point release," right? I know that many open source projects (I'm looking at you, Drupal!) may not care about this, but when I see a minor revision number change, I expect my applications and plugins to keep working without a major overhaul.

comment 18y ago · link · parent

Of course, that's only true if you're using a totally flat heap. I don't see any reason why you couldn't be a little more clever about using a hybrid GC approach (generational + thread-local allocation pools, for example) to minimize the size of the dataset that had to be paged in or out in a given sweep.

RScheme and other persistent language implementations have certainly been able to use the underlying OS paging mechanism pretty efficiently, and the performance numbers Varnish HTTP cache seems to suggest that it can work well for some kinds of web application workloads, too.

comment 18y ago · link · parent

RAM just hasn't gotten cheaper at the same rate as clock cycles. Offering lots of memory for very little additional money couldn't possibly be cost-effective, unless Amazon is also memory-constrained for most of their applications.

Regardless, you can almost always trade CPU time and/or IO for memory in webapps. Limit your RAM caching, and move less-frequently-used data to temporary files on disk. Be more judicious in your SQL, so that you don't return large result sets to your application servers which then get filtered further in your business logic. Hell, run one or two fewer app server processes to begin with, and just bring up another EC2 image to handle load if you need it.

516.

EC2 now offering "High-CPU" VM (2-8 core) instances (aws.typepad.com ↗)

29 points · by rcoder · 18y ago · 10 comments

comment 18y ago · link · parent

Honestly, I'd recommend looking for a used Thinkpad -- something from the T41/X41 era will be cheap (<$500), well-built, and extremely well-supported under just about any recent Linux distro.

I used an X41 as a mobile development box for quite a while, and only upgraded to a MacBook Pro when I started shooting a lot of RAW photos with my DSLR and wanted to run Lightroom.

comment 18y ago · link · parent

I've been using Apache 2.2 with mod_proxy_balancer to do load balancing for PHP and Rails apps for over a year now, and had pretty good experiences with it. Since I support a lot of existing Apache servers, the configuration is easy for me to work with, and the ability to do authn/authz and SSL termination at the load balancer lets me keep the load down on my application servers.

It's probably not as fast as Nginx, but I haven't found our load balancers to be a bottleneck. In fact, we've been doing load balancing on a pair of really, really wimpy servers (Celeron CPU and 512MB of RAM) running Apache on OpenBSD for about a half-dozen different apps for the last year, and never seen the average load climb up over about 0.5, even while handling upwards of 300 requests per second.

comment 18y ago · link · parent

I agree with this in theory, but there's one big advantage to running the same distro on both workstation and server: versioning and compatibility issues at deployment time more or less disappear.

I run Ubuntu on my development workstation, and deploy to Debian servers. While the environments are almost identical, I've wasted far too many hours tracking down stupid bugs in shared libraries that only occur one one distro or the other.

comment 18y ago · link · parent

Inserting a big chunk of C++ into my Apache listeners doesn't give me warm fuzzy feelings. Neither does the fact that mod_rails just flat-out doesn't work on OS X, which is where a large number of Rails developers do most of their actual, y'know, development.

Personally, I don't think you can really call this a 1.0 release. Pre-beta preview, maybe; stable, point-oh release, definitely not.

comment 18y ago · link · parent

..and for those interested in the Wiki itself, allow me to save you the few seconds required to find the footer link:

http://github.com/meekish/collective

Looking through the source, I notice they used Defensio as a spam filtering solution. Anyone else have experience with Defensio, and want to recommend or rant on the subject?

comment 18y ago · link · parent

Quote from the original article: "[...]And the license is a generous gift from the photographer to you."

As an amateur photographer with almost 4000 CC-licensed images on Flickr, this pisses me off to no end. My images are under the non-commercial attribution-required variant of the Creative Commons license, which means that simply downloading a copy of one of them to include in your business presentation or website is a flagrant violation of the license terms.

My "gift-giving" is directed towards the general betterment of society, not lazy web designers or bloggers who don't think other people's work is worth anything.

comment 18y ago · link · parent

Flickr does have fine-grained license options on the advanced search page, and also has an "add to favorites" button. It's just above every image.

You do have to register and log in to store favorites, though.

comment 18y ago · link · parent

If you're hoping to get into web development, then you'll need to learn quite a lot of pieces of technology. For a professional, the minimum knowledge base is TCP/IP networking, HTTP, HTML, Javascript, the DOM, SQL, a bit of UNIX shell, and at least one general-purpose programming language like Python, Ruby, or PHP.

As a hobbyist, you can start smaller than that, of course. Learning HTML and a bit of Javascript is a great start -- if you can build simple client-side dynamic apps, moving into server-side scripting is a lot easier. Configuring a basic Linux server to host web applications (even if it's just a virtual machine, or a spare PC under your desk) is a big step forward, too.

As an economist who may want to do some web development, though, you might gain as much from learning a general-purpose language like Python as you will from web development. Being able to toss out a quick script to do your simulations or mine an existing data set may prove substantially more valuable to you than an in-depth understanding of PHP and Apache configuration.

comment 18y ago · link · parent

There have been a number of good app-specific recommendations below, but I think there are some more general things to keep in mind, too:

#1: Keep your system up-to-date. Your most likely entry vector is a perfectly legitimate service like Apache or OpenSSH (or even worse, some PHP application) being cracked 'cause you never installed a critical security patch.

#2: Run different services as different users. There's no reason for your Mongrel listeners, cron jobs, reverse proxy, and god knows what else to run as the same user. Basic uid/gid partitioning is at the core of good POSIX security.

#3: Never, ever trust a public web application or server with total access to your data. Use your database server's access controls to limit admin-level access, and consider running your load balancer, public applications, and admin tools on separate hosts.

#4: Find ways to prevent password storage, entry, and checking on your application servers. Read up on and understand Kerberos, even if you aren't going to use it: it's the industry standard for an authentication system that doesn't require clients to expose their password to servers.

comment 18y ago · link · parent

Google only provides the apps for free to 501(c)(3) organizations, not 501(c)(4) or PAC groups. Unfortunately, many of the groups doing (IMHO) the most interesting, progressive non-profit work aren't eligible for C3 status, since they do some amount of political lobbying and campaign work.

comment 18y ago · link · parent

I didn't find the essay insulting, but I do disagree with several of the core arguments.

I worked at startups for several years in the late-90's and early-00's, and then set off to run my own company, and discovered one unfortunate and unavoidable side-effect of self-employment that pretty much killed the idea for me: I hate dealing with all of the business BS that comes with working for yourself.

Incorporation, accounting, taxes, contract negotiations, etc., etc., all distract from the interesting work of building things, which as the original essay so rightly suggested is the #1 priority of most good hackers.

I think that there's a smaller intersection of folks who enjoy both the engineering and business sides of building software. Not everyone who like to hack on code likes the idea of picking out their own corporate structure and office carpets, just as not everyone who eats a healthier, more "primitive" diet enjoys gardening and hunting for their own wild game.

comment 18y ago · link · parent

I'd work on a free, secure set of tools for the IT needs of non-profit organizations. Hosted and LiveCD/appliance deployment options, and containing a full, truly usable stack for CRM, fundraising, event planning, and publishing.

There's interesting work going on in the problem space, (CiviCRM being the 500lb. gorilla) but no free turnkey solutions I know of. Some organizations literally have to beg to scrape up the money for a basic web hosting account, so monetization of the platform would be tough.

comment 18y ago · link · parent

I've seen a number of resumes which significantly over-stated the experience someone had gained while self-employed, but it's difficult to verify what the person accomplished without being able to contact clients and/or coworkers.

Just don't over-state what you did, and try to stay in touch with any collaborators or clients who could serve as references, and I see no reason why a startup can't be a great piece of experience to put on your resume.

comment 18y ago · link · parent

After several years of using ThinkPads running Linux and BSD for mobile work, both my X24 and T30 died within a few weeks of each other. I thought about it for a couple of weeks, then bought a mid-spec MacBook Pro (Core 2 Duo, LED backlight, okay RAM/HD specs).

It cost about five times as much as I'd ever paid for a laptop, but I haven't regretted the decision for moment, even though functionally, I don't use it for much more than I did my old Linux systems. (The only exception for me is Adobe Lightroom, which by itself had previously been reason enough for me to keep one Windows desktop machine sitting around.)

Why, after gaining all my hard-earned knowledge and credibility shoving Linux and BSD onto poorly-supported machines, would I shell out the extra money for a "trendy" machine? Simple: I got sick and tired of wasting my time trying to make my f'ing machines work.

Instead of fiddling with xorg.conf lines, or downloading proprietary wireless card firmware, or manually twiddling the list of modules to be loaded and unloaded on suspend, I have spent the time in which I've owned the MBP actually doing work. That alone is more than worth the difference in price, especially since that difference actually wasn't very substantial.

comment 18y ago · link · parent

I've said as much in the comment thread on the basic article, but basically all of the limitations baked into the SDK boil down to one primary lesson: Apple thinks that they, and only they, can and should decide what software will run on the iPhone.

If I were an independent developer on the Mac platform, I would personally see this as a slap in the face. Indies spent years keeping the Mac alive as a viable platform while the big vendors ignored it. Now, Apple has chosen to give preferential treatment to the same enterprise and entertainment concerns that once shunned them.

The losers will be the indies, hobbyists, open source developers, and everyone else whose labor kept the platform alive through the dark years.

I've been buying Macs for almost 15 years, but my current system will sadly be my last, unless Apple stops showing such contempt for the intelligence of their own long-time supporters.

comment 18y ago · link · parent

If you don't have an idea burning a hole in your brain, and can pass up the extra income, at least for the moment, you might consider contributing to one or two open source projects.

It'll give you exposure to a new code base, earn you some community good-will, and be a genuine differentiator when you do go looking for that new startup/consulting/whatever gig.

comment 18y ago · link · parent

Color me the unimpressed.

Anyone writing an article promoting the use of threaded concurrency and using PHP as an example of threading done right obviously doesn't know what they're talking about. PHP has basically zero support for threads, and historically has basically barred you from using the threading MPMs in your Apache setup, too, since so few extension modules were thread safe.

Even worse, he obviously has some trouble understanding the relationship between threads and processes in any modern multi-tasking OS, which leads him to say silly FUD-esque things about processes being unable to effectively utilize multi-core systems.

Threads are just processes that share some state. They offer no inherent performance advantages over plain processes in a "shared-nothing" architecture, unless your bottleneck is copying of data between processes on a single machine.

A fully-threaded Rails stack would kick ass for one reason: RAM. Instead of having 6, 8, or more 100+ MB Mongrel listeners, you could have a single 150-200 MB process with only one copy of its shared state, loaded libraries, etc.

comment 18y ago · link · parent

I use a MBP at home, because there's nothing within a light-year of Lightroom (or Aperture, which is pretty much an equivalent package) for RAW photo workflow. If it weren't for that single piece of software, I could switch to Ubuntu/Debian full-time and be quite happy.

When I'm at work writing code, it's 98% Linux, with occasional compatibility testing on a Mac or Windows system. Apache, Vim, Ruby, and PostgreSQL all run just as well on Debian as they do on a Mac, and a lot of other packages work much, much better -- plus, they're just an 'apt-get' away.

comment 18y ago · link · parent

I'm not sure where you've been interviewing, but from my observation, a newly-minted CS grad is significantly more likely to get an interview for a programming job than an autodidact with a couple of years' experience, at least at most larger companies. If you don't get an interview, it's tough to get hired.

It's worth remembering that someone has to pick your resume from the pile before you ever get in the door to have your intelligence tested. For a recruiter or HR person without a strong technical background, the name of an institution where an applicant earned their degree jumps out a lot more immediately than tidbits like "taught myself Ruby and wrote a point-of-sale system" or "built RPC bridge between Java and Common Lisp for desktop GUI apps."

Now, if the folks screening resumes are themselves hackers, your screening process will make selections based on much more useful criteria.

comment 18y ago · link · parent

Not necessarily. Demand in this market is for competent programmers, not graduates of US schools' CS programs. The two may be correlated, but they're the latter certainly does not guarantee the former.

If fewer and fewer CS grads are entering the market, it may force interviewers and companies to (gasp!) evaluate candidates on the basis of traits other than the name of the university they attended. We might even see crazy suggestions like hiring based on intelligence and experience gain some traction in the IT management field.

Personally, I consider this good news for me, as a non-degree-holding IT professional. Fewer graduates in the hiring pool means more call-backs for interviews and fewer glass ceilings.

comment 18y ago · link · parent

Think of the security implications of allowing anyone to run any language on their server. It doesn't matter if it's PHP, Ruby, or C++, since they all allow shell and filesystem access, unbounded recursion, and all the other goodies that make sandboxing interesting.

The trick would be to run PHP as a command-line scripting language, just like the others.

comment 18y ago · link · parent

So, you're basically proposing that people voluntarily opt-in to a world-wide database of email address/topic-of-interest pairs?

No way. Absolutely, no f-ing way would I ever let my address get in there, and I would strongly advise against any of the users I support ever volunteering such information either.

If you're truly seeking interested parties to email about a topic, a few minutes spent on Google should let you find folks who blog, post to public mailing lists, or otherwise mark themselves online as interetsed in that area.

The only value to a fully machine-readable database of the sort you describe would be for lazy cold-calling salespeople and spammers/phishers...though the separation is really only one of degrees.

comment 18y ago · link · parent

That's just a semi-public form of greylisting. Greylisting works fine, but a large number of spammers have definitely figured out how to get around it at this point.

comment 18y ago · link · parent

This is absolutely right. Options are a lottery ticket, and nothing more.

My brother is currently working an awful, low-paying job with a startup because he has visions of a big stock payout dancing in his head. They continue to nurture and encourage those visions, despite having no prospects for an IPO, and only marginally more for a buyout.

1
1516171819