Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

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

Submissions

comment 15y ago · link · parent

No, that's not what I'm saying.

If you don't separate /bin and /usr, and /usr is a mount and it becomes unresponsive, how do you log into the machine? Where are the login shells and basic file management tools to rescue the machine? That problem exists as soon as you collect tools into one place, whether you choose /bin or /usr/bin to be that place.

But choosing (only) /bin has an additional problem, which is that you lose the ability to easily set up mounts. If you have many machines to keep in sync, they could each have a relatively simple /usr mount; while you could set up root paths equivalently, you would need more of them: either symlinks or mounts in several places on all machines that all have to be kept in sync. That is unnecessarily complicated. The /bin option is only equivalent if you are in fact dumping everything on the local disk and not using mounts. But "standard" hierarchy paths should not assume the architecture.

comment 15y ago · link · parent

According to the Filesystem Hierarchy Standard [1], /bin was originally designed to hold programs that are "required when no other filesystems are mounted" or commands "used indirectly by scripts".

Which is a fancy way of saying that you don't want basic functionality to break just because a mounted volume is unresponsive for some reason.

The /bin versions of programs can also be less powerful (e.g. to keep them extremely small), although that's unlikely to be an issue these days. For example, when local disks were small it wasn't unusual to see a bare-bones /bin version of some program while also having a /usr/bin version that was capable of large file support and other niceties.

[1] http://www.pathname.com/fhs/

1983.

Goodbye HTML5 "time", hello "data"!(w3.org ↗)

2 points · by makecheck · 15y ago · discuss

comment 15y ago · link · parent

That link is just a blog with a quote.

This appears to be a much more authentic source:

http://www.w3.org/html/planet/

comment 15y ago · link · parent

A sort-of-substitute for a weak terminal is to use control keys and helper commands.

For example, control-S or its equivalent mapping will "stop" text from scrolling, and control-Q will resume it. A control-Z will suspend the process entirely, at which point (in most shells) "fg" will resume it in the foreground and "bg" in the background.

If you run the entire process through a pipe or create a file (e.g. with "tee"), it is often easier to control the output and then you can't really lose anything if it happened to scroll by too fast. Piping to "less" or "more" gives you things like page-by-page output and search.

Yes, good terminals handle all of this too, but it's very useful to become comfortable with the Unix commands and keys that do the same kinds of things.

comment 15y ago · link · parent

What gets in my way...I think "Xcode 4" sums it up. Almost everything Apple did to that once-great IDE has created endless frustration and slowed me down considerably (not to mention making my 2nd display practically useless). It was apparently designed by someone who doesn't do much programming, or at least someone who doesn't know how to multitask.

I can still use Xcode 3.x and Interface Builder for now, but I'm sure their days are numbered. So what I need (again) is a decent set of high-level Mac development tools. If I could open-source Xcode 3.x and start from that, I would.

Note that I've never used an IDE exclusively (I use makefiles and terminal-based text editing for instance), but basically Xcode is no longer suitable for the things that an IDE was useful for.

comment 15y ago · link · parent

Nicely done. Also, for @property the name of a method can be redefined, e.g. getter=isVisible.

comment 15y ago · link · parent

Unfortunate that they give Linus Torvalds so much praise for "reinventing Unix" with Linux. It was at least substantially, if not equally, made possible by projects such as GNU. Clearly the kernel was a huge and necessary part, but it was just that: a part.

comment 15y ago · link · parent

Comments on Growl issues and forking, from the project lead: http://apple.slashdot.org/comments.pl?sid=2486370&cid=37...

comment 15y ago · link · parent

I think the last one (manufacturers providing updates) is the most important and is probably why Android is doomed in the long run: because carriers do not appear to care about updates at all.

Having a device with Android 2.1 was cool for about a few months until it became clear that it would never, ever be upgraded again. I have since moved to an iPhone and am overjoyed that it is updated regularly (probably because it is Apple, not the lazy carriers, who decides when an update is allowed). Sure, Apple eventually drops old hardware too, but at least they wait years to do that and in between there are several really substantial improvements.

comment 15y ago · link · parent

Actual article title: "Microsoft Bid for Yahoo Building Momentum [REPORT]".

Actual WSJ quote: "Microsoft is working with the Canada Pension Plan Investment Board and Silver Lake Partners, a private equity firm, to put together a bid...".

This doesn't mean "Microsoft bids", it means they might at some point make a bid.

http://ycombinator.com/newsguidelines.html

comment 15y ago · link · parent

http://news.ycombinator.com/formatdoc

comment 15y ago · link · parent

The guidelines[1] just say to submit something interesting/relevant, and this is. Besides, no one knows better than you where to find your content. :)

[1] http://ycombinator.com/newsguidelines.html

comment 15y ago · link · parent

Gaining a master's degree doesn't automatically make you a better teacher. I'd much rather be assured that a teacher has other basic abilities (e.g. good communication skills, patience, fairness, organization skills, and even some creativity).

