Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

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

Submissions

comment 14y ago · link · parent

One thing that the timeline has is a lot of unnecessary "weasel words". (Seems to be a disturbing new trend at multiple sites in the last couple of years.)

For instance, when did it become uncool to Delete things? Why can't I do that? Why do I have to "Hide" or "Archive" or "Make Unavailable in Timeline" or whatever else? Frankly, sites should always let users permanently and irrevocably blow stuff away. I shouldn't have to let mistaken posts be archived for eternity (for instance); sure no one can apparently see them, but what is the point?

comment 14y ago · link · parent

Personally I've always wanted an E-mail program that would let me edit any message in my mailbox. Why should I be forced to organize my mail according to the poor subject lines that someone else used? And given no subjects at all, I'd be even more interested in having an editing feature.

comment 14y ago · link · parent

You don't write good code or make compelling arguments by taking extreme points of view. Everything has flaws (and by the way, so does hardware; those bugs can mess up "good" code very nicely).

It's your chosen subset of features and available techniques that decides whether or not you are a good programmer who can be trusted to build something important in an efficient and maintainable way.

Parts of these rants sound like project managers who can never figure out when to blame themselves, too. If your code was butchered because someone misused a programming language then you didn't assign the right programmer to the task or you didn't set expectations properly (or heck, maybe you just didn't pay enough). It's never as simple as "this language sucks".

comment 14y ago · link · parent

I can only assume it has something to do with increasing the number of unique ads displayed. But I usually "reward" such sites by leaving and never coming back, so I suspect it backfires.

comment 14y ago · link · parent

Note that the "beep" terminator is antiquated; xterm relies on a universal string terminator of an escaped backslash, i.e. "\033\\" in this syntax instead of "\007". (Also nicer since it won't beep in terminals that don't support it.)

The "0;" means "set both icon and window title"; you can also make this "1;" to set the icon title only (i.e. when minimized) and "2;" to set the window title only (i.e. when not minimized). For example:

  printf "\033]1;icon title\033\\"
  printf "\033]2;window title\033\\"
If your terminal supports this, you'll see "icon title" when the window is minimized (e.g. in the Dock on Mac OS X) and "window title" otherwise.

If you want to do this in any Bourne-compatible shell and not just "bash", try omitting the "function" word. And if your system does not have an "echo" that supports these options, see if the "printf" command is available and use that instead. For example:

  settitle() {
    printf "\033]0;$1\033\\"
  }
There are other tricks, e.g. I use "zsh" and in my ".zshrc" this causes the window title to show the hostname and current directory path any time "cd" is used:

  chpwd () {
    printf "\033]0;[${HOST}] ${PWD}\033\\"
  }

comment 14y ago · link · parent

I will go as far as to say (from experience) that releasing a library in C++ to others is completely foolish due to the major problems it can create when design changes are inevitably needed. Other languages do APIs better.

C++ is useful for implementing the guts of things. And when implementing, having your own library of shared C++ code is useful, as long as you completely control it and always compile it with your project from scratch (a library of templates, for instance). The last thing you want is to link to someone else's compiled C++ library because that's where the pain begins.

To expose a C++ implementation, use a plain C interface; the C application binary interface works very well across compilers. If you feel it absolutely necessary to expose something like the inheritance scheme of an object-oriented design, you had better do it in a language like Objective-C that can at least implement objects in a very forward-compatible way (or use tricks like exposing pointer parameters in C functions).

comment 14y ago · link · parent

It's true that a 3rd party may not charge what you'd charge and your income may decrease, but your costs would also decrease somewhat.

If another site hosts your software too, that's less potential load on your download servers to handle the actual number of users. With some hosting providers, this directly reduces the amount of money you spend on web hosting (whenever less bandwidth is consumed).

And even if a 3rd party hosts your software, they can't just take away your copyright and claim that they wrote the software themselves. The software remains associated with you so the 3rd party's hosting provides a bit of free advertising. Maybe you didn't spend money on advertising, but some people do; and you could arguably spend less if enough 3rd party sites make it known that your project exists.

This probably doesn't amount to much but my point is that 3rd parties aren't creating complete freebies; their actions do help a little.

comment 14y ago · link · parent

Editorializing! Don't do that.

Actual title: "New York Times sends email to millions by mistake".

There is no evidence they actually cancelled any subscribers (as this edited title implies).

comment 14y ago · link · parent

It seems unlikely to me.

For one thing, even on a desktop system mouse-over detection requires CPU usage and therefore power. Doing this continuously on a battery-operated system seems like a big waste of power for little potential gain.

Also, even with software to judge whether or not a touch is "intentional" I still accidentally touch things. Hovers seem to offer even more ways to be input unintentionally.

comment 14y ago · link · parent

I also wish that the site would be more "on topic".

I imagine what's happening is that people submit and up-vote anything that's remotely interesting or important regardless of whether or not it is really "hacker news". But this site isn't supposed to be the only news source in the world. Even an important story can be an irrelevant one as far as HN's boundaries are concerned, if it would already be reported in the news somewhere.

comment 14y ago · link · parent

It amazes me that gift cards are ever purchased by anyone. The only possible benefit is to the vendor, in every scenario, and this should be obvious:

- If you spend less than the card amount and don't use the rest, the vendor wins.

- If you spend more than the card amount, the vendor wins.

- If you somehow spend the exact amount on the card, the vendor still wins because they made you buy something at their store instead of a competitor's. Also, the card amount influenced the decision of what to buy, which wouldn't have happened when using cash.

It is also not only an unimaginative gift but a bad gift, because:

- You are compelling the recipient to shop at a particular store (a store that may not have what he or she really wants).

- You are probably compelling him or her to spend money that wouldn't have been spent otherwise, because the card may not cover everything (in this way, it's like a tax). And if more money isn't spent, the "gift" is worth even less than it was supposed to be.

