Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

6631.

What happens to an iPhone left in a hot car and other interesting stories(neosmart.net ↗)

2 points · by ComputerGuru · 14y ago · discuss

comment 14y ago · link · parent

Does anyone have any good resources on how Linux LXC compares to BSD Jails from a security perspective? I've long been a fan of BSD jails because of how simple the security model is to understand, and how secure they've been in practice. Jail has long been a killer feature for BSD and very, very good reason to use a BSD-derivative for web servers, etc. as you can run each and every service that has the potential to be compromised in its own jail to minimize the overall risk; whereas the best Linux had to offer has traditionally been a chroot'd environment, which while good, has absolutely nothing on a BSD jail.

I'd imagine that LXC has the potential to change that, though I presume it'll take some time for a) adoption to increase and b) for it to prove itself after that.

comment 14y ago · link · parent

If I'm not mistaken, the only reason you don't have to shift a reverse gear is just because there's only one of it (you're not supposed to be able to do 150mph in reverse in a car that can do 150mph normally).

If you had a one-speed car, you wouldn't have to shift gears if you were in "forward," either.

comment 14y ago · link · parent

I don't know about the Middle East. I've flown on just about all the Middle Eastern airlines over the past 7 years, I don't think I've seen a single one that permitted smoking.

comment 14y ago · link · parent

I see a lot of posts regarding gold-digging and motives - and I just want to say that if there's one person you can marry knowing what their true intentions are, the only thing better than a college girlfriend is a high-school one :)

(Kinda like Mr and Mrs Obama)

comment 14y ago · link · parent

In case I'm not the only one who wondered: South Korean, not North. I remember maybe 10 - 15 years back there was some kerfuffle about North Korean scientists being outed as experimenting with cloning humans, so this was the first question that came to mind.

I'm also pretty sure this was previously posted on HN. The news is from a few months back: http://www.wibc.com/news/Story.aspx?ID=1689899

comment 14y ago · link · parent

This is very off-topic, but then again, the entire thread more or less is. So with that disclaimer: does anyone else think he looks like a much, much slimmer, younger Michael Caine?

comment 14y ago · link · parent

Ah, of course. In my line of work 999 times out of a 1000, MS is Microsoft ;-)

The other 0.1% would be multiple sclerosis.

comment 14y ago · link · parent

Maybe I'm being really thick here, but what does MS have to do with this?

comment 14y ago · link · parent

Not exactly - you're right about most of what you said, except the constitutional rights/bill of rights. The Bill of Rights defends individuals against the federal government, and did not originally apply to State governments.

One by one, the amendments have been/are being slowly incorporated to protect individual rights against State governments as well, as the result of Supreme Court rulings: http://en.wikipedia.org/wiki/Incorporation_of_the_Bill_of_Ri...

To date, the first, second, fourth, partially fifth, (by and large) sixth, and partially eight amendments have been incorporated, i.e. apply equally to both State and Federal governments. The 2nd (the right to bear arms) was the most recent one, incorporated in 2010 here in Chicago.

comment 14y ago · link · parent

If you give it to charity, you get to deduct that amount from the taxable total, so that's an invalid point.

comment 14y ago · link · parent

It takes one bad apple to ruin it for the bunch, as they say.

That said, I lived and worked for a few years in a country where IQ tests were the norm for hiring people. When hiring for my own team (C++ devs), I did not use them as I found they were a very poor filter with both high false positives and high false negatives in terms of indicating whether or not you should hire a particular person.

comment 14y ago · link · parent

Not true. Many STL distributions have a compile-time flag you can set to disable all exceptions. Otherwise, there are entire STL distributions you can compile against that are exception free.

See here for many solutions: http://stackoverflow.com/questions/553103/can-i-disable-exce...

comment 14y ago · link · parent

Basically, all ARM Windows machines will have an encrypted boot loader. The concessions you might have read about are for secure boot on other systems.

I haven't been able to test it myself yet, but some of my users tell me that EasyBCD is able to work around this issue.

comment 14y ago · link · parent

I don't know about the spec, but in practice, you never get the referer data even when traffic flows from HTTPS to HTTPS.

comment 14y ago · link · parent

It's a little-known fact that CloudFront supports GZip just fine, so long as you're using pull from custom origin (like most people are).

You just need to configure your origin servers to serve GZip even to HTTP 1.0 (which is what CF requests will come as) and set the "Vary: Accept-Encoding" header to prevent users of old IE versions from having GZip'd content they don't support stuffed down their throats.

For example, this is my nginx configuration which serves both GZip'd and non-GZip'd versions of the same objects via CF. The second and third lines are the most important for correct AWS CF GZip distribution:

    gzip  on;
    gzip_vary on;
    gzip_http_version 1.0;
    gzip_comp_level 4;
    gzip_proxied any;
    gzip_types      text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/png;
    gzip_disable    "MSIE [1-6]\.";
