Better HN
topnewbestaskshowjobs
Log inSign up

function_seven

15,501 karma · joined Jan 22, 2011 (15y ago) · 3,183 submissions

Submissions

comment 11y ago · link · parent

> Today I could probably identify almost all the states ...

I just tried this myself and (barely) got them all right. Had to guess between NH and VT, and was somewhat shaky around AK, MS, and AL.

comment 11y ago · link · parent

> Why does wanting the commission also entail not helping your audience? You're making a conclusion that isn't valid here because you assume that 100% of affiliate links (because they are placed to earn money) add no value for the visitor. Smart affiliates know that if you want the commission, you have to make it valuable.

I think you may have accidentally skipped this part from codingdave's comment:

>>> What I mean by this is that whatever your site is, if your audience has a legit interest in specific products, and the next logical step in their personal workflow would be to buy something, go ahead and put in some affiliate links. It makes sense, and everyone gets what they need/desire.

comment 11y ago · link · parent

Nice! I'm convinced now.

comment 11y ago · link · parent

> Then we form a bijection (x, y) <-> x/y and we see that there are as many pixels as rational numbers.

I don't think that works, though. Take for example these two coordinates:

    (30, 75)
    (90, 225)
Those would both map to the same rational—2/5—and that would make it not a one-to-one mapping.

comment 11y ago · link · parent

You may be right, that this is a solid plan. I should have been clearer in my original post that my complaint isn't with the position the writer holds. In fact, if I were a resident of Vancouver, I'd probably vote yes on it.

My problem is with the article's attempt to present their side as a fact; that the existence of opposition must be due to some defect in humanity itself, rather than a reasoned stance. It's very patronizing and doesn't help to convince those that need convincing.

When people have a general distrust of the handling of their tax dollars, they often have experience that informs that distrust. One should not summarily discount and ignore that sentiment if they're looking to raise funds.

comment 11y ago · link · parent

This is a terrible attempt to disguise a position piece as some sort of insight into the psychology of voters. It presupposes that the tax increase in question would be a strict positive for the populace, and argues based on that premise.

Maybe the "no" voters see it differently? They're probably dubious that "the mayor’s plan will shorten commute times on Vancouver’s most congested roads by 20-30 minutes per day, while transit riders will save up to half an hour."

> A report by HDR Consulting found that, even after the sales tax, the average family can expect to save about $360/year.

I'm going to bet that HDR Consulting was smart enough to provide the answer their client was looking for.

I know I sound cynical here, but this article takes campaign-style promises at face value, then cries, "Why can't they just see what's better for them??"

comment 11y ago · link · parent

How large is the write? A byte? Or 8 bytes for one 64-bit word? I can't imagine that would impact the user in any way, unless I'm not thinking this through...

comment 11y ago · link · parent

No it doesn't. The "use strict" declaration must occur before any other statements, allowing the parser to look specifically for those bytes, and treat it as a separate token instead of as a string. It doesn't have to inspect the contents of all strings.

comment 11y ago · link · parent

The trackballs on the BlackBerries were absolutely perfect... until some tiny amount of dirt/oil/etc got in there. Then they were glitchy little bastards.

I also have the Logitech Trackman. I swear by it, and will never go back to using a mouse. I started with the wired version, then reluctantly bought the wireless model when I needed another one. The wired sells used now for $300.

FYI, Pledge or similar furniture wax works wonders on the trackball. I pop mine out every couple of weeks and give it a good waxing.

comment 11y ago · link · parent

This is actually in reply to d--b, who appears to be hellbanned.

d--b, you're hellbanned for some reason. FYI.

comment 11y ago · link · parent

> Some people may even switch off their phones when they will come to know that they are getting tracked.

They don't need to count each and every person to determine relative wait times, as long as the portion of wifi-enabled travelers is roughly the same in each area.

> Another reason for their system's inaccuracy is - not many people use airport wifi. Most of us have data plans.

You don't have to be connected to the airport's wifi for this system to work. The phone's wifi radio just has to be turned on.

comment 11y ago · link · parent

I forget where I got this from, but this is how I remember it:

    tar -xzf # eXtract Ze Files!
EDIT: I missed chadzawistowski's similar comment below

comment 11y ago · link · parent

This reminds me of multiplying two random numbers...

    super_random = rand() * rand(); 
...in an attempt to make it "more random". You end up destroying the distribution and making the output a little more predictable.

Except in this case, it took knowledge of the implementation to determine that raw SHA-256 output cannot be safely password_hash()'d.

comment 11y ago · link · parent

The full-featured product is $10 regardless of how much storage you're using. If my requirements are for 1GB, then my price is $0.01 a month.

comment 11y ago · link · parent

I have a feeling we'll find out that the cable companies need HBO more than HBO needs the cable companies.

The cord-cutting trend has barely just begun. Television five years from now will be a completely different landscape than it is today, and the change from now to then will make what has happened over the past five years look like barely a movement.

comment 11y ago · link · parent

Looks like I had it backwards. It's the other items that pass through the USB C port.

http://store.apple.com/us/product/MJ1L2AM/A/usb-c-vga-multip...

I wish the power adapter itself would also have the passthrough.

comment 11y ago · link · parent

I will guarantee you that their charger will have a port on it to pass through. Still awkward, but I can't imagine that they'd force users to choose between data and power on that one port.

comment 11y ago · link · parent