- You are stating pretty clearly what you think the person is worth. If I receive something nice, I might not think "this is worth $5", but when I am given a gift card I feel "oh, they think I'm only worth spending $5 on".

It would be nice if people would just identify gift cards as a massive scam and start giving real gifts again (or at least get over the apparent stigma carried with gifts of cash).

comment 14y ago · link · parent

A book on linear algebra.

comment 14y ago · link · parent

Here's a couple of edits that will pull colors from the 256-color (XTerm) palette and make the titles bold:

  blue_highlight=`echo "\033[0;38;5;68m"`                                                                                                      
  brown_highlight=`echo "\033[0;1;38;5;202m"`
  . . .
  . . . (end of script)
  echo "\033[0m"

comment 14y ago · link · parent

If you add a line like the following to the end of the script, any color changes should be undone:

    echo "\033[0m"
Also, I believe Debian's /bin/sh is "dash" whereas it is "bash" on most other systems. You could change your copy of the script's header to use "/bin/bash" instead of "sh" (assuming that bash is installed too), which is easier than fixing equal-signs and such.

As far as the original code is concerned, using "perl" may be slightly more portable than "sed -E".

comment 14y ago · link · parent

MacTerm does this, for one.

http://www.macterm.net/

comment 14y ago · link · parent

Here is one way to force your browser to open a URL by entering a terminal command:

    echo 'open location "http://my.domain.com/some/file.html"' | osascript

comment 14y ago · link · parent

Pretty neat.

Note that in order to work on Mac OS X, the word "wget" should change to "curl" in the script. (Otherwise it works exactly as-is.)

comment 14y ago · link · parent

Donate them to a school if possible.

comment 14y ago · link · parent

I think a trial is a good idea.

Though screenshots seem to be fair warning against lousy apps. For instance, a lot of lousy apps "waste" 2 or 3 of their screenshots with obscure details or marketing slides because (I assume) they don't really have much in the app itself to show off. Any time I've seen 5 full-screen, detailed, unique, functional screen shots I haven't really been disappointed; a quality app doesn't have any trouble looking that way.

