Class file name must end with .class exception in Java Search

Comment #9 to bug 269820 explains how to delete the search index, which appears to be the solution to a corrupt index whose symptoms are the dreaded An internal error occurred during: “Items filtering”. Class file name must end with .class message box. How to delete the search index: Close Eclipse Delete <workspace>/.metadata/.plugins/org.eclipse.jdt.core/*.index Delete <workspace>/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt … Read more

Can I do a MongoDB “starts with” query on an indexed subdocument field?

When you disable table scans, it means that any query where a table scan “wins” in the query optimizer will fail to run. You haven’t posted an explain but it’s reasonable to assume that’s what is happening here based on the error. Try hinting the index explicitly: db.articles.find({“source.homeUrl” : { $regex : /^http/ }}).hint({“source.homeUrl” : … Read more

Show Count of Matches in Vim

Modern Vim Starting with Vim 8.1.1270, there’s a new feature in core to show the current match position. NeoVim enables this functionality by default, but standard Vim does not. To enable it in standard Vim, run: :set shortmess-=S Originally mentioned below in Ben’s answer, and added here for visibility. Older Versions In Vim 7.4+, the … Read more

JSON find in JavaScript

(You’re not searching through “JSON”, you’re searching through an array — the JSON string has already been deserialized into an object graph, in this case an array.) Some options: Use an Object Instead of an Array If you’re in control of the generation of this thing, does it have to be an array? Because if … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)