Monday, May 03, 2021
read the news that Emacs native compilation merged into trunk
for os x, the easiest way is check out d12frosted/homebrew-emacs-plus
$ brew tap d12frosted/emacs-plus
$ brew install emacs-plus@28 --with-native-comp
do whatever needed to fix python3/pip, this works for me:
$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ python3 get-pip.py
it took me a day to compile LOL, but can feel it is faster now, good
on my pinebook pro is much easier, debian already have libgccjit-dev
package, then I just need to compile emacs:
(from https://www.emacswiki.org/emacs/GccEmacs)
$ git clone git://git.savannah.gnu.org/emacs.git
$ cd emacs
$ ./autogen.sh
$ ./configure --with-native-compilation
$ make -j$(nproc)
Tuesday, May 04, 2021
this one gonna be big: Hosting SQLite databases on Github Pages - (or any static file hoster)
he uses http range
header, fake the underlying file system takes it as page. even though it's read-only, but still very useful
he also demostrated to fake the dom manipulation to read-write doms, pretty cool
from Diving Deep on S3 Consistency (not really a deep dive)
one interesting part is the consistency witness component in their metadata system:
- to understand if the cache’s view of an object’s metadata was stale
- acts like a read barrier during read operations allowing the cache to learn if its view of an object is stale. The cached value can be served if it’s not stale, or invalidated and read from the persistence tier if it is stale.
- tracks minimal state and only in-memory
no further details though
slowly reading How to Take Smart Notes, Luhmann's slip box is quite interesting, I forgot the details but the points might be:
- when taking notes, don't copy the lines, write in your own words
- revisit within few days and transfer it to permanent notes
- don't just label it by category, label it by when you gonna need this note / project you're working on
- write down to a note in order to make room for your shot-term momery, your brain thinks it's "done" once your wrote it down, so it won't keep reminding you
Friday, May 14, 2021
did lots of debugging recently, finally setup exuberant ctags for some projects
first install exuberant ctags explicitly (there is ctags
command available in os x but that one is the original one):
$ brew install ctags
search online find some .ctags
patterns, save it to ~/.ctags
then in the project directory, run
$ ctags -eR .
R
is recursive and e
is to compatible with emacs
it will generate a TAGS
file
using ctags under vim, first put this to ~/.vimrc
:
set tags=./TAGS;/
that's it, navigate with:
Ctrl+]
- go to definitionCtrl+T
- jump backCtrl+W Ctrl+]
- open the definition in a horizontal split
for emacs is a bit messy, first you'll need to select the TAGS
file by M-x visit-tags-table
usually this will work:
M-.
- go to definitionM-,
- jump back
but for js2-mode
, I don't know why there's a key mapping to M-.
, need to unset it first:
(add-hook 'js2-mode-hook (lambda () (define-key js2-mode-map (kbd "M-.") nil)))
emacs native comp shows lots of warnings, the fix is set comp-async-report-warnings-errors
to nil
Sunday, May 16, 2021
pull back out my vortex core keyboard and play around, since the configuration is really hard to remember, I need to add it to my keyboard page for future use.
I also looking for a split keyboard, the moonlander looks good, but I saw it on a youtube video the connector of thumb cluster is quite fragile, a big no
uhk, quite nice but I can't decide whether I need a thumb cluster module or not. I like the size of it and their palm rest, but adding thumb cluster and shipping that's over my budget.
ergodox ez, I'm worried about the thickness and hate the palm rest, also heard about thumb cluster being too far away, cheaper than uhk but still quite expensive.
and seems I will prefer Dygma Raise, I only needs about four keys near my thumbs, thumb cluster kind of waste of space for me, so this one is perfect and I don't need to think about add-ons. I'm not sure I like the neuron though
finally Kinesis Advantage2 Silver, not a split keyboard but looks really cool, just so big for my desk ..
Thursday, May 27, 2021
I keep using the vortex core these couple weeks, now I can't go back to 60% keyboards, not even the hhkb
it's about less finger stretching on a 40% keyboard, thumbs do all the hard works
I like the title of this article: Move the keys to your fingers and I agree that 48 keys are plenty
but vortex core is far from perfect, it only has two useful thumb keys, the right space bar is too long and the pn
besides is wasted, so I ordered a planck, it's ortholinear layout, even less finger travel?
and after using cherry mx speed slilver switch for a while, I really like it, now the clicky sound annoys me a little bit
Friday, May 28, 2021
neovim looks realy good: Neovim (0.5) Is Overpowering I'm quite happy with my current vim setup though, very minimal and functional, not sure I'll jump ship to neovim
found a great emacs package: karthink/popper: Emacs minor-mode to summon and dismiss buffers easily.
I hate emacs window management, I used this package a bit and seems really solved my problem
Monday, May 31, 2021
the planck arrived, it's quite easy to assemble, but spent some time to figure out the raise
and lower
keys in the configurator (it's the MO
key) still testing different key arrangements, so far I'm ok with ortholinear layout
Blog Archive
- Newer Entries
- 2021 June
- 2021 August
- 2021 September
- 2021 December
- 2022 March
- 2022 April
- 2022 May
- 2022 June
- 2022 July
- 2022 August
- 2022 September
- 2022 October
- 2022 November
- 2022 December
- 2023 January
- 2023 February
- 2023 March
- 2023 April
- 2023 July
- 2023 August
- 2023 September
- 2023 October
- 2023 November
- 2023 December
- 2024 January
- 2024 February
- 2024 March
- 2024 April
- 2024 May
- 2024 June
- 2024 August
- 2024 September
- 2024 October
- 2024 November
- Older Entries
- 2021 April
- 2021 March
- 2021 February
- 2021 January
- 2020 December
- 2020 November
- 2020 October
- 2020 September
- 2020 August
- 2019 December
- 2019 November
- 2019 October
- 2019 July
- 2019 May
- 2019 April
- 2019 March
- 2019 February
- 2019 January
- 2018 December
- 2018 November
- 2018 October
- 2018 September
- 2018 August
- 2018 July
- 2018 June
- 2018 May
- 2018 April
- 2018 March
- 2018 February
- 2018 January
- 2017 December
- 2017 November
- 2017 October
- 2017 September
- 2017 August
- 2017 July
- 2017 June
- 2017 May
- 2017 April
- 2017 March
- 2017 February
- 2017 January
- 2016 December
- 2016 November
- 2016 October
- 2016 September
- 2016 August
- 2016 July
- 2016 June
- 2016 May
- 2016 April
- 2016 March
- 2016 February
- 2016 January
- 2015 December
- 2015 November
- 2015 October
- 2015 September
- 2015 August
- 2015 July
- 2015 June
- 2015 May
- 2015 April
- 2015 March
- 2015 February
- 2015 January
- 2014 December
- 2014 November
- 2014 October
- 2014 September
- 2014 August
- 2014 March
- 2014 February
- 2014 January
- 2013 December
- 2013 October
- 2013 July
- 2013 June
- 2013 May
- 2013 March
- 2013 February
- 2013 January
- 2012 December
- 2012 November
- 2012 October
- 2012 September
- 2012 August