Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

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

Submissions

comment 16y ago · link · parent

There is usage-based billing for utilities, so it is theoretically possible to do this fairly with other things. However, it requires the corresponding regulations: for gas and electricity, you have meters; you also have labeling requirements on the products you buy, so that you can tell what they're going to be using.

Apps don't have meters, and they don't have any mandate to tell you that they're hogs. Therefore, tiered bandwidth billing is unfair: it is simply not possible for a customer to know when they're buying something that will cost them dearly in terms of bandwidth usage, nor is it feasible to isolate which of 100 apps on their phone is responsible for their overage billing in a given month.

comment 16y ago · link · parent

And it even comes with a command-line tool...amazing.

I really like seeing developers put in this kind of effort. Maybe Apple will choose to package it with a future version of Xcode. :)

comment 16y ago · link · parent

Yep.

The web site of that program is kaleidoscope.net...it doesn't seem to have a Mac OS X version.

Unsanity created ShapeShifter, which is similar and worked on Mac OS X for awhile, but since Snow Leopard it seems Apple has changed enough of the system that it can't work anymore.

comment 16y ago · link · parent

A good first step may be to have a standard way to show the gestures that are currently enabled (e.g. pinch, swipe). That way, you at least know what is significant to the current app in the current mode, and don't have to try a bunch of things.

Though in some respects, it is unfair to criticize touch technology based on its initial use in phones, because those screens are small. Some of the article's goals aren't practical on a small screen, e.g. GUIs have "discoverable" interfaces because of always-visible menus, but a phone can't do this without seriously reducing usable screen space.

On the other hand, the touch screen of an iPad probably should fix more of these problems. For instance, an iPad app can probably have a discoverable "menu bar" like a Mac app does, and not really hurt usable screen space.

comment 16y ago · link · parent

Every device Apple makes (iPhone, iPad, iPod) is capable of playing music, and beyond that, a heck of a lot of people have iPods already. Those iPods will last at least a few years. It should not be surprising at all that iPod sales are finally dying down.

Apple is being smart by expanding into new product lines; that way, they continue to make profits, while people "hold onto" their purchased items. It would have been stupid to not make anything new and just expect steady iPod revenues for eternity.

comment 16y ago · link · parent

Nice breakdown, but if you ask me, even the article's suggested reduction to "only" 5 screens is ridiculous. There are many things I've always hated about Windows, and this kind of brain-deadness is near the top of the list.

