Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions

Submissions

comment 10y ago · link · parent

Ah, yes. Conveniently ignoring the downright questionable approach for installing Windows 10 in the first place. I'd bet a lot that a significant number of the people who are "running" it now did not actually request the upgrade. How many people may not know how to get rid of it, or have other new problems?

comment 10y ago · link · parent

Yes, cyclists are frequently invisible. No, drivers should not have to put up with this when cyclists are not doing their part. (No, I have never hit a cyclist.)

Here's a starter list of the basic problems with cyclist behavior:

1. Not taking even the simplest steps to be visible or safe. Install a lamp! Wear clothes that aren't pitch black at night! Position yourself where cars will see you instead of "hiding" off to the side!

2. Outright ignoring road rules. Yes, cyclists MUST stop at STOP signs and they MUST not go through red lights (unless a sign says they can follow pedestrian lights). And yet, every single day, I see multiple cyclists doing what can only be described as "whatever the hell they want".

3. Exceeding boundaries. No, you may not ride side-by-side with someone and take up twice the space and cramp the traffic lane. Yes, you are still a jerk for "cutting off" someone even if you do it with a bicycle. I don't care if you're approaching another cyclist and want to pass, that doesn't give you the right to shove yourself in front of a car to do so; wait a while!

4. Not using side roads. A great way for cyclists to stay safe is to minimize the traffic that they actually interact with. Cyclists DO NOT have to use main roads all the time. In my area, there are miles of parallel side streets that go all the same places as main roads, yet cyclists clog up the busy roads and leave the side streets empty!

5. Forcing everyone to go their speed. Many times a week I see a cyclist squeeze in front of two cars and make them go 15 mph for a mile, instead of waiting 2 seconds to let them go first. If you're going to use a slow-moving method of transportation on a highway, you should have the basic decency to at least put yourself in the most considerate part of the queue where possible.

comment 10y ago · link · parent

If you have a dictionary "d" somewhere with the keys that should become keyword arguments then this would work:

    f(**{x:x for x in d})

comment 10y ago · link · parent

For all the effort that browsers go to in order to make sites "scary" when there are bad certificates, etc. I would love to see a big, red, scary page that says "you are loading a web site that is consuming an unreasonable number of resources, are you sure you want to continue?". Make that the default, make the warning limit 400 K, and watch web sites (complain first, and then) change.

comment 10y ago · link · parent

Yes. My point is to consider what is actually required before making complex structures. It is often perfectly acceptable to combine two existing types and handle what few interactions they actually have.

comment 10y ago · link · parent

Just use two parallel containers: one for names, and one for values. It is dead simple to check that they have the same size and iterate over both simultaneously where needed. And the best part is, for code that does not actually require both pieces of information, you can pass one of the lists and pretend that the other does not exist. Code that only knows how to visit values only has to deal with values and not weird hybrid name/value elements.

Seriously, always try the simpler thing first. Do not go deeper into templates and special syntax before seeing if any other construct will do the job.

comment 10y ago · link · parent

It may be an easy mistake to make but using None is more consistent and efficient to detect. You can use "if x is None:" for any type; whereas, a function may or may not want to allow empty strings (or even empty lists) and it is easy to use a None check to decide when to apply the desired default.

comment 10y ago · link · parent

Well the most obvious way is to contribute to topics that most of the industry seems to work on, which is the frustrating truth.

For every ten thousand JavaScript questions worth 200 points each, there is a single well-thought-out answer on an obscure topic requiring a lot of knowledge and experience with a score of about 2.

What the system needs is a "difficulty" measure of some kind to encourage people to contribute across the board.

comment 10y ago · link · parent

A fantastic article.

When there is no penalty for over-consumption and it is far easier to do the stupid, inefficient thing, then the stupid, inefficient thing will be done.

To really combat this problem, we need:

- Good tools that ensure the easy thing is also the optimal thing.

- Penalties for pipe abuse (e.g. web browsers that make it really easy for users to see the Wall of Shame with the web sites most responsible for gobbling up their data plans and batteries). Sadly the only thing I have right now is the OS X app-shaming model that points out high-energy apps, and then Chrome or Firefox or Safari get all the blame for what is clearly the web sites themselves.

comment 10y ago · link · parent

One big reason is because the whole world runs on prior work. We have cities full of things built before we were born. We are only able to do what we do now because of massive amounts of work by millions of people who probably did not foresee what all their efforts would lead to. Should we be forever obliged to funnel millions of dollars to the estates of the dead because they contributed (like so many others) to the success of today's products?

The current system unreasonably rewards arbitrary subsets of the total group of people responsible for making useful things. It also manages to include essentially middlemen in the rewarded set.

comment 10y ago · link · parent

It's frustrating that sales of a product can somehow be up for grabs over disputes in a mere component of that product.

