From 6ae6e11b3662119874e8968feaeb9203961cd874 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Wed, 13 May 2020 22:16:22 -0400 Subject: add the rest of 2019 transcripts thanks again aindilis for those of them that you transcribed! --- 2019/transcripts.md | 2 +- 2019/transcripts/10.md | 180 +++++++++++++++++++++++++++++++++++++++++++++++++ 2019/transcripts/19.md | 49 ++++++++++++++ 2019/transcripts/22.md | 79 ++++++++++++++++++++++ 2019/transcripts/28.md | 104 ++++++++++++++++++++++++++++ 2019/transcripts/29.md | 41 +++++++++++ 6 files changed, 454 insertions(+), 1 deletion(-) create mode 100644 2019/transcripts/10.md create mode 100644 2019/transcripts/19.md create mode 100644 2019/transcripts/22.md create mode 100644 2019/transcripts/28.md create mode 100644 2019/transcripts/29.md (limited to '2019') diff --git a/2019/transcripts.md b/2019/transcripts.md index 7c4f5396..e297db49 100644 --- a/2019/transcripts.md +++ b/2019/transcripts.md @@ -15,7 +15,7 @@ Emacs community update - Sacha Chua - script at ## Dev talks - [[Emacs: My awesome Java environment - Torstein Krause Johansen (skybert)|19]] -- [[Packaging Emacs packages for Debian|22]] +- [[Packaging Emacs packages for Debian - David Bremner|22]] - [[Restclient and org-mode for Api Documentation and Testing - Mackenzie Bligh|29]] To be completed later. diff --git a/2019/transcripts/10.md b/2019/transcripts/10.md new file mode 100644 index 00000000..862d71df --- /dev/null +++ b/2019/transcripts/10.md @@ -0,0 +1,180 @@ +[[!meta title="Notmuch New(s) - David Bremner"]] + +``` +#+TITLE: Notmuch New(s) +#+AUTHOR: David Bremner +#+PROPERTY: header-args:sh :results output :session demo :output session + +* What is notmuch? +** A tool(kit) for indexing and searching mail +#+begin_src dot :file ecosystem.pdf +digraph ecosystem { + size = "4,3" + margin=0 + graph [fontsize=20] + node [fontsize=20] + edge [fontsize=20] + + gmime + xapian + notmuch_cli [shape=record,style=filled, color=yellow,label="notmuch CLI"] + libnotmuch [style=filled,color=gold] + + subgraph cluster_clients { + style=filled; + color=cadetblue3; + label="Mail user agents"; + node [shape=record, style=filled, color=white]; + notmuch_emacs [label="notmuch-emacs",color=yellow] + alot + bower + astroid + notmuch_web [label="notmuch-web"] + noservice + neomutt + notmuch_vim [label="notmuch-vim", color=lightyellow] + notmuch_mutt [label="notmuch-mutt", color=lightyellow] + } + + + subgraph cluster_tools { + style=filled; + color=darkolivegreen2; + label="tools"; + node [shape=record, style=filled, color=white]; + afew + nmbug [color=yellow] + notmuch_report [label="notmuch-report"] [color=yellow] + } + + subgraph cluster_bindings { + label="Bindings" + style=filled; + color=lightyellow; + node [shape=record, style=filled, color=white]; + ruby_notmuch [label="ruby", color=yellow] + python_notmuch [label="python", color=yellow] + notmuch_go [label="go"] + notmuch_rust [label="rust"] + } + + neomutt -> libnotmuch + astroid -> libnotmuch + alot->python_notmuch + notmuch_emacs->notmuch_cli + notmuch_mutt->notmuch_cli + notmuch_vim->ruby_notmuch + bower -> notmuch_cli + + noservice->notmuch_cli + nmbug->notmuch_cli + notmuch_report-> python_notmuch + + python_notmuch->libnotmuch + ruby_notmuch->libnotmuch + notmuch_go ->libnotmuch + notmuch_rust ->libnotmuch + + notmuch_web->notmuch_cli + notmuch_cli->libnotmuch + + afew->python_notmuch + + libnotmuch->xapian + libnotmuch->gmime + { + edge [style="invisible",arrowhead="none"] + notmuch_emacs->astroid + notmuch_emacs->neomutt + notmuch_emacs->notmuch_vim + notmuch_emacs->alot + notmuch_emacs->bower + bower->notmuch_vim + bower->astroid + notmuch_web->noservice + } + +} +#+end_src + +** Emacs interface(s) to notmuch +(notmuch-search "from:floris subject:cffi") +(notmuch-tree "from:floris subject:cffi") + +#+RESULTS: + +* What is new? +** Search Improvements +*** separate message body indexing +(notmuch-search "body:emacsconf and not subject:emacsconf") +*** user defined headers, e.g. =List-Id= +#+begin_src sh +notmuch config set header.List List-Id +notmuch reindex date:1month.. +#+end_src + +(notmuch-search "List:notmuch date:1month..") +** Cryptography Support +- (optional) indexing cleartext of encrypted e-mails +- (optional) caching of session keys +#+begin_example + ┌───────────────┬───────┬──────┬─────────┬──────┐ + │ │ false │ auto │ nostash │ true │ + ├───────────────┼───────┼──────┼─────────┼──────┤ + │Index cleart‐ │ │ X │ X │ X │ + │ext using │ │ │ │ │ + │stashed ses‐ │ │ │ │ │ + │sion keys │ │ │ │ │ + ├───────────────┼───────┼──────┼─────────┼──────┤ + │Index cleart‐ │ │ │ X │ X │ + │ext using se‐ │ │ │ │ │ + │cret keys │ │ │ │ │ + ├───────────────┼───────┼──────┼─────────┼──────┤ + │Stash session │ │ │ │ X │ + │keys │ │ │ │ │ + ├───────────────┼───────┼──────┼─────────┼──────┤ + │Delete stashed │ X │ │ │ │ + │session keys │ │ │ │ │ + │on reindex │ │ │ │ │ + └───────────────┴───────┴──────┴─────────┴──────┘ +#+end_example +- indexing, searching, rendering /protected Subjects/ + - sent by Enigmail and K-9 mail + +** Support for gzipped mail files +(notmuch-show "id:1319286098.13821.57.camel@pc-jirka") +#+begin_src sh +bigfile=$(notmuch search --output=files id:1319286098.13821.57.camel@pc-jirka) +ls -lh ${bigfile} +gzip -9 ${bigfile} +notmuch new +#+end_src + +#+begin_src sh +gunzip ${bigfile} +notmuch new +#+end_src + +* What is next? +** notmuch-emacs improvements +- better docs? +- more asynch things +- convenience features, e.g. jump to parent messages +** Updating python bindings +- based on CFFI +- more /Pythonic/ +- less broken with Python >= 3.6 + +** Protected Headers Support +- authoring protected headers + +* Cleanup this buffer +#+begin_src elisp +(org-babel-remove-result-one-or-many 't) +#+end_src + +* Configuration +# Local Variables: +# org-confirm-babel-evaluate: nil +# End: +``` diff --git a/2019/transcripts/19.md b/2019/transcripts/19.md new file mode 100644 index 00000000..1419e1ea --- /dev/null +++ b/2019/transcripts/19.md @@ -0,0 +1,49 @@ +[[!meta title="Emacs: My awesome Java environment - Torstein Krause Johansen (skybert)"]] + +## Emacs: My awesome Java environment + +by torstein @ skybert dot net + +## Hi, I'm Torstein 👋 +- Been in ❤ with Emacs since 2000 + +## I've used many Java plugins/packages + +- java-mode (2000 → 2001) +- [JDEE](//github.com/jdee-emacs/jdee) (2001 → 2009) +- [gtags](//www.gnu.org/software/global/manual/global.html) +- jtags +- [Malabar](//github.com/m0smith/malabar-mode) (2011 → 2012) +- [JDIbug](//github.com/udalrich/jdibug) (2009 → 2011) +- [eclim](//github.com/emacs-eclim/emacs-eclim) (2013 → 2017) +- [Meghanada](//github.com/mopemope/meghanada-emacs) (2017 → 2018) +- [lsp-java](//github.com/emacs-lsp/lsp-java) (2018 → present) + +## My requirements +- Zero conf: Easily setup a new Java project +- Fast: must handle large projects +- Large meaning ~7000 classes (Tomcat has 2200) +- Easy to switch between projects + +## Seeing is believing + +Will use a wee app, [cheese-shop](//gitlab.com/skybert/cheese-shop) to +show the Java features in Emacs. + +- Auto completion +- Code navigation +- Jump to source of 3rd party libraries +- Import classes +- Static import methods and fields +- Run JUnit tests from within Emacs +- Linting +- Unused variables +- Wrong syntax +- Missing generics +- Implement missing class +- Implement missing method +- Debug application from within Emacs +- Debugger with conditional break points +- Refactoring: rename variable +- Refactoring: extract to variable +- Refactoring: extract to method diff --git a/2019/transcripts/22.md b/2019/transcripts/22.md new file mode 100644 index 00000000..3a6daa49 --- /dev/null +++ b/2019/transcripts/22.md @@ -0,0 +1,79 @@ +[[!meta title="Packaging Emacs packages for Debian - David Bremner"]] + +``` +#+TITLE: Packaging Emacs packages for Debian +#+AUTHOR: David Bremner +#+PROPERTY: header-args:sh :results output :session demo :output session +* Why Debian Packages for Emacs addons? +** For users +- Extra layer of curation +- Integration testing +- Non-emacs dependencies are easy +- Co-operates with other =package.el= sources, e.g. /Melpa stable/. +** For admins +- Familiar tools +- Known trust model +- Building VM images +- Stable releases + +* Packaging demo +** setup +#+begin_src sh :var dir=(expand-file-name default-directory) +export SUDO_ASKPASS=/usr/bin/ssh-askpass +export DPKG_COLORS=never +export DEBIAN_FRONTEND=noninteractive +cd $dir +rm -rf build +mkdir build +cd build +#+end_src + +** grab the source +#+begin_src sh +git clone -q -o upstream https://github.com/takaxp/org-tree-slide.git +#+end_src + +** generate the packaging +#+begin_src sh +cd org-tree-slide +dh-make-elpa --pkg-emacsen +#+end_src + +** inspecting the results +#+begin_src elisp +(dired "build/org-tree-slide/debian") +(dired-hide-details-mode) +#+end_src + +** building the package + +#+begin_src sh +dpkg-buildpackage -uc -us -b +#+end_src + +** install the package +#+begin_src sh +sudo -A env NEEDRESTART_SUSPEND=y DEBIAN_FRONTEND=noninteractive \ + apt-get install --reinstall -q -y ../elpa-org-tree-slide*.deb . This example uses + restclient.el, which is a domain specific language for working with + restful APIs and OBRestClient to provide the wrappers for Org-mode, + however these are just the wrappers for what I use, the principles I + demo here can work with any set of programming languages that's + supported by Org-mode and has network calls. + +- So I find this way of writing documentation great because it helps + people get into using Emacs and provides a shallow learning curve + without being overwhelming of how to use Emacs. The second thing + that's great about it is it helps support maintenance of + documentation, because the documentation itself is actually used to + interact with APIs. Therefore it's providing utility to developers + and they can use it and maintain it all at the same time. As an + added benefit you have full Org-mode support for task management + doing things like exporting to other formats, building scripts via + tangling, as well as writing very complex API interactions by + feeding the output of one API into the input of another API. + +- I tend to favor using ELisp for simple things like building + requests, log in strings, things like that as you'll see. I do try + to avoid using languages or tooling that aren't integrated with + Emacs, however if it makes my life easier I'll use ubiquitous tools + like curl and jq as needed. I've included a mock server that I + already have running here, and you can find details about how to get + that set up if you're interested in the repo and link up above. So + let's jump right in. + +- Here is provided a sample document for a stock trading + application. We've got + +To be completed later. -- cgit v1.2.3