How to make a combo box with fulltext search autocomplete support?

The following example uses the interposed class of the TComboBox component. The main difference from the original class is that the items are stored in the separate StoredItems property instead ofthe Items as usually (used because of simplicity). The StoredItems are being watched by the OnChange event and whenever you change them (for instance by … Read more

Can GitHub Copilot stop auto-suggesting, instead be triggered by a keystroke?

In settings.json (under File, Preferences, Settings), I found that setting the more general option: “editor.inlineSuggest.enabled”: false, Seems to work as I’d hoped. Copilot suggestions are now only provided on-demand, when I press Alt\, and accepted when I press Tab I worry that this might disable other types of suggestions I rely on… but language auto-completion … Read more

Android programmatically disable autocomplete/autosuggest for EditText in emulator

For Vodafone 845 (2.1), huawei 8800 (2.2) devices, textVisiblePassword seems to prevent word prediction. vendorId.setInputType(android.text.InputType.TYPE_CLASS_TEXT | android.text.InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD); or android:inputType=”textVisiblePassword” [Edit] this answer is quite old and I don’t have the environment anymore to test to get up-to-date info for comments here, sorry.

Algorithm for autocomplete?

For (heh) awesome fuzzy/partial string matching algorithms, check out Damn Cool Algorithms: http://blog.notdot.net/2007/4/Damn-Cool-Algorithms-Part-1-BK-Trees http://blog.notdot.net/2010/07/Damn-Cool-Algorithms-Levenshtein-Automata These don’t replace tries, but rather prevent brute-force lookups in tries – which is still a huge win. Next, you probably want a way to bound the size of the trie: keep a trie of recent/top N words used globally; for … Read more

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