comment 15y ago · link · parent

One thing I wish that Microsoft would figure out is that I don't want to be beaten over the head with branding. Ditto for other companies making PC software, like Adobe.

Okay, great, now Windows 8 is "grouping" applications! But guess what: the title of the group is now "Microsoft Foo Bar Unnecessary Extra Words Edition", while every single entry below it is titled "Microsoft This 2010" and "Microsoft That 2010". Adobe is just as bad in the example screenshot, Adobe-ifying every single line of text.

Back when I was using Windows XP regularly, I renamed every damn thing in the Start menu so that instead of "Microsoft PowerPoint" it said just "PowerPoint" and so forth. That's how it should be. People have already paid for your stupid product, they don't need to be reminded every 5 minutes that you made it and they certainly don't need it on the screen more than once.

On Windows 95's startup screen I counted five uses of the word Microsoft on a screen that barely said anything else. As I recall they were the "Microsoft" logo in the corner, Microsoft Windows 95, copyright by Microsoft Corporation, with Microsoft Internet Explorer, and some legalese naming Microsoft trademarks. I'm sorry, but that company seems a bit insecure to me.

comment 15y ago · link · parent

I would settle for a way to see mappings. Browsers already have to know what the mappings are in order to support them, they just don't share that information with users.

In a menu, all I have to do is read to find out what the keys are for each command. Much like each browser has a Back button, it'd be nice if all browsers could agree to provide a "legend" displaying the keystrokes that a web site has defined.

Of course, once the browser can display the mappings it can offer a more sophisticated way to disable them. For example, checkboxes for each key so you can keep the ones you like but get rid of the stupid ones.

comment 15y ago · link · parent

The sad thing is that many sites can't even get basic keyboard support right, and that's something HTML handles quite well.

Classic example is Tab ordering. When I hit Tab, I should reach the most prominent and useful field immediately (almost always a big fat search field). But too often, my first Tab lands me somewhere useless, and if I'm really unlucky it even scrolls me all the way to the bottom of the page to reveal a stupid field in a signup form from an ad or something. 5 or 6 Tabs later I may eventually reach the Search field that was in the top-left corner of the page.

comment 15y ago · link · parent

Oh I agree, I was just trying to suggest why Google might have done it.

comment 15y ago · link · parent

I suspect it's because of Google Instant (a feature I don't really like), which has to interact with the server every time a key is pressed to ensure that the results are "live".

If you use the gear icon in the top-right of Google.com to go to "Search settings" and turn off Google Instant, it may fix the problem.

comment 15y ago · link · parent

I'm surprised he didn't give an even simpler reason, which is that algorithms were designed to work with pointers as well as objects.

You can't call begin() or end() on a pointer. And although you can figure out the end of a stack-allocated C array, you can't do it for a heap-based array. For example, with "x = new int[30]" and a call like "sort(x, ...)", you may know the size of "x" but the algorithm can't know. The solution is to make algorithms accept a form like "sort(x, x + 30, ...)".

Of course now, with things like std::array in the standard, there are fewer reasons to care about pointers than before.

comment 15y ago · link · parent

And then there's Sprint. At first I was happy that they finally had the iPhone, but then I looked into getting one...buyer beware.

When trying to pre-order the iPhone 4S on Sprint's web site, they let me get through the entire process before pulling an oh by the way at the end where they reveal a $10 PER MONTH "Premium Data charge for this phone". With a 2 year minimum contract, that's $240 more that they're perfectly happy to not mention in their advertising, while they are simultaneously quite happy to boast about all the "savings" that you get.

Just to be clear, I already have an Android-based HTC smart phone on Sprint and a good data plan. There's absolutely no way an iPhone will be more of a burden on them than my current phone, so this entire thing is nothing but a scam.

The sad thing is, I was almost rooting for Sprint. I stuck with them and figured someday they'd get the iPhone. I was happy that they did, until I realized that they really don't give a crap about anybody. Since they seem to want to lose all their customers, I am happy to be one of the latest to grant them that wish.

comment 15y ago · link · parent

Assuming your hands aren't too tied by legal agreements, I'd cut my losses and quit. Life is too short to put up with a bad workplace.

Also try to show as much loyalty as you can to the person that you hired, as they're apparently someone competent who was caught in the crossfire. Perhaps you can fit them in if you happen to start something new soon. Heck, maybe even that person would be a better co-founder for a new venture.

comment 15y ago · link · parent

Even if you've done C++ before and want to target mobile, I'd still recommend starting with a forgiving language such as Python. Python is simple so you can be immediately productive. It has lots of documentation, it's easy to search the web for examples and even if you won't use it for mobile it will remain a valuable skill.