No matter how good your idea or, ahem, sorry, "intellectual property" is, if you don't know HOW to turn it into a multi-billion dollar product or you don't have the means to do so, WHY should you be able to sledgehammer your way into lots of money when somebody else becomes successful? If anything, years of inaction on your "idea" proves that the idea has NOT been worth all that much to you.

Meanwhile, there could be literally thousands of unique components in an iPad, the products of tens of thousands of brilliant minds, many of whom get virtually nothing. Heck, I give more credit to the tertiary industries such as the people delivering the iPhone packages to my door, than I do to any owner of a patent for a product that they didn't build.

comment 10y ago · link · parent

The description of P and Q values as mere 32-bit constants makes it sound like any value would be feasible and that these would be easily selected. They actually hold the two chosen points on the elliptic curve.

Also, since these are part of the public-domain knowledge of the system, it is reasonable to expect that the values might even be built into hardware in the field, etc. and not easily changed. It might be much more feasible to revert to an earlier value if the original value was already stored somewhere.

The real problem with DualEC-PRNG is that if P and Q were somehow related, you wouldn't know this by looking at them and knowledge of the relationship would be restricted to the issuers (in the case of the "recommended" P and Q values, the NSA; in the case of Juniper, their own employees). The hidden relationship could be used to deduce the output of the generator and therefore deduce any keys based on the now-predictable values.

comment 10y ago · link · parent

The really sad thing is that these are the kinds of issues that Apple could change in about 2 days with a couple of developers. App Stores lack some simple concepts that would go miles toward making developers more money, such as:

- If the app costs more than $0.99, it can be downloaded for the tryout price of $0.99 and returned within 2 days without paying more. If you keep it any longer, you pay full price (e.g. $6.99 or whatever).

- If the app costs $0.99 or less, purchases are final.

- Developers can charge for upgrades from a previous version, not exceeding 25% of the original purchase price.

Maybe there are rules that would be better than these but seriously, why aren't there at least options like these?

comment 10y ago · link · parent

One of the bases for security is the age of a program. All other things being equal, the implementation that has been around the longest is expected to have fewer issues than the shiny, new thing (because the old program is well-understood, has been patched to death, considers a thousand corner cases, ran on more hardware, more time passed without any issues, etc.).

As such, changing away from well-known compilers and language behaviors may not be the wisest thing for security.

On the other hand, extending existing compilers to restrict behavior seems reasonable. Also, by all means document the hell out of the things that are not well-defined.

comment 10y ago · link · parent

While online ads consume substantial resources (energy, etc.), traditional ads did as well. Consider the cost of printed pages, or even making your TV run for slightly longer than it otherwise would because your TV show lasts 30 minutes with ads even though it would last 22 minutes with no ads.

An interesting environmentalist argument would be, to ask everyone to pay more to producers of all kinds (online or otherwise), to prevent the "need" for extra resource consumption on any medium.

It "should" be an easy argument because people are clearly already paying for ads, they just don't see how. For instance, your electric bill would go down if you knew your TV would run for a half hour less every day.

comment 10y ago · link · parent

Invalid references are a GOOD thing. The problem is that the C++ language does not allow sane behavior for the common case of objects going away.

The C++ language creates the impression that holding a reference is stable, when in fact it is still possible for a reference to point to bogus memory (same as a dangling pointer). The C++ reference starts out on the right track with some nice compile-time guarantees like required initialization but then messes everything up by being immutable. The memory can be deallocated, and people with references are screwed; they cannot possibly change their own state to reflect the fact that the object is now gone. And C++ has some inconsistent hacks, such as the fact that a "const" reference to a temporary object will prevent object deallocation until scope exit but this is not the case for other uses of references.

Compare that behavior to something like Objective-C's "weak" properties, where ANY weak pointer to an object is set to 0 when the target object is destroyed. This guarantees that the property values will have one of two values: a pointer to valid memory, or "nil"; never a bogus pointer. In addition, Objective-C ignores messages sent to "nil". While clearly this can still create hurdles for debugging, it is fantastic for end users because the program itself is quite stable. The language created facilities for making invalid references hard, and mostly eliminated the penalty for screwing up.

comment 10y ago · link · parent

The best icon is one you can opt-into. Don't eliminate them.

For instance I liked OS X's original toolbars, in that you could easily shift between modes that displayed text or did not display text. (Then they entered their phase where toolbars couldn't be customized and all icons were the same shape, which is far less sensible.)

comment 10y ago · link · parent

On which platform?

Seems to me that OS X El Capitán pretty much quiets a CPU in a background program, especially if the window is not even visible.

Having said that, it would be nice if they tone down the pointless animation in web pages or web-like interfaces.

comment 10y ago · link · parent

The idea that a government would give itself permission to spend massive amounts of money isn't news.

The tucking of unrelated legislation into the budget however, is news, especially since it had been vehemently opposed over and over in every previous version.