Not really anymore. Google forked part of WebKit to create Blink[1], and both Safari and Chrome have their own optimizations.

I'm not sure how close to each other these rendering engines are. I imagine they're still very very similar, but now that the fork has occurred, time will tell how divergent (or not) they become.

[1] http://en.wikipedia.org/wiki/Blink_(layout_engine)

comment 11y ago · link · parent

Or you're lucky. One time a friend of mine was describing his fool-proof plan to win at Roulette. I jokingly asked, "What, double your bet when you lose?". He replied—in all seriousness—"No, triple it!"

I then argued with him about the money he would likely lose implementing his plan. He said, "what are the odds the ball will land on red five times in a row?". (We were ignoring the existence of the green 0 and 00). I took out a quarter, flipped it seven times, and it landed heads every time. This happened straight-away.

That was a random sequence, it was all 0s, and I'd like to think he was lucky that it happened that way, and convinced him to abandon his plan.

But I was also lucky. I had intended to demonstrate this, and was prepared to be flipping the coin hundreds of times until the run of 0s came up. You could say I was predicting the next result correctly 100% of the time on those first 7 flips. But my ability to predict the results didn't show their non-randomness, instead it showed my "luckiness". Which really means they weren't predictions at all, I guess.

comment 11y ago · link · parent

Yeah, it's not a benefit, except if the challenge-giver makes a mistake and offers a file that happens to have nicely-compressible characteristics. Basically you're spending $100 on the hopes that the file you're tasked with compressing just happens to have low enough entropy that it can be successfully compressed by more than the decompressor's size.

Not a good bet to take.

> my point is that this is not information-theoretically relevant.

Exactly. This whole post is about the challenger trying to be clever with the rules and trying to sidestep the core information theory.

comment 11y ago · link · parent

I would say it's not. But I bet you if you came up with a replacement alloy that had the same exact texture and color as gold, people would not knowingly pay the same money for it. Just like lab diamonds can be grown to look even better than mined diamonds, the fact that they're from a lab still (sadly) diminishes their value.

comment 11y ago · link · parent

> Does the decompressor have to be wholly hosted locally? Could it just be a shim that pulls a more complex program from the net?

The judge can disconnect his computer from the Internet, attempt to run the submitted decompressor and file, and declare failure when it doesn't work. Nothing in the challenge guarantees Internet connectivity on the machine.

> Does a decompressor that depends on linked libraries count? Do things like libc count towards the total decompressor size?

Nope. In the email exchange, Mike said that just a script that called out to gunzip would be fine, and that he'd only count the size of the script as the decompressor size

> Where do you draw the line? Can any decompression code call an external dependency and not be disqualified in the same way?

Yup, as long as the dependency is already on the machine I suppose.

That's what's so enlightening about this challenge. Even a tiny, tiny script that calls to other programs still can't compress a "pathologically" random file by more than a few bytes.

comment 11y ago · link · parent

> If you intend to treat different inputs differently (e.g., "if it contains the string "AB", I'll use this algorithm, if it has more zeros than ones, I'll use this other one, etc"), this just means that your compression procedure contains some 'if' statements. The laws of information theory don't care whether your compression procedure is actually a computer program or just implicitly encoded into human actions; it's still impossible to reliably represent random data with fewer than the usual number of bits.

While you're obviously correct about the information theory aspect of this, in this particular challenge, the contestant enjoys the privilege of pruning his decompressor to match just the one file. All the other "if" statements can be thrown away. So now a lossy algorithm can be used, that just happens not to be lossy on that one particular file.

comment 11y ago · link · parent

> that you could fit the gunzip binary in the reduced space

What's funny is that Patrick (the challenger) asked if a bash script consisting solely of a call to gunzip would suffice as the decompressor. In other words, all he had to do was compress the file by more than the amount of the script. Mike allowed it, knowing that even a tiny "decompressor" that really just called out to the real thing, would still be larger than the compression achievable on a well-crafted random blob.

comment 11y ago · link · parent

> If Goldman wants his file to be random, any random file should do. Why does he want exactly his own random file?

Maybe because the file was XOR'd with a secret one time pad?

comment 11y ago · link · parent

For the constant stopping and starting these vehicles do, it does seem like electric would be perfect. How many miles a day does a typical mail delivery truck run? Let say the overall average speed of the truck through out the day is 10 mph. That puts in in the ballpark of 75 - 100 miles/day. Given that it's all stop-start movement, that would probably exhaust the battery pack that comes with the Model S. Regenerative braking would help, though.

Seems perfectly doable. Feel free to correct my napkin math. I could be off quite a bit but Fermi-wise I think I'm good.

comment 11y ago · link · parent

The irony is that it is rare for children to be snatched off the street, yet that is what these helicopter parents are afraid of.

Likewise, it is rare for parents to be found neglectful when allowing their children to walk alone, yet that is what we HNers are screeching about.

The linked news story is news because it is a rare event. Hundreds of thousdands of kids walk alone from/to school each day and don't get the cops called on them.

comment 11y ago · link · parent

Well it's back up now. SO looks like it has a Wikipedia problem[1].

[1] http://www.themarysue.com/wikipedia-losing-editors/

comment 11y ago · link · parent

Not all the money goes to the retailer, but some of it does.

> Retailers can collect a cut of CEC’s $320 fee each time they present an offender with the option of signing up for the program—a form of restitution, said Caffaro, which usually ends up being around $40 per case.

1
99100101
107