12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 15y ago · link · parent
I don't have command-option-arrows (they're used for other things), though the menu items for next/previous window are available as command-tilde and command-shift-tilde. So in theory the Keyboard pane in System Preferences can be used to remap them to any other keys.
I can appreciate the idea of piecing text together, I'm frequently cracking open temporary "vim" sessions to do that. Would you consider it too much to rely on a macro for that? Using the existing macro scheme it's straightforward to do something like remap command-option-V to open a new editor in a new window.
I agree that auto-Copying selections can sometimes be unexpected, so I left it as a preference. But should you accidentally dump garbage into a window, there's even an option to intercept multi-line Pastes.
Thanks for mentioning 10.3.9. :) Yes, that has been increasingly tricky to pull off, but I figure as long as Apple hasn't made it impossible to support I can keep it working.
As far as the scroll behavior on new input; I believe I actually am doing what you'd expect (though only when scrolled back; selecting text has no effect on it). There is also a way to suspend/resume explicitly, though any terminal can do that using the appropriate start/stop control sequences.
comment 15y ago · link · parent
I do have the concept of toggling context with macros; e.g. you can define up to 12 actions at a time, mapped to almost any key combinations, and choose between as many sets of 12 as you want.
I also work around potential key mapping issues by having floating keypad windows. For example, if for some reason control-A doesn't work from the keyboard, it's always possible to "click" a button that will produce a control-A. (This was very useful in the old days in programs like "pine" that had redefined control-C among other things.)
comment 15y ago · link · parent
I've only used Windows (XP) seriously for a few months of work, and I agree that it felt like the stone age.
As much as I can see the need for something better on Windows, I no longer use Windows (gladly, too), and I don't own any PCs. Almost all of the hardware that I have easy access to is using Mac OS X these days.
My code is GPL however; so if someone has the drive to actually produce a terminal on Windows, they might find mine useful as a reference. After all, I've implemented fairly complicated things like an XTerm, VT100, VT220, etc. and a UTF-8 decoder, and you wouldn't want to start those from scratch.
comment 15y ago · link · parent
I haven't optimized for memory usage, but that's a good point. I did compare my launch state against Apple's Terminal using "top", and found that I used roughly the same real memory size but only 1/3 of the virtual memory. There could be many reasons for the difference of course.
comment 15y ago · link · parent
My full-screen mode can fill 2 displays, with the most-recently-used window on each display; and by setting options everything else can be removed, like the menu bar.
What is the ideal way to switch between terminals? Right now I rely on the window manager, e.g. command-tilde keys, clicking with the mouse, Exposé, and I have a separate window that lists every open window (also usable for switching).
What would make copy-paste handling "better"? I did implement a way to get auto-copy-on-select like Unix terminals do, and drag-and-drop. I also detect a multi-line paste, which provides an option to join into a single line. Larger pastes are buffered to try to avoid overwhelming the program running in the terminal.
2016.
Ask HN: What do you look for in a terminal?
6 points · by makecheck · 15y ago · 17 comments
comment 15y ago · link · parent
In other words, a survey isn't going to tell you anything. What matters is trying it yourself, and deciding if you like it or not.
comment 15y ago · link · parent
If a directory is empty, remove it with "rmdir". (It is safer to implement a cleanup script as a series of "rm" commands for files and "rmdir" files for directories; that way, if the directory happens to contain anything you didn't expect, the unknown files will be preserved. The "rm -rf" approach is a bit of a sledgehammer that can have unintended side effects.)
A particular gotcha on Linux is that a trailing slash on a directory path follows symlinks, whereas a lack of a trailing slash does not. This means that "rm -rf xyz" is very different than "rm -rf xyz/" if "xyz" is a symbolic link to a directory: the first one deletes the link only, and the second one deletes the entire directory that the link points to!
Symlinks are also misleading when mounted by other operating systems; e.g. when mounting a network drive on Windows. Deleting (from Windows) an item that happens to be a symlink on the Unix side will have the effect of following that link and destroying an entire destination file or directory, which is different than what "rm" would do in the Unix shell for the same path.
comment 15y ago · link · parent
If Apple proposed a new language that didn't support message-passing syntax, and the only way to keep Cocoa dependencies working was with a pile of objc_msgSend() calls and other low-level wrappers, developers would just laugh at them. A single line of Objective-C often contains 3 or 4 pairs of square brackets, and objc_msgSend()-ifying that alone would be a nightmare even in the short term and even with a code generator.
That's why I said, the new language has to follow the same calling conventions. Fundamentally, whenever I see "setFoo:x toBar:y withBaz:z", I should be able to either leave that alone or do very little to that line of code.
Carbon-to-Cocoa was feasible because Objective-C is a superset of C (plus the libraries did share some things, like free casting between the CFStringRef and NSString* types). Not only that, but there's a compiler for Objective-C++. It was very easy to adopt.
So to follow the Carbon-to-Cocoa model, Apple needs a new language that's a superset of Objective-C. And that's actually something I'd like to see.
comment 15y ago · link · parent
Yes, when calling Objective-C, it compiles to C. But since the article talks about the idea of moving away from Objective-C, the only thing that matters is how source code currently is. The millions of Cocoa-dependent projects aren't using just C functions (even if they're compatible), their API calls follow Objective-C style. So, it is those calls that need to transition. It's not impossible, but it would be inelegant to move those API calls to a language that is significantly different than Objective-C style.
[Just so you know, I've been programming for over 20 years. I have years of experience with Objective-C on both Mac and iOS and dozens of projects under my belt, both for companies and open-source. I have used many different programming languages and know their strengths and styles very well. But you're right, you would not be hiring me...because I would definitely choose not to work for you.]
comment 15y ago · link · parent
Objective-C just looks weird when you try to call it like you would a C function, because arguments are almost always intended to be preceded by names. So how would old APIs be invoked? They may work, but it'd be a very awkward transition.
comment 15y ago · link · parent
This article is actually called "Microsoft's plan to stop Bing's $1 billion bleeding", and the loss on Bing alone is $5.5 billion since mid-2009. It was only Microsoft's total online services division losses that reached $9 billion, and that was since 2007.
comment 15y ago · link · parent
comment 15y ago · link · parent
Maybe a small web site doesn't have to support every browser, but Google has the resources to test anything they want. Besides, Opera and WebKit-based browsers are really good and aren't likely to show many new bugs.
comment 15y ago · link · parent
1. It's 2011, and I started out by seeing this:
https://plus.google.com/not-supported/?ref=/up/
I had to "lie" to Google and pretend I'm Safari. No big deal, but Google of all sites should not have these kinds of crap restrictions.
2. When I tried to log in, I was spammed that I should "link to Picasa", whatever that means, with the only options being to do it or Cancel (at which point the entire Google login is stopped!).
So far, from my point of view Google+ is making basic mistakes: I am discouraged in every way to log in.
comment 15y ago · link · parent
I imagine the "crowd-sourced" front page is the most useful to people who won't be taking the time to click a lot of "More" links and just want to read a few interesting things.
Another reason I check "new" is because I occasionally flag things, and it's unlikely that posts requiring a flag are going to appear anywhere else.
comment 15y ago · link · parent
First, Objective-C is not a big language. For example, look up Pierre Chatelier's guide [1] that maps from C++ concepts to Objective-C; there isn't a heck of a lot to know. Objective-C really is a language that you could learn pretty well in a couple of weekends. It's silly to suggest that professional programmers couldn't possibly find the time to pick up this language just because they're already firmly entrenched in the world of other languages. I'm forced to wonder if the article's author has used Objective-C at all.
The article doesn't give a lot of specific gripes. The only stated "problem" with Objective-C is its lack of garbage collection on iOS. Well it is widely known that Objective-C's lack of garbage collection is a benefit to iOS, not a detriment, since iOS applications perform better. And Apple's new Automatic Reference Counting scheme (ARC) is a stroke of genius: it "gives back" to developers the simplified coding that garbage collection would have allowed, but without sacrificing performance the way garbage collection does. ARC even avoids other problems, e.g. how to deal with retention of data across framework boundaries.
As far as needing a Mac to do development, that is technically true (but only for iOS; you could learn Objective-C using something like GNUstep and GCC on Linux, say). A Mac mini is not exactly expensive and it works with existing monitors and keyboards. There are also a lot of people already using Macs as their laptops, even if they primarily run Windows or Linux on it.
[1] http://chachatelier.fr/programmation/fichiers/cpp-objc-en.pd...
comment 15y ago · link · parent
For example, there are homosexual couples in the world who want children. Many are wealthy enough to adopt more than one child. In any sane debate it should be unquestionable that a child is better off being child #1 in a middle-class family, with better opportunities for economic and social stability than they would have as child #5 in a poor household. But there are people who would shout until they're blue in the face to prevent this from happening, simply because the parents are gay.
Another extremely unpopular but practical solution is contraceptives and even abortion. Why are parents shamed into birthing a child that they cannot afford to raise, in a world whose population is greater than at any point in history? Unquestionably if the average size of families decreased, incomes would be less strained and poverty levels would have a fighting chance to go down as well.
A third unpopular solution is grouped housing. For some reason it's been hammered into everyone's heads that they should have a house and a yard and a dog, and that a single family should live in it. But the reality is that a large structure could hold 2 families or more, if people were willing to live like that. It would not only decrease costs, but it would improve nutrition: it's much more practical to cook a decent meal for many people than for a few people (it's easier to acquire good food in quantities that won't go to waste, etc.).
comment 15y ago · link · parent
Applications are tools; they should launch as quickly as they possibly can and with minimal fuss. They should not presume to guess what the user might want to do, otherwise they turn into Microsoft's "Clippy".
If I launch a program I have a purpose in mind, and I know how that task is usually accomplished, e.g. in my mind I am thinking that the first thing I'll do after launch is to open some menu command. Absolutely anything that gets in the way of my "plan" feels like an unwelcome distraction.
comment 15y ago · link · parent
Yahoo has always been pretty good at apps: cross-platform Messenger, an impressive web mail interface for the iPad that looks almost native, etc. They are a web and design powerhouse, if only somebody told them. This is expertise that can be sold; they need to continue building a small number of apps to demonstrate their prowess, and contract this out to develop anything for anyone (e.g. make Yahoo the go-to place for high quality mobile apps for the iPhone?). Even throw the free software community a bone by pulling a Nokia (the old Nokia) and making a Qt-like dual-license so their services have even greater reach.
Yahoo is also a decent source of news, but they aren't pushing this enough. With a bit of care and attention they could clean up the mess that is modern media and give people a really desirable digital newspaper...something that everyone would want as their home page.
Find and fire the people in their company who build toolbars and installers that push toolbars. The last thing any company needs is to be connected with something that users may loathe.
That's just off the top of my head. :)
comment 15y ago · link · parent
The problem with any set of panes is that they almost always lack features X, Y and Z that you miss from a window manager. That's what the window manager is for, and it frustrates me that applications feel the need to implement this again and again (each in their own way, to boot).
It is time for a modern GUI to provide support for chromeless panes as first-class windows, so that you can move any pane anywhere, attached to any number of other things from any application, with any size in any arrangement (tabbed, split-pane, whatever).
comment 15y ago · link · parent
http://www.behealthyspringfield.com/sections/abes-army/a-bic...
comment 15y ago · link · parent
1. As a general rule, I am very unwilling to put up with crap...life is too short. I also want to be productive with the energy I put into something. If you are hired in a technical job, you can reasonably expect to be around competence (and if you're not, you leave). The biggest reason I would never see myself joining Congress, or upper management at some companies, and similar jobs, is this: I can already see who my co-workers would be, and they're horrible people. I've seen what a lot of these clowns are capable of, and you couldn't pay me enough to be the only smart man in the room. It would be day after day of banging my head against the wall and wasting my breath.
I believe that the only way you'll ever see engineers enter these kinds of jobs is if you can simultaneously replace a huge percentage of an organization with new people: the kind of people that engineers can believe in and work effectively with. It has to be appealing from the outside, and right now it just isn't.
2. I enjoy most work. As long as I'm making cool stuff and I can be proud of what I produce, I'm pretty happy. I am more stressed about things that have technical consequences (e.g. somebody pushing for a change that I know will be a long-term negative), than I am about salary.
In other words, if it wasn't so easy to find enjoyable work doing actual programming and the "important" jobs weren't so maddeningly filled with annoying individuals, you probably would see engineers doing other things.