Note that "image/png" is only in there because Google PageSpeed is very stupid and marks not GZipping PNG files as a "bug" because I can save "up to 1%" by employing GZip on PNGs.

comment 14y ago · link · parent

We regularly test on AMD chipsets (even really old ones). It's a matter of tweaking the optimization profiles, instead of selecting max for everything.

comment 14y ago · link · parent

We've been using a solution/workaround for ages because it was obvious MS was never going to play ball.

Just install ICC (the Intel compiler). It hooks into Visual Studio, is a better compiler for both C and C++ than MSVC, works really well, produces really fast binaries, and does all its magic in the backend. Nothing changes for you, the developer.

It's both free for non-commercial development and paid for commercial dev, which makes perfect sense to me.

comment 14y ago · link · parent

I have no problem with SO mods closing topics (the quality of new posts has really gone down as SO gains popularity), but I do have a huge problem with them permanently deleting closed topics after some time.

Some of the most popular posts on SO with thousands of hits a day linked to from all over the web have been permanently removed with no official archived location. They're throwing away years and years of community posts and comments, with some very valuable info and data in there. It's really sad.

comment 14y ago · link · parent

http://ideone.com is far better, with support for way more languages, including C++, LLVM, C#, brainfuck, and every other language on the planet. Oh, and it doesn't require registration.

comment 14y ago · link · parent

Team Leaders. Even if a team was more smaller teams :)

C/C++ Team Lead, Web (C#/ASP) Team Lead, QA Team Lead, Design Team Lead, and The Boss (startup CEO).

comment 14y ago · link · parent

Oh they did. I was a developer/architect, did more developing than any of the developers and more architecting than any of the architects.

However, not all the "architects" (mind you, none of us actually used that term/title) were developers. We had the head of the QA in charge of testing and real world deployments on the team, as well as the lead interface designer. Their feedback helped to find a solution that would be both feasible and user friendly.

That's why I said the developers would work on the prototypes.

comment 14y ago · link · parent

I suppose (judging by the comments here and in previous threads) everyone on HN w/ a brokerage account will be shorting FB's stock as soon as it comes out, then?

It's a pretty safe bet that it's being overvalued, but I fear the hype of FB stock amongst the common man is going to keep the price artificially high for a little longer than it would normally. Might not be until the release of the first or second quarter results that people see what a farce it is.

comment 14y ago · link · parent

At my old job, the other architects and I would spend days researching on our own, then lock ourselves up for days in a glassed meeting room with nothing but a notepad and a whiteboard and lots of coffee as we debated all the various methods we'd discovered, pointed out the flaws in each others' approaches, picking one person's research of choice and seeing how far we could push it and when/where/how it would fail in an attempt to reach the best solution.... then do more research, get some developers working on prototypes, and repeat the whole thing all over again in two weeks' time.

All I'm saying is, it's not necessarily hubris. Too often you find half-baked or half-researched ideas that work in theory but not in the real world or the opposite (being things that work great but in practice could only ever be used in that particular application). You need to look into what transpired before and after those 8 hours meetings before coming to that conclusion (not saying you haven't).

comment 14y ago · link · parent

Don't be silly, the principle is sound.

    #ifdef _DEBUG
    typedef BasicLinkedList LinkedList
    #else
    typedef XorLinkedList LinkedList
    #endif

comment 14y ago · link · parent

It basically only affects PHP as CGI (one PHP CGI process is started and stopped for each request). Anything using an alternative communication channel or API to process requests between frontend and backend is safe (for now).

comment 14y ago · link · parent

This vulnerability is about as bad as it gets, and my heart stopped while I was reading the intro (it's so trivially simple to compromise a site).

Then I reached this sentence, which I felt needed to be bolded and underlined:

A large number of sites run PHP as either an Apache module through mod_php or using php-fpm under nginx. Neither of these setups are vulnerable to this.

<insert immense sigh of relief>. Thank God.

That said, some blackhats are going to be really sore that a backdoor that's been wide open for "at least 8 years" is finally being closed.

comment 14y ago · link · parent

I understand, but (to me) graceful degradation isn't using a noscript tag to explain why you need JS, but rather implementing your site JS-free from the ground-up, then developing JS-based improvements that are loaded into the site for maximum grace and compatibility.

It may be different for me since I've been deploying JS/AJAX on a number of eCommerce sites where you really don't want to lose even a single customer, I suppose. The basic site is designed without any JS, then if we're able to load JQuery and the browser meets our requirements (for instance, we just disable JS on any IE6 or below browsers), it'll load up nice features such as JS presentational effects, AJAX form submission, etc.

EDIT: There's isn't a "budget" for this, it's really minimal extra work.

1
221222223
277