Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

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

Submissions

2521.

Stylesheet for hiding annoying content on sites

2 points · by makecheck · 17y ago · discuss

comment 17y ago · link · parent

I use it indirectly from Doxygen regularly. I've also had data in custom formats that is naturally graph-like, and it was trivial to produce visualizers by writing scripts to convert the custom format into "dot" syntax.

One idea I have is to use "dot" to give auto-layout capabilities to a GUI that has a simple canvas. Right now, any data set that wasn't created by a GUI user (e.g. automatically generated) looks ugly, because it has no useful layout information. Since "dot" knows how to do layout, it would seem possible to run it in the background, parse the results, and use the node positions to make the default canvas look much more intelligent.

comment 17y ago · link · parent

(Rather than keep a long initial post, I'm moving my list to a separate comment here.)

1. Lack of revision control.

I've seen this too many times. Someone messes with a file without even using a rudimentary revision control mechanism like RCS, then something goes wrong and no one knows why. What should require a simple "revert" suddenly takes hours to recover from. What should be obvious from a "diff" is instead limited by the accuracy of someone's memory. The sheer number of tools available for this is astounding, and the fact that many are free and simple to use makes it inexcusable to just "wing it".

2. Not using "sudo".

The worst offenders I've seen just give "root" to everyone imaginable, who then use it all the time (often from a "#" shell that's been open for ages, in which they run all manner of random commands without paying close attention). I once saw someone use "rm -rf" as root to delete a single symbolic link; I was cringing, hoping they would not type a space in the wrong place.

The "sudo" mechanism is a great friend to administrators. It forces a team to clearly acknowledge what privileges are required to achieve objectives, and it protects fallible humans from themselves.

3. Not using "visudo" and other helper tools.

I've actually been in situations where I was not the sysadmin, but had to clue in a sysadmin that "visudo" existed. I'd asked for changes to the "sudo" configuration that was used by some Very Important Scripts by Many Many People. Sure enough, the person made a syntax error in the file, which was promptly mirrored to a network of machines; this caused every single script to fail for some time. Had "visudo" been used, nothing would have gone wrong.

There are entire classes of errors like this that really are 100% avoidable: as long as you use the correct tools, nothing ever goes wrong. Administrators should be well aware of these.

4. Constantly messing with the core OS.

When did people decide that it was OK to be adding to or overwriting what's in /usr/bin and /usr/lib? The whole idea is that you do your meddling in /usr/local, or /somewhere/else/entirely, and leave the rest of /usr alone. This makes it clear if a problem is in the vendor's supported code or not, it simplifies OS upgrades and reversions, and nothing is ever damaged accidentally. I strongly recommend that Unix people read http://www.pathname.com/fhs/ in its entirety.

5. Being change-adverse.

I am routinely frustrated by administrators who become paralyzed, unwilling to change anything except on a ridiculously-long-term schedule. What's worse, they then decide to change everything that needs changing at the same time. Ironically, what some see as avoiding disaster is actually a recipe for it; something breaks, and one now has to debug one of 45 possible causes instead of one.

An isolated environment for testing is essential (at least, to the extent that's feasible with available hardware money). Rolling out changes should be something that's easily done with confidence, due to positive experiences on a test platform. But too often, change becomes a source of paranoia and CYA instead of being a positive and regular way to boost productivity in an organization.

2524.

System administration wisdom

5 points · by makecheck · 17y ago · 6 comments

comment 17y ago · link · parent

An empty ad-generating blog that simply links to: http://www.networkworld.com/community/node/44623

comment 17y ago · link · parent

I have a serious question for the experienced Visual Studio users among you...what, exactly, is so compelling about that environment?

I've used VS only enough to dislike it; I have been genuinely surprised at how inefficient it is. For instance, I once found the GUI so awkward for changing simple project settings, that I started storing the VS project in my Unix home directory (assigned to a drive letter via remote mount), and edited the XML directly with a real Unix editor whenever I needed to change something.

Here is an article that has essentially raved about the wonders of old technology, regular expressions. (The author is probably convinced that Microsoft has done wonderful "innovations" here.) A seasoned Unix user has been able to do this kind of thing for years in "vi" and many other tools, yet I think that typing "<escape>:s/old/new/g" is a heck of a lot more efficient than any GUI's dialog box could ever be.

2527.

OpenCourseWare - to access MIT courses over the Internet for free(ocw.mit.edu ↗)

44 points · by makecheck · 17y ago · 16 comments

comment 17y ago · link · parent

Wow.

Well, I suggest they rename Firefox to "ie.exe" and get on with their work.

comment 17y ago · link · parent

I see this with SuddenLink as well, and it's very aggravating just for usability reasons, much less the fact that they don't deserve the ad revenue.

Usually I'm one character off the URL I meant to type, and all I want to do is go to my location bar and fix it. But instead, I'm redirected to $NEW_URL, which requires me to completely retype the desired URL. And since I'm then angry because of the stupid ad page, I sometimes mistype it again. :)

comment 17y ago · link · parent

I think the best guideline is to imagine the percentage of time someone has to work. Although some people are lucky enough to work reasonable hours for high pay, many are not. Assume that an hour of their free time is basically priceless.

Having said that, some people will also be more efficient. Imagine if you have a car, versus walking or using a bus; you might complete 5 errands in an hour by car, that wouldn't be possible without a car. To "save an hour" means different things to these people.

Time can even be a bit of a paradox. If you make a task 1000 hours faster, you don't necessarily "save" 1000 hours of free time, due to multi-tasking. Consider a small, repetitive task. If it takes a few minutes to finish, I will switch to something else, or maybe go get a drink, effectively compressing the elapsed time to zero. Whereas, if it takes just a few seconds, I'll probably sit and wait, which is dead time. In the end, I'll waste more time on the "faster" task than the slower one!

comment 17y ago · link · parent

I think it's a neat concept, but keep in mind that many programmers can type very quickly; speech should probably deliver something that is difficult to achieve in as much time with a keyboard.

For instance, "begin decorator" might write the entire function-wrapping-function code that is typical for producing a decorator, and that would certainly be faster to say than to type. Whereas, the example of simply importing a library is less useful (to me, anyway).

comment 17y ago · link · parent

If you expand programming to its most basic definition, "customizing the behavior of a computer", then we are nearly there already. People can make computers do much of what they want (view TV shows, find interesting things to read, play music, write journals, buy things, etc.) without using an actual programming language.

Reading isn't as universal as you'd think. Arguably, the ability to read in one language is a different skill than reading in another, just as reading at a 1st grade level is different than being able to read the engineering manuals of the space shuttle. At some point, there are limitations to what a person can do, but within their limits they can do many great things. I think the same will remain true of computer use.

comment 17y ago · link · parent

It's probably more accurate to think of concurrent programming as what's going on in the brains of multiple people, instead of looking at it as how one person's brain would handle parallel threads.

Whenever you need access to information you don't have available, there's a barrier before you can continue that task: maybe you have to go look for somebody, or send a message and wait for a response, or buy a book.

While these dependencies exist, you have some options. You could decide to work on something else; you could stop everything; or you could speculate on what the answer is likely to be, proceed as if that is the correct course, and expect to backtrack if you're wrong. To learn from the experience and not waste as much time in the future, you can remember key facts.

Like any dependency graph, it can explode as more points are involved. If you have many people (or tasks), there's a greater risk that many of them will essentially be unproductive while waiting directly or indirectly for something else. The challenge is to keep everybody in tune and to give them enough to work on so that they're never really wasting time.

2534.

"Old and in the way": is engineering experience recognized?(embedded.com ↗)

11 points · by makecheck · 17y ago · 5 comments

comment 17y ago · link · parent

It was disappointing for them to lead with hints that this is a "really BIG" upgrade, and then decide to only talk about things that would never justify $200.

And if they're going to make a statement like "Finally, Microsoft creates a clean, modern look that competes with Apple's finely designed Mac OS X Leopard", they need to choose screenshots that don't suggest the opposite. Start by not highlighting the bizarre new desktop backgrounds.

comment 17y ago · link · parent

Another good alternative these days is a processor of reStructuredText.

comment 17y ago · link · parent

I think the last point, authenticated metadata, is the most interesting.

In fact, I think it's how web sites like Facebook should have been designed. Rather than "handing over" personal information, each site should receive binary blobs identified only by purpose (e.g. "E-mail address", "photo #3 of gallery 2"). The data could be a copy, an entry in some public registry, or a URL. Facebook can then decide when it wants to send this information to the web browser (e.g. when someone tries to view your photo gallery), and the only way to actually render the blob is with an appropriate decryption key on the client side. The encoding could include other trust factors, such as expiration dates that would make the images impossible to view even with a key.

comment 17y ago · link · parent

Speed of execution and expressiveness are common factors, and this depends on what you're doing. For instance, regular expressions. If you're doing a program that is primarily not dealing with text, but occasionally needs a regex, then Python regexes would be fine. If the program does a lot of text processing, it should probably use Perl, due to the performance and built-in syntax. And if the entire program is a simple filter, "sed" is even better than the Perl sledgehammer.

The standard library can be a big factor. Not having to download a dependency is a big win, which is why large standard libraries such as Python can often be better than something like a CPAN dependency in Perl. It can be the difference between using C++ or Objective-C, versus C. But more generally, if you need to do X, and you already know how to do it with language Y, you'll need a really good reason to try a different language.

comment 17y ago · link · parent

It's probably hard to sum this up in any law, but what you basically want is for products and services to do exactly what they seem to be designed for, with absolutely no other effects. At the very least, a product with "side effects" wastes time, because you're dealing with details that you shouldn't have to care about. In the worst case, of course, the side effects cause actual harm.

And this isn't limited to PCs; for instance, I'm really annoyed when my gas pump throws up a prompt "do you want a car wash?". Why no, actually; since car washes have absolutely nothing to do with gas pumps, you can safely assume that if I'd wanted a car wash, I would have gone through other channels to request one.

comment 17y ago · link · parent

I flag the offtopic stuff, or the 4th time I've seen the same story.

I do think it would be wrong to flag based on titles, since enough flags would auto-kill (and a story could still be interesting and worthwhile with a lousy title). Besides, there are also editors that change the titles.

2541.

Tell HN: Read the FAQ before submitting

14 points · by makecheck · 17y ago · 7 comments

comment 17y ago · link · parent

Microsoft isn't going to kill something that indirectly keeps businesses on Windows.

However, businesses that "can't justify" upgrading their software are kidding themselves. It's not even a software problem...maybe no one educated them about the realities of hardware failure. When your PCs start dying, that's a heck of a time to figure out that you can't even buy something that will run your carefully-unmaintained business software.

comment 17y ago · link · parent

I actually rely on the "jump" of the cursor to tell me where new-lines are, and that's important. (Consider something like a Python program, where the real line-ending will terminate a statement, and the next line's indentation is significant.)

If navigation behavior is to change, there must still be some way for the editor to show the wrapping points. One option is Unicode, which is now fairly well supported by editors and terminals; for instance, special symbols like "¬" could be used to show wrapping points.

comment 17y ago · link · parent

I haven't applied for a job in years, but I've considered that I'd probably forego typical references and just include my LinkedIn profile (where other people's recommendations are visible).

comment 17y ago · link · parent

I continue to wonder why the 2-box model ("single old version of Windows" -> "single new version of Windows") is so unpalatable to Microsoft.

If they think they need so many different versions of Windows, aren't they really saying that the OS has too much packed into it? Make one OS for $100, and then by all means create 3 or 4 add-on software bundles for whatever price...much less confusing than this grid.

comment 17y ago · link · parent

In my case, I have a full-time job unrelated to free software, and I dedicate substantial time outside of work to my free software.

You are wrong to assume that a developer who has programming interests outside of work, would somehow fail to give you "full attention" on the job. If anything, it shows that the developer knows how to write many different kinds of programs (a strength).

comment 17y ago · link · parent

I think the article is technically referring to traits commonly found in project leads in open-source. As opposed to, people who make only occasional, minor contributions to well-established projects, or just toss up random code snippets on a blog, never to be updated again.

I am not at all criticizing the value of these other forms of contributions to open-source. But I am skeptical that an interviewer could draw useful conclusions when reviewing someone's open-source contributions if they are minor. To examine the points of the article:

1. "Knowing how well they write code": If they aren't a chief maintainer of a project, it's not really that easy to tell which random contributions are theirs. You need some fairly large and organized example, for this to be a practical review.

2. "Knowing how to patch": I don't think the vast majority of projects have to deal with this situation. So while it is useful experience, it doesn't seem more likely that someone in the open-source world would have that experience.

3. "Passion": Again, most people aren't going to be deeply passionate about contributing 1 or 2 pages of code to a 10-year-old project that has thousands of revisions. The people who will be passionate are the ones who wrote the thing from scratch and are improving it to this day.

4. "Support": This is actually a paradoxical case, where the people merely using open-source software (and having never seen the code) may be more qualified to support software over time, than the developers. This is because developers spend their time, well, developing, and would be overwhelmed if significant time was just support. Plus, see #3, how many people would be passionate about a project that is a support burden?

5. "Saving money": This is more a reason to use open-source software, than a reason to hire any particular person because of their open-source experience.

comment 17y ago · link · parent

This is a classic case of why you don't necessarily make a UI element look like something real. Every time I used the toggle switches, I just wanted to "swish" them with the mouse (a completely awkward gesture), even though they technically respond to simple on/off clicks like checkboxes do. So all they've done is make the "easy" behavior unintuitive, while almost encouraging an awkward gesture.

comment 17y ago · link · parent

Well, actually, analytics do lie. Browsers such as Opera and OmniWeb have been pretending to be other browsers for years, just so various web sites would actually work for them. And now even the big browsers have this option somewhere.

You also need to match those analytics against actual sales. Ultimately, it's more important if 50% of your checkouts are IE6, not 50% of your home page views.

I'm not disagreeing with the notion of supporting the users you actually have, you'd be crazy to turn your back on a big audience; just be clear about what your data really means.

comment 17y ago · link · parent

I wonder how many organizations use separate test environments; because parallelism is really useful for this kind of migration.

In the case of IE6, it would mean setting up some machines with $NEXT_GEN_BROWSER and some side servers with copies of the antiquated "web" apps. Gradually, everything that's broken without IE6 is fixed by tinkering with the side copy that no one is really using. Sometimes, the company's been really stupid and doesn't even have source code, etc. so "tinkering" might really mean "try something new entirely", but at least they'd be showing interest in modernizing (however long it takes).

The simple fact is that all companies should have this kind of "beta flow", in which they can basically try whatever they want (time permitting). Today it's IE6, tomorrow it could be something entirely different; there will always something new that "might" vastly improve efficiency, and a company that can give these things an honest trial is way ahead. I cringe when I see change-averse IT groups, because deep down I know they're shooting themselves in the foot.

1
848586
98