Mastering a simple language can also be like the first 50% of your goal. While Python is not exactly the same as something like Objective-C, it has many of the same concepts (classes, containers, C-like language features, etc.). You will quickly become comfortable with relatively complex programming tasks, and you won't be bogged down by tangential stuff like compiler errors, Interface Builder, simulators, or who knows what else.

Don't be afraid to start building things that you may not need yourself. For example, you may have no reason to build an interactive shell that acts like a calculator, but it's a tiny project that would slowly introduce you to a few Python library functions and language constructs. It's also pretty obvious if a calculator is behaving correctly. When that works, you should ask yourself how you might extend it; for example, if you wanted the calculator to write its results to a file like an adding machine writes to paper, search the library for functions that deal with files and try to learn those too. Do this for awhile until you have a few generations of the thing and you've learned a few diverse things.

Only then should you try to map what you know to a more powerful environment that is more closely aligned with a mobile platform. You will find that once you're very confident in one language, a 2nd language such as Objective-C isn't too bad. It's a lot of different syntax and a whole new standard library, but you will find both the language and the library to have similarities (e.g. you can teach yourself NSDictionary by remembering how Python dicts work, or NSArray by remembering Python list capabilities). Yes, you still won't learn it overnight, but it will be easier than starting from scratch.

And since you have a working prototype in another language, you can then see what it would take to map this to the new environment. For example, pull up a template project for the iPhone, and try to make a very basic calculator app by making buttons perform the actions you used to receive from the command line in the Python version.

comment 15y ago · link · parent

Open source, yes. It was a terminal (MacTerm), it happened to be used by a hiring manager at a company.

I don't know that any employers ever looked at the source code. But publishing the source probably helps because they can see what your programming is like right from the start.

comment 15y ago · link · parent

Glad to help. :) Let me know if you need anything else.

comment 15y ago · link · parent

Very true.

One thing that seems very important to companies is support, i.e. "what if it breaks". This also tends to trump everything else, even the cost of an acquisition or its quality (frankly, many IT departments have a CYA policy). Even free software that is demonstrably superior in every way to some overpriced enterprisey solution could be shot down if it's not clear how someone would install and maintain the app, and if it's not clear where to go if the app exploded tomorrow.

While it is valid to question how an app will be supported, I think that IT departments tend to give this too much weight and spend too little time thinking about what else they might do. "Run screaming to tech support person from vendor" is not a disaster recovery plan, but in too many organizations that seems to be all there is.

What is the probability of an incident? How severe can the problems be? Would those problems have work-arounds? And ultimately, can all critical data be accessed and backed up regularly just in case of a failure? In the well-designed free software that I've seen, these questions have great answers and there's usually some bonuses like support forums, source code, and hundreds of known users worldwide. In other words, risk is pretty small and there is definitely some reward, but it requires your IT people to actually invest a little time to learn and to keep things moving (for example, to install new versions regularly and to brush up on scripting skills).

comment 15y ago · link · parent

For me (many years ago) it really helped to have my résumé posted online and linked from the site of the free software that I was working on. Sometimes these things are noticed.

comment 15y ago · link · parent

I admit to not liking Ballmer from what I've seen, but how much can one person really control a company? Would Ballmer walking out tomorrow really change enough? If products really are uninspiring enough to employees, etc. then that has to be the fault of a more general group of people: at least spanning several executives, managers of product teams, and the behavior of many employees. To some extent many of Microsoft's senior employees are now reaping what they have sown in recent years. Ballmer will surely be blamed, and isn't blameless, but a lot more would have to change to make a difference.

comment 15y ago · link · parent

Content-free redirect. The submitted URL should have been:

http://licn.typepad.com/my_weblog/2010/10/dangerous-cfls.htm...

comment 15y ago · link · parent

Thanks for all the comments!

The startup behavior might be slightly historical, it used to be a remote-only shell in the Classic Mac days and didn't really have a local shell. Back then there was always something needed (host name, whatever), and technically it is still possible to start sessions that way. But good point...I may change the built-in default.

In any case, the startup behavior is controlled by the contents of the Default Workspace (in Preferences -> Workspaces). So you can turn off all windows, or spawn certain windows that contain whatever you want.

EDIT: I've identified what caused the "appear and disappear" behavior you described. You can download the latest version from here and it will be fixed: http://macterm.net/updates/daily.html

Thanks for the font info. I'm not sure (as a free GPL program) how to package a font, but if I can find one that's compatible and OK to include I probably will. I've even tried Consolas myself. As for the rendering, that is very close to the top of my list and is quite complicated. As I mentioned earlier, the code has its roots in Classic and I'm not relying on modern drawing code completely. That is set to change, but it's slow work. :) Unicode rendering has the same problem; although the buffer and decoder work perfectly, and you can copy/paste/drag/print any Unicode, the terminal can't display every character and it's because the drawing code is too old.

I'm glad you like how Full Screen works. Also note there's a bunch of stuff in Preferences that you can tweak for that mode.

1
666768
98