How to launch an EDITOR (e. g. vim) from a python script?

Calling up $EDITOR is easy. I’ve written this kind of code to call up editor: import sys, tempfile, os from subprocess import call EDITOR = os.environ.get(‘EDITOR’, ‘vim’) # that easy! initial_message=”” # if you want to set up the file somehow with tempfile.NamedTemporaryFile(suffix=”.tmp”) as tf: tf.write(initial_message) tf.flush() call([EDITOR, tf.name]) # do the parsing with `tf` … Read more

How can I get Eclipse to scroll past the bottom of the document?

Considering the current implementation of a Scrollbar, this is not possible. (See org.eclipse.swt.widgets.ScrollBar.java) At any given moment, a given scroll bar will have a single ‘selection’ that is considered to be its value, which is constrained to be within the range of values the scroll bar represents (that is, between its minimum and maximum values). … Read more

Which Stack-Overflow style Markdown (WMD) JavaScript editor should we use? [closed]

In the end, after looking around a bit more for a ready-made editor, I settled on the OpenLibrary WMD port, located at http://github.com/openlibrary/wmd. The reasons I chose this editor Meets most of my requirements. Looks like Stack Overflow’s editor. There are a few behavioral differences (see below). Is built on top of jQuery (and doesn’t … Read more

Intellij 14 weird editor/cursor behaviour

Disabling/Uninstalling the ideaVim plugin seemed to fix the problem for me. The plugin description hints that you can configure it via a configuration script in ~/.ideavimrc, which there may also be options to get “normal” behavior with the plugin installed but I haven’t looked into that though because the plugin doesn’t seems all that useful … Read more

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