I think developers probably have a little too much leeway over what they can change (since you can't really "go back" once you "upgrade"). For instance, I've seen games change fairly substantially compared to their original versions a year ago, and sometimes it's for the worse.

comment 14y ago · link · parent

Confiscated items only make sense if security exercises the slightest care over handling those items. If an object is potentially dangerous, a team of people in bunny suits should be hauling it away from the crowd of people at the checkpoint as soon as possible in a strong protective container and the person who brought it should be in handcuffs.

The reality of course is that this stuff is thrown in a pile and kept in the middle of a much larger crowd of people than you'd ever see on an airplane. Worse, all the "dangerous" objects are allowed to mingle. If these things are actually dangerous, then security agents are being criminally irresponsible by exposing the threat to an unnecessarily-large group. And for that matter, anything actually dangerous should be viewed that way by other people, wouldn't you say? (If an uncaged rabid rottweiler were in the middle of the checkpoint, I guarantee you that people would be paying attention to that, so why not any of these other "threats"?)

As far as I can tell, security is either wasting its time by confiscating non-threatening materials, or being criminally negligent by not treating threatening materials seriously. Either way, there is a problem. And of course I think the overwhelmingly obvious solution is to let people keep their toothpaste and cupcakes so we can get on with our lives.

comment 14y ago · link · parent

Any software that has been around a very long time with entrenched data formats. These monopolies create a lot of problems at this point, and having the flexibility to fork the code and create better tools (compatible with the data) would help.

Some examples: Microsoft Word/PowerPoint/Excel, AutoCAD, Photoshop. It doesn't even have to be for the purpose of forking...I imagine Open Document for instance would benefit from just being able to see how the heck Microsoft interprets the data in its files.

comment 14y ago · link · parent

Go straight to the source[1], this post has made several convenient omissions.

According to The Domains, yes GoDaddy lost about 21,000 domains but they also gained roughly the same number of domains from other registrars on that day (and that trend held for other days this week where they "lost"). In other words, they don't have any significantly fewer customers today than they did a few days ago.

[1] http://www.thedomains.com/2011/12/24/2-days-loss-from-transf...

comment 14y ago · link · parent

This is one of the main reasons I dumped my HTC Android phone (to buy an iPhone). It became painfully clear that the OS was never going to be updated, and the value of a market of apps becomes very low when they all stop supporting your OS.

comment 14y ago · link · parent

Chrome doesn't do that exactly, it requires Control-Enter (which I admit many people wouldn't try). The autocomplete/search during typing does tend to product correct domain suggestions too.

comment 14y ago · link · parent

The existence of a redirect helps users find the site with either name, but there's no guarantee that anything else will see the correlation.

If two paths actually work, then invariably some web sites will choose to link to your page with http://xyz.com/foo/bar/baz.html and other sites will choose to link with http://www.xyz.com/foo/bar/baz.html. Each version of the URL has its own "referrer count" in a search engine, making the page seem less popular overall.

While search engines could do extra work to identify URLs that are aliases of one another, they're not obligated to do that. And even if a search engine does what you want, other tools may still be confused by duplicate paths (e.g. an archiving system or other link crawler).

comment 14y ago · link · parent

"Fix"...right. This is in fact a really bad idea and should be avoided.

The main argument for shortening domains seems to be based on what people will type. But every web browser I've seen will try "www.xyz.com" any time you type just "xyz". So leave the interpretation of lazy typing to the browser bar where it can be converted into a canonical form on behalf of the user.

There are plenty of reasons not to make the raw domain a web site. Here are a few:

- Potentially destroys popularity rankings in search engines because there are multiple addresses for every page. One popular site instead looks like two less-popular sites.

- So-called CNAME in DNS cannot use bare domains. IP addresses must therefore be hard-coded in a way that is more difficult to change quickly as needed (e.g. load-balancing, discovery of a DDoS attack, whatever). So users of the raw domain "xyz.com" will see your site go down for longer than it should have, even if you've already managed to bring "www.xyz.com" back up by changing its IP address.

- Configurations where patterns may be useful don't work, e.g. neither "{glob}.xyz.com" nor "www.{glob}" will match a bare domain. Maybe you don't care if you have just one site to worry about, but this gets old if you have a lot of domains to worry about.

comment 14y ago · link · parent

This can be enabled now by Quartz Debug (and then logging out) and using System Preferences, Displays to set a monitor to HiDPI. The effect is best if you have two monitors because the display you choose will be reduced to 1/4 of the usable space.

A checkbox per application seems a little odd. Right now HiDPI is per window; if you move most of a window onto the HiDPI display it automatically starts rendering everything at double size. This makes UI elements quite nice and it makes text very beautiful.

comment 14y ago · link · parent

I believe that JPEG is the best format for making a good photo, whereas PNG is better overall for any other kind of image.

The OS actually supports a huge variety of images natively, including PNG, JPEG, TIFF, GIF, several Windows formats and X-Windows bitmaps.

PNG is definitely the smallest and fastest to render, especially when compiled by Xcode (Apple does some hacking to the file format so that the device doesn't have to do as many calculations at runtime).

comment 14y ago · link · parent

http://news.ycombinator.com/item?id=3381643
1
636465
98