The iPhone App Store model is pretty much perfect: one step, "install the thing" (or two, to authenticate, if you haven't recently). Any progress is asynchronous, and it is completely obvious when the installation is finished. All of the app's files are in one place, which eliminates 99% of the reason an installer/uninstaller seems necessary in the first place.

Granted, the iPhone auto-selects an install location for security reasons, but there's no reason a desktop OS couldn't choose someplace "obvious and reasonable" to save a step for the user. Of course, this also requires that apps be easily relocated after the fact, which is another stupid flaw in many OSes...

comment 16y ago · link · parent

It seems like it used to mean more to be published. Somehow, the mere existence of your book on the shelf made it clear that a high standard for quality had been met. In recent years, especially in technical books, this doesn't seem to be true anymore.

One problem is that there's 40 books on any given subject. Each time a new language or tech comes along, there are lots of publishers wanting to be the ones to sell millions of copies. From the point of view of revenue, each publisher has about the same chance of making a sale to an unsuspecting buyer, so it almost doesn't "matter" (to them) if a book has errors everywhere.

Another problem is that the industry moves so quickly. Who cares what was published even 5 years ago in tech, in most cases? The problem is, any true experts in a new field won't be working at publishing companies, they'll be doing the high-paying jobs building the actual products. So unless the author sees an error, no one else will, before the book goes to print.

The responsibility then falls to the consumers of books. If you want accuracy, you need a more peer-reviewed model; or, simply, peers, for asking questions. Something like Wikipedia has both the immediacy of the web and the accuracy of a huge number of eyeballs (minus a contingent of vandals that seems insignificant in practice).

comment 16y ago · link · parent

Always link to the original source, not the blog. The blurb reveals nothing useful, so here is the original WSJ article:

http://online.wsj.com/article/SB1000142405274870425010457523...

But of course, even this doesn't reveal much. They don't have a product, a demo, a price, or even a clue, so how is this news?

The only reason to make vague statements like this now, would be to steal some of Apple's thunder and future sales. Frankly, I don't care what other companies "might" have a year from now; of course competitors are working on things, that's what they are expected to do. But there is a massive chasm between "scribbled on the back of a napkin last week" and "produced a working, shipping, price-competitive embedded product", and it sure looks like these guys just finished their napkin.

comment 16y ago · link · parent

At this point, I don't even want IE to be improved. Microsoft has immense resources at its disposal, and I would prefer to see that effort devoted towards truly new problems in computing.

Simply put, we finally have a number of incredibly good web browsers, and most of them run on Windows. Microsoft should embrace one of these, and stop wasting time and money (both its own, and that of developers who continue to have to test IE). Even a great IE is still yet another IE, that must be supported or not, and this effect multiplies across all the web pages in the world. A new IE contributes nothing useful at this point, that wouldn't be achieved by having Windows Update auto-install a Firefox, a Chrome or a Safari.

comment 16y ago · link · parent

Choose the best language for the job, because coding really slows down when even the simplest things are awkward to express. Sometimes, this can be handled by writing a simple tool or file format for code generation, as opposed to using a new language. Make sure perl and python are both in your toolbox.

While it's useful to spend some time looking for existing solutions, don't be afraid to build things. Your version will often be good enough, and quicker to integrate than a 3rd party solution. Besides, you usually learn something in the process, which will only make you better at coding, and speed up your next project.

comment 16y ago · link · parent

You could argue that the main problem with domains is their exposure to end users; they are essentially an implementation detail of a protocol. Since they are relatively simple to type on desktop computers, they've worked well for a long time. Now, finally, with touch displays, they may be called out for being too cumbersome.

The problem to solve is not the look of domain names, but authentication. How do you know that you've reached the "real" web site for a product or service or group? If you could know that in some other way, you wouldn't necessarily need to see an ugly domain name.

I could imagine something much more interactive. For instance, an app that lets you first specify your favorite products and services, that can then pop up a grid of touchable corporate logos to bring you directly to the correct web sites (no URLs needed). The existing DNS registry could be used to either figure out what you need, or give you a short list of choices. In time, apps like these would become so standard that you wouldn't "need" to register all permutations of a trademark, because they would already be choosing the correct one.

comment 16y ago · link · parent

"whoever gets .www is going to make a killing"

I think that they'd have to make an exception for historical reasons, and simply pre-register "www.". (This kind of reservation is not unprecedented; "example.com" and similar names are off-limits, according to the original RFC 2606.) So "www." could be introduced as a giant no-op in the modified domain name system, and browsers would simply learn to ignore it.

comment 16y ago · link · parent

Personally, I prefer browser windows to be narrower; roughly 2/3 of a widescreen display. In my case the window is 1220 pixels wide, although the text is probably a bit bigger too.

I greatly appreciate sites that can adapt to the actual browser size. I am frustrated if they fix the layout (especially if they fix the font size, or otherwise corrupt the layout so that changing the font size has no useful effect).

comment 16y ago · link · parent

The opportunity may not be exactly what you'd think, because privacy is basically a fallacy for the kinds of information and images that are currently published. What has to change is the nature of the data that is public; specifically, data itself must become much less valuable, and this tends to require new protocols.

For instance, you shouldn't have to "give" anything precious to a web site you barely know; there ought to be a way to hand them a proxy that becomes useless under certain conditions (e.g. after 24 hours have passed, after transferring to some other web site, or similar criteria). This reduces the security problem to one of probability: the time horizon is so small, and the data so fragile, that it is unlikely anyone will see a reason to steal it, or accidentally share it.

Some solutions are available already. For example, people can create throw-away E-mail accounts to limit their exposure, and perhaps they just need to be encouraged to do so.

Having said this, it's difficult to imagine ever securing some kinds of data. This is an age with nearly-ubiquitous mobile surveillance devices and Internet connectivity, so how can a web site even claim to safeguard images, for example? You can't know everyone who has seen you in public; you can't know about every cell phone picture that may have been taken of you, much less posted somewhere, with a "tag" showing your name. The best thing a web site can do is be honest about this reality, and flat out tell users that there is no way to perfectly-secure images of them.

comment 16y ago · link · parent

1. Reduce the paragraphs of fine print. Poorly-edited text is a waste of time to read. It is deceptive: you either don't understand it, or don't remember everything; and when it's changed, you're never shown a nice "diff". If you need a lawyer to figure it out, you spend money. Many documents can be written as a few bullets of basic English, so they should be.

2. Allow actual threat levels to dictate the allocation of resources. A big one: driving. Statistically, car accidents hurt many more people than the other things that make the news, and yet there's no uproar over clueless drivers and badly-designed intersections. A relatively small investment over 18 months could definitely improve this.

3. Start reviewing the people put in prison for minor offenses, and review the "sex offender" registries. Why are people in jail for years on charges like drug possession, people who didn't hurt anyone but themselves? Why are 17-year-olds who slept with their girlfriends on the same list as offenders who are actually dangerous? In 18 months, a whole lot of people could have their humanity returned to them.

comment 16y ago · link · parent

So the maximum is "50 years in jail". The man is now 22 years old (younger at the time of the "crime"). The duration of Palin's campaign was no more than a few weeks. Even the duration of the resulting presidency would be no more than 8 years. Imagine putting a man in jail for more than twice his lifespan, over what is essentially a stupid prank. Just what "damage" could have been done to society, to justify the same maximum prison time as a serial killer?

comment 16y ago · link · parent

Apple is an extremely successful company, and one of the things that makes it iconic is its ability to introduce highly unusual and valuable products. They would be quite stupid not to have high security at the very least.

These rules may not be completely reasonable, and they may not be how I'd run a company. However, they are absolutely simple to obey. It is like speeding: it is extremely easy to not get tickets, you just have to follow the rules. You can't whine about getting a ticket, because it's not like there wasn't a perfectly good way to avoid it. Same with Apple employees caught with their hands in the cookie jar.

comment 16y ago · link · parent

"tput" exists in /usr/bin. I imagine bash sockets would work properly. I'm not aware of Mac versions of the others.

It is possible to use Python to display GUIs from the command line on Mac OS X, e.g.

  env VERSIONER_PYTHON_PREFER_32_BIT=yes python
  >>> import wx
  >>> app = wx.PySimpleApp()
  >>> wx.MessageBox("hello, world")
AppleScript is capable of this, but "osascript" doesn't allow GUIs to pop up when run from a shell.

comment 16y ago · link · parent

A web browser is probably one of the more complicated apps you could write, though. If Apple insists on thoroughly examining what an app is doing, this ought to take awhile.

comment 16y ago · link · parent

Apple may have other motives, but the effect of this is still positive; encouraging a higher standard of quality is a good thing for a massive platform.

Remember, Microsoft didn't do this with Windows. Where did we end up? For years, an incredibly bad user interface became the norm, with shaky programming APIs to match. Most 3rd party developers simply copied whatever Microsoft was doing (out of laziness?), causing other applications and APIs to also be horrible.

comment 16y ago · link · parent

Actually, it might give students a real incentive to tinker: "hey, you might make thousands of dollars on the App Store". Parents? Spend $100 for a curious kid's birthday to get a dev kit, it would be a great investment. Especially if it takes away from time they'd spend doing passive things like watching TV.

comment 16y ago · link · parent

I think it's a good idea to create a convenient interface to "git", but I wonder if it couldn't have been implemented more flexibly as a file to be sourced by "bash".

The shell file would avoid the need for custom config file syntax (with the /etc default behavior "for free"), and it would allow the git interface to be sourced into running shells without creating new ones. It would be easier to support different types of shells. The file could be copied and adapted to produce interfaces for additional commands, besides "git".

Given that, if you still wanted a "git-sh", you could make an alias that runs "source /path/to/the/file.bash" whenever "git-sh" is typed (or "exec bash --rcfile=...", etc.).

comment 16y ago · link · parent

My mistake. There are USB hubs that are classified as "powered" or "unpowered", but I guess in the unpowered case it's relying on the computer's supply.

comment 16y ago · link · parent

Not all USB ports are powered. It is often necessary to connect certain peripherals directly to a USB 2.0 port on the computer (as opposed to, say, a USB jack on the keyboard itself).

comment 16y ago · link · parent

Windows can already be virtualized. The problem is accessibility and cost.

We've seen that most users can't be bothered to upgrade machines. You have to give them an old-car, new-car model: copy all their precious data, then throw their entire box away and give them something new that happens to be running Windows virtually.

A virtual PC must be as easy to buy as an iPod.

It must be cheap (free of any nonsense about not being able to reuse old upgrade-only copies or otherwise paying again for Windows). A program that would let people trade in old PC hardware for fast new virtual boxes would be ideal: something that copies their entire Windows image onto it right at the store, preserving their files, much like you'd trade in your car and keep whatever stuff you had in the trunk.

And, it must start looking "uncool" or almost unheard-of to use anything else as a Windows PC, similar to the effect the iPod has had on other music players. It has to feel "ridiculous" to the average person to keep using some old clunker PC, it can't just be something that tech people would think.

comment 16y ago · link · parent

Learning a language you hate takes you very close to hating the entire job, which is no way to work. Never settle for that, life is too short.

Keep working on side projects that do interest you, and make them public, so that it's always easy to show prospective employers what you can really do. Spend your time boosting your skills and having fun, even if your first actual income comes from something completely different, like mowing lawns.

One thing about programming is that it can be done from anywhere; try applying for a job that's outside your local area, and see if there are any that allow remote work. Some companies won't offer this unless you have years of experience, but some might do it anyway; it all depends on how good they think you are.

comment 16y ago · link · parent

Seems like it's time to randomize questions. And technology could be used for this, too.

It wouldn't be too hard to come up with something that changes a few key numbers in each question, and reorders all the questions. This could be used to automatically generate the answer key for the professor, too. Each student could be given a personalized assignment, that is useless to copy from anywhere else.

comment 16y ago · link · parent

When a C++ developer overloads operators in stupid ways, you fire that developer and rewrite his code. You shouldn't have to make other code obfuscated in creative ways (such as this void() example) to compensate for weird operator semantics in specific objects.

comment 16y ago · link · parent

These aren't really good examples in my opinion. The "condensed" version is not better, because it makes one thing much worse: it is now hard to change the contents of the loop.

Especially when working with larger data sets, you need to be able to do whatever is necessary within a single loop over the data, to avoid lousy runtime. In the article's example, by automatically filtering out even numbers to do ONE operation, it is now very hard to modify that loop to perform other operations on numbers that may not be even.

In my practical experience, a "real" for-loop is almost always more flexible and valuable, and is just as clear.

comment 16y ago · link · parent

If you ran the Python version more than once, check for a new file with a "c" suffix; that could skew your performance measurement.
1
757677
98