Guess which part is reported in detail.

comment 10y ago · link · parent

I wonder if a story like this would still be considered newsworthy if they were forced to make all statements generic, such as "Political Campaign Staffer Disciplined for Accessing Another Campaign's Data".

If not, then why report it?

If still worth reporting, and if people were forced to think on the information only in the generic terms available ("how should we act upon this and other data breaches?", "does it matter if some campaign has access to another campaign's information within the same party?", etc.), then what would come of it?

We should hope for just enough information to understand what happens in the world but not so much information that emotions and irrelevant details take over the discussion.

comment 10y ago · link · parent

These days, there are a few things I would prefer to see from Boost...

1. A "mini-boost" that splits off some very basic things like string algorithms that are still not in the standard, while specifically excluding the heavyweight components.

2. Formal deprecation and eventual removal of some components, as C++ standards are finally getting their act together. For instance, no new code should probably depend on BOOST_FOREACH(), and I would think that the main issue with objects like boost::scoped_ptr<> is the dependency on boost names (but functionally, they ought to work when replaced by standard versions now).

3. Merging of standard components and boost extensions. For instance, if there is anything that boost::foobar does better than std::foobar, keep boost::foobar but migrate the implementation to be in terms of std::foobar (with new behavior on top) so that boost-extended code can integrate more cleanly with code that uses standards only.

comment 10y ago · link · parent

I generally like it but I definitely don't like some of its apparent integrations.

For instance, I search for recipes a lot. And Yummly "wrappers" seem to come up a lot on DuckDuckGo, often barely acknowledged as being Yummly. I don't know what Yummly is but it just seems scummy...it seems to wrap pages that I know are clearly recipes on other web sites, yet they're made to appear like Yummly pages. Why? There's no reason for this kind of middle-man stuff.

comment 10y ago · link · parent

Since I'm trying to keep a small footprint, I rely on the system version of Python on Mac OS X, which is 2.7.10 now.

To use anything newer, I'd have to ask users to install a different interpreter, or bundle a particular version that adds bloat. There's no point. The most I've done is to import a few things from __future__; otherwise, my interest in Python 3 begins when Apple installs it.

comment 10y ago · link · parent

No, it isn't because my original iPad (a.k.a. worst ripoff of the decade) is tethered to iOS 5 and can barely do anything. In fact, the fancier web sites that try to "help" me are now more prone to crashing the browser entirely.

comment 10y ago · link · parent

Then they should have had a big fat "begin playing game" button for the browser, and turned it off the rest of the time. The user should still be in control.

comment 10y ago · link · parent

I think what works even better is to have "permission" to gradually change both the old and the new. It can drastically simplify the process of creating a replacement, if you're only replacing a slightly more sane version of the original instead of the actual original.

comment 10y ago · link · parent

I don't even know why this is an option that web sites can control.

I should be able to zoom anything I want, site "design" be damned.

It actually ruined the iPad experience for me. Early on, when you could pan and resize any part of a page, it was great; then sites suddenly decided they should "help" me scroll, choose the text size, etc. and the iPad screen ended up feeling like a penalty box.

comment 10y ago · link · parent

At some point, "defense" against a language's faults should translate to "use the right language for the job".

Any sufficiently-complex shell script can usually be written clearly as a Python or Perl program for instance, without having to worry about how the code might be misinterpreted.

Yes, I write shell scripts sometimes. I just make sure they're doing something pretty straightforward.

comment 10y ago · link · parent

Well for instance, if I see a commercial for something like Expedia I know immediately what Expedia is and how it can be used. I also know the web site name.

At the very least, Yahoo needs that type of thing: something to remind us who they are and why the hell you would visit their site.

comment 10y ago · link · parent

I'm really sick of "investors" thinking that trimming every little cost here and there is going to somehow fix things. As if they didn't have dozens of historic examples to show them what penny-pinching will do? Employees will be pissed off! The ones that stay will basically reduce their enthusiasm and valuable work output to 0%, if not actively sabotaging you by aggravating your remaining customer base with incompetence. The rest (probably the most talented ones) will leave, dooming all projects so that in 3-6 months the company will want exactly the same cuts again.

Here's a different approach: cut at least one big idea or product line that isn't going anywhere, that your competitors have long since dominated. Then, aggressively refocus the company on making the remaining products great. And that doesn't mean being cheap; indeed, they may want to hire dozens or hundreds to help the focus areas become as unique and valuable as they possibly can be. It may even be necessary to make some pitches to attract new investors around those products. And yes, keep giving those people iPhones and free food; don't be ridiculous, you need that to offset the fact that there's a dozen other places they could be.

It also sure wouldn't hurt if they could at least try to get back into the public eye. When's the last time you saw a commercial for Yahoo, or could even name what it is that they do?

1
545556
98