12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 15y ago · link · parent
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
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.
1983.
Goodbye HTML5 "time", hello "data"!(w3.org ↗)
2 points · by makecheck · 15y ago · discuss
comment 15y ago · link · parent
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
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
comment 15y ago · link · parent
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 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.
comment 15y ago · link · parent
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
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
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
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
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
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
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
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
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
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
comment 15y ago · link · parent
http://licn.typepad.com/my_weblog/2010/10/dangerous-cfls.htm...
comment 15y ago · link · parent
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.