Better HN
topnewbestaskshowjobs
Log inSign up

elehack

1,764 karma · joined Feb 7, 2011 (15y ago) · 257 submissions

Associate Prof., Information Science, Drexel University.

Lead developer, LensKit recommender toolkit.

Ph.D, University of Minnesota.

Submissions

comment 14y ago · link · parent

Bing gets everyone's search terms merged together, with no way to distinguish individual users. To Bing, it looks like one user doing a bajillion searches on all manner of topics.

In the AOL case, while IP addresses were stripped, users were identified with unique keys so you could see individual users' search sequences. That is not the case here.

comment 14y ago · link · parent

Very nice - this will make RFC reading much easier. Would be nice to have DuckDuckGo use it - will submit !bang request.

Any timeframe on finishing RFC coverage? RFC 3514 isn't prettyfied yet.

comment 14y ago · link · parent

> 1. The applet to inhibit screen sleeping went away. Without it, I often look up from working on a hard problem to discover that my screens have been blanked out.

The Presentation Mode shell extension fixes this - adds an option to the drop-down menu on the power meter to turn on presentation mode, disabling screen blanking & locking.

> 4. About half of the GNOME configuration has moved to gconf to dconf, but there's no rhyme or reason as to which half. When I discovered the new settings applet, I tried to change stuff with gconf/dconf, except I have no idea how to figure out which applications use what settings storage backend.

I think finishing this migration is a work-in-progress.

Don't have immediate solutions for the rest of your gripes. Gnome 3 seems to be a love-it-or-hate-it thing; I find it to be great (modulo a few bugs and quirks, but it isn't everyone's cup of tea.

comment 14y ago · link · parent

I've been quite pleased with TinyTinyRSS lately - it's got some UI bugs, esp. in the web client, but self-hosted web-based RSS reading + sync to Android client is full of win for me.

comment 14y ago · link · parent

I tried not to confuse them, but don't seem to have done a good job.

You are correct, the non-redistributability of many O'Reilly books is what they would they would object to, not cost. And not all O'Reilly books are non-redistributable - they have a number of books under open licenses.

comment 14y ago · link · parent

You go over to O'Reilly and buy a DRM-free e-book. Now, the FSF likely won't suggest that because they don't like mentioning the existence of “non-free” documentation, but IMO one of the best ways to protest DRM is by saying, with our pocketbooks, that we want e-books and are willing to pay good money for them but find DRM unacceptable.

If Tor had gotten their DRM-free book thing in order by now, rather than waiting until July or so, I'd probably also be buying a Tor e-book today.

comment 14y ago · link · parent

Partly - the Unix philosophy. Since you can swap out your window manager on X11, you can have your windows managed in any of a wide number of ways. If an application tries to manage subwindows on its own, there is a very good chance that it will do so differently than your global window manager. Assuming that there is a reason you picked the global WM that you did, it's rather disconcerting to be forced to use an inferior WM to manage Gimp's windows.

Add to that the multi-desktop, multi-monitor aspects (although detachable docking panes can help a lot with that).

comment 14y ago · link · parent

That's why DMCA takedown notices must be filed with an assertion, under penalty of perjury, that the request is legit (requestor is authorized to issue it, it is an infringement, etc).

Not perfect, but it does make a pretty big disincentive to being caught issuing fraudulent takedown notices.

comment 14y ago · link · parent

Branching is one of the big differences. I find Mercurial's named branches mostly useless; fortunately, with some care, bookmarks can be used to simulate Git-style branches.

I think, early on, the Mercurial community favored cloning as the means of creating feature branches, while Git used named branches to do so. But in many cases you want to be able to switch lines of development in a single repository (especially when using a workspace-based IDE like Eclipse), so the Git model becomes a win.

comment 14y ago · link · parent

This comment - and several others - seem to only be seeing half the picture in this new policy. Yes, it says they won't distribute software the know to infringe.

But the other aspects of the policy set up working practices and operating procedures to minimize visible, organizational knowledge of patents. It seems to me that they're actively trying to avoid knowing about patents so that they don't have to invoke the no-distribute clause and, if they do get sued, can hopefully keep away willful infringement claims. I think that's in general been their goal, but the new policy provides a clear and consistent mechanism for handling the issue.

comment 14y ago · link · parent

They didn't - last I knew - distribute LAME or other MP3 encoders. I think the patent enforcement situation has changed since that call was originally made, but earlier (late 90's, early 2000's), the patent owners were enforcing patents for encoders but not decoders.

132.

Call for Demos - ACM Recommender Systems 2012(recsys.acm.org ↗)

1 points · by elehack · 14y ago · discuss

comment 14y ago · link · parent

Actually, wrapping the code in {} does make a difference with 'let'. A 'let' in braces does not escape the braces.

comment 14y ago · link · parent

It's a “bug” (and yes, I'm using that deliberately in an opinion-as-fact sense) because it is a blatant violation of the Principle of Least Surprise, especially for those coming from C-style backgrounds. If you are a C-style language (which JS is), and you do something in a non-C-style way, you should have a very good reason (besides implementation artifacts and/or not thinking robustly about scope). I haven't seen anything indicating that var's behavior is a well-reasoned, principled choice - as far as I know, it's just how JS 1.0 worked, and we're stuck with it.

In my opinion, unnecessary surprise as a result of historical implementation artifacts is a design bug.

Yep, need to learn about it. Yep, you can, and write good JavaScript. But that doesn't mean the design is good.

135.

Cutting Through the Anti-Copyleft Political Ruse(ebb.org ↗)

2 points · by elehack · 14y ago · discuss

comment 14y ago · link · parent

JavaScript's 'var' behavior is a bug codified in specification. It is counter to pretty much any other C-style language; the difference is particularly acute because it breaks closures. So while other languages (e.g. C) could optimize their variable implementation to be like JavaScript's and still make sense, the fact that JS has closures means this breakage becomes visible on a routine basis.

However, they cannot change var's semantics and retain backwards compatibility. So they did the next best thing: introduce a new keyword for variables that work like they should. That keyword is 'let'.

As far as I am concerned, if your JS is known to execute in an environment with 'let', 'var' might as well not exist. Too many subtle errors — “what do you mean, braces don't actually delimit scope?”

comment 14y ago · link · parent

I use the excellent fastutil for primitive collections - it has great integration with java.util collections, and has a more standard design than Trove in my opinion. Works great.

comment 14y ago · link · parent

I really like seeing this bill come up - the opposite of the Research Works Act, and a bill that will greatly improve access to research in the U.S.

I am concerned, however, that it uses “peer reviewed journals” as the standard for mandating publication. Computer science does most of its ongoing publication in conferences, not journals; also, specifically naming “journals” seems to me to invite name games, unless journal is defined sufficiently broadly in the bill's text.

I would prefer to see the requirements kick in when research is published in any peer-reviewed publication.

But still, this bill is a great step forward, and things like this are details that can hopefully be worked out.

comment 14y ago · link · parent

I don't think he uses any, particularly since he is only connected to the internet 2-3 times a day.

He uses Emacs for all his mail and, presumably, contact management. Last I knew, he was still using RMail, not even something newer like Gnus.

comment 14y ago · link · parent

One more trick that I really like: using an SSH agent. On Gnome-based systems, Seahorse provides one (sometimes you have to install seahorse-plugins to get it); otherwise, gpg-agent can be an ssh agent. Pageant on Windows, and I'm not sure what's available on Mac.

SSH agents let you keep your key encrypted while only needing to enter your passphrase on first use (with the default ssh-agent, you must load the key manually with ssh-add; gpg-agent and seahorse both prompt you the first time it's needed). Add that to SSH agent forwarding (where multi-hop SSH connections authenticate using the agent on the originating machine, and your key is (A) only on the local machine and (B) encrypted when not in use.

comment 14y ago · link · parent

The feature implementation and details have seen some refinement, so it's much less of a mess in its current state (e.g. the directories are symlinked, not the files): https://fedoraproject.org/wiki/Features/UsrMove

You get wins on packaging (don't need to worry about where to scatter executables, although this doesn't affect many packages), as well as "all software is under /usr", so everything the package manager touches except config file updates is under a single directory. This makes both centralized updates and pre-update snapshotting much more feasible.

I'm really looking forward to this feature. With appropriate support from the file system and yum, it seems like it brings us one step closer to truly transactional multi-package system updates/software installations. Yes, some of this was already possible with snapshotting support in a plugin for Yum, but I think the consolidation will likely make implementing such features simpler and more robust.

comment 14y ago · link · parent

Agree totally.

NetBSD uses the more sensical /usr/pkg for package-managed software, leaving /usr/local for the admin.

143.

The Trello Tech Stack(blog.fogcreek.com ↗)

431 points · by elehack · 14y ago · 93 comments

comment 14y ago · link · parent

Look at PostgreSQL's hstore data type - that's pretty much what you're asking for.

comment 14y ago · link · parent

Java 7 uses escape analysis to do stack allocation by default. So, if you play along and write code for which the escape analyzer can activate stack allocation (I don't know what the rules are for this), you can get those benefits.

comment 14y ago · link · parent

Nice to see something actually trying a CLOS-style object system. There are good ideas in there that don't get enough presence in more recent language efforts.

comment 14y ago · link · parent

Stallman does not say that he wants to control what particular software you use - he has simply stated a condition necessary for software to be acceptable to him. Its acceptability or lack thereof is entirely dependent on that pre-stated condition being met, not on his further decision-making.

And if software meets that condition - free for modification and redistribution - then the user (e.g. a government agency) is free to deviate from the maintainer's direction and modify it for internal use.

comment 15y ago · link · parent

Except he was playing by the rules, and got shafted anyway. They erroneously price-matched, making his book free, and depriving him of royalties. Their mistake; his loss.

comment 15y ago · link · parent

> I'm very interested in any citation related to apparent congressional intent that in some cases software should be patentable. Please share.

If memory serves, Kennedy's arguments in the SCOTUS decision in the Bilski case are based in part on apparent congressional intent. I don't have concrete citations to actual congressional activity; this impression is seeing it alluded to or asserted in decisions such as In re. Bilski. I'm making the assumption that the justices are not totally fabricating, although they may be misinterpreting.

comment 15y ago · link · parent

Until the SCOTUS decisively overturns Federal Circuit precedent, it counts as "the courts". Yes, it seems that the SCOTUS isn't pleased, and things are looking up, but current national precedent is that software is patentable. I believe this is based on some interpretation of congressional intent, and Congress has not stated that it does not consider software to be patentable but, rather, that in some cases at least it should be. I have seen this line of reasoning used in court decisions I have looked over.
1
456
9