12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 14y ago · link · parent
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
comment 14y ago · link · parent
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
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
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
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
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 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
- 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
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
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
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
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
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
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
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
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
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).