Related Posts
Emacs Pocket Guide
I wrote this a long long time ago when I was learning emacs, then pasted it on linuxmachos.org, but that site is down atm. So here’s for future reference EMACS POCKET GUIDE Ctrl+g Cancels anything (useful for n00bs) == Saving == Ctrl+x s Save buffer (buffer a.k.a filez) Ctrl+x Ctrl+w Save As == Opening and […]
How to enable source highlighting when doing `less mycodefile.ext`
How to enable source highlighting when doing less mycodefile.ext Install source-highlight sudo apt install source-highlight Configure it on your .bash_profile lessWithSourceHighlightSetup() { # location of the script may vary src_hilite_pipe_script=`dpkg -L libsource-highlight-common | grep lesspipe` export LESSOPEN=”| ${src_hilite_pipe_script} %s” export LESS=’ -R ‘ } lessWithSourceHighlightSetup Use it on any code file less -N /path/to/mycode.ext view […]
[ANDROID] How to set a custom title View on a DialogPreference extending class.
So you have a FooDialogPreference class which extends DialogPreference, and one of the things you’d like to do to it, is to change the Dialog’s title. DialogPreference happens to be a bit of a bitch, you can’t just call getDialog() and start playing with its features before it is shown because the Dialog object is […]