2007-04-23 Wojna
Dziś rano włączyłem radio... //Fiasko rozmów w sprawie rosyjskiego embarga na polskie mięso... Arcybiskup . . .
1K - last updated 2007-04-23 12:05 UTC by Marcin Borkowski
2007-05-01 spam
Dziś kolejny spamer przelał czarę - tym razem nie goryczy, trochę się już uodporniłem - ale że tak rzekę, . . . mógł wpisać na [[http://atos.wmid.amu.edu.pl/~mbork/cgi-bin/wiki.cgi?action=password|stronie logowania]]. . . .
2K - last updated 2007-05-01 15:58 UTC by Marcin Borkowski
2007-09-24 tikz-2d
A dzisiaj dla odmiany niespodzianka: parę nowinek [[TeX|TeX]]owych. Właśnie na [[http://www.fauskes.net/|stronie . . . sobie zrobić sprytne fonty i makra;)), do kombajnu, w którym można robić profesjonalną grafikę . . .
2K - last updated 2007-09-24 11:08 UTC by Marcin Borkowski
2008-03-24 Chleb
//Pozwólcie, dzieci Boże, że wspomnę na osobiste doświadczenia z pierwszych dni II wojny światowej. Znajdowałem . . . wszyscy się boją, ubezpieczają, samoloty bombowe nad drogą, a ten spokojnie sieje... Gdy wyspowiadałem . . .
2K - last updated 2008-03-24 21:24 UTC by Marcin Borkowski
2008-04-09 De triangulibus
Oto, co pisze G. Polya w swojej znakomitej książce //Jak to rozwiązać?// (//How to solve it//), w paragrafie . . . się od niego. http://atos.wmid.amu.edu.pl/~mbork/images/triangle.png Ożywczy zdrowy rozsądek, . . .
3K - last updated 2009-01-18 00:01 UTC by Marcin Borkowski
2008-08-25 Korekta italikowa
Dawno, dawno temu, gdy pisało się w [[TeX, LaTeX i s-ka|plain TeXu]], //korektę italikową// wstawiało . . . twierdzenia (kursywą), a po drodze mamy jakieś symbole matematyczne (niekiedy pisane pismem prostym). . . .
5K - last updated 2008-08-26 07:40 UTC by Marcin Borkowski
2008-08-28 Wywiad z Knuthem
Ukazał się [[http://portal.acm.org/ft_gateway.cfm?id=1364794&type=pdf&coll=ACM&dl=ACM|kolejny . . . //If you ask me what makes me most happy, number one would be somebody saying "I learned something . . . from you." Number two would be somebody saying "I used your software."// . . . mówiący: "Używałem twoich programów."// - tłum. MB) . . .
1K - last updated 2008-08-28 12:56 UTC by Marcin Borkowski
2008-09-26 Przeprowadzka
Uwaga -- strona zmieniła adres! Po dłuuugim namyśle wykupiłem sobie domenę w .pl. Proszę o uaktualnienie . . . etc. Aktualny adres strony to [[http://mbork.pl]] (i, mam nadzieję, tak już zostanie). . . .
1K - last updated 2008-09-26 08:46 UTC by Marcin Borkowski
2008-09-30 Propaganda TeXowa
Przedwczoraj, tj. 27. września, na [[http://web.wmi.amu.edu.pl|Wydziale Matematyki i Informatyki]] UAM . . . jak to wyglądało: http://atos.wmid.amu.edu.pl/~mbork/images/kmmp1.jpg http://atos.wmid.amu.edu.pl/~mbork/images/kmmp2.jpg . . . jest dostępny [[http://atos.wmid.amu.edu.pl/~mbork/poster-o-texu.pdf|plik pdf z "posterem" o TeXu]]. . . .
4K - last updated 2008-09-30 19:58 UTC by Marcin Borkowski
2008-12-17 Trwa walka
"Podróżował pan po całym świecie badając różne przesądy i widział pan rzeczy, w porównaniu z którymi . . . się pod postacią rozmaitych głupich i naiwnych symboli. W każdym bądź razie w coś, z czym trzeba walczyć. . . .
2K - last updated 2008-12-17 14:31 UTC by Marcin Borkowski
2008-12-18 Jak to TeX zachwyca, skoro nie zachwyca
TeX jest wspaniały, najlepszy i w ogóle super-bomba-hiper-ekstra-bajerancki. To oczywiście aksjomat -- . . .
3K - last updated 2008-12-18 09:34 UTC by Marcin Borkowski
2009-03-06 AMS-LaTeX, czyli czy leci z nami pilot
Tak sobie dziś przeglądałem plik {{{amsclass.dtx}}} i oto, co znalazłem: == 1000. wiersz kodu == The . . . function {{{\@upn}}} is used to force theorem numbers and similar elements to be upright even when . . . italic. If a suitable italic font with upright numbers and punctuation is available, this function should . . . wiersz kodu == Macro for making non-slanted numbers and punctuation in italic or slanted text. This . . . is to avoid visual inconsistencies between numbers or parentheses in math and adjacent numbers or . . .
2K - last updated 2009-03-06 11:00 UTC by Marcin Borkowski
2009-04-12 Content AND Presentation (en)
I would like to welcome everyone on this new and old blog. (New, because what you see is the first English . . . entry; old, because it's Polish version (http://mbork.pl/Blog) has more than two years.) I chose the . . . wiser than me, with occasional thoughts of my humble person. Even if you are not a Roman Catholic (nor . . . God's children, have to be among those few. Remember that only work that is well done and lovingly . . . (//Friends of God, 55//) //I used to enjoy climbing up the cathedral towers to get a close view of . . .
5K - last updated 2009-04-11 22:17 UTC by Marcin Borkowski
2009-04-14 List of publications of a person (en)
Once in a while you want to typeset a list of publication of somebody (maybe yourself, maybe not). It . . . And this is a code fragment I put into the preamble to achieve this: <LaTeX-source> \BibSpec{article}{% . . . +{} { \PrintDatePV} {date} +{,} { \issuetext} {number} +{,} { \eprintpages} {pages} +{,} { } {status} . . . {contribution} +{,} { Technical Report } {number} +{,} { } {series} +{,} { } {organization} +{,} . . . Journal}, volume={2}, date={2002}, number={1}, pages={12\textendash 20}, } \bib{b3}{book}{ . . .
6K - last updated 2009-04-15 10:07 UTC by Marcin Borkowski
2009-04-27 Fun with quantifiers (en)
Some time ago, a friend of mine asked me how to put a symbol //below// a quantifier---in other words, . . . </LaTeX-source> in the preamble of the LaTeX file; plain TeX or ConTeXt users . . . //atom// of type //Ord// (as in "//Ord//inary symbol"; for discussion of atoms and their types, see . . . is not the end of the story. The quantifier symbol, even with {{{\mathop}}}, does not really behave . . . this is again not very good---the "for all" symbol seems shifted a bit up. This is true: although . . .
6K - last updated 2010-02-21 23:41 UTC by Marcin Borkowski
2009-05-27 Festiwal Nauki i Sztuki
Dzisiaj już drugi raz, tym razem wspólnie z kol. Piotrem Kasprzakiem, opowiadałem o TeXu na [[http://web.wmi.amu.edu.pl/Artyku%C5%82y/tabid/240/ctl/ArticleView/mid/672/articleId/244/XII-FESTIWAL-NAUKI-I-SZTUKI-na-Wydziale-Matematyki-i-Informatyki-UAM.aspx|Festiwalu . . . UAM]]. Oczywiście, można [[http://mbork.pl/static/fnis-mbork-kasp.pdf|pobrać]] plik pdf . . .
1K - last updated 2009-05-27 16:34 UTC by Marcin Borkowski
2009-09-01 Czy mamy schodzić do katakumb
//Nie byłoby ani jednego poganina, gdybyśmy byli prawdziwie chrześcijanami.// (św. Jan Chryzostom) Czy . . .
1K - last updated 2009-09-01 16:39 UTC by Marcin Borkowski
2010-01-15 Customizing end-of-proof marks (en)
I was recently asked by a friend to help him with customizing end-of-proof marks. Say that we are writing . . . solution (to be pasted in the preamble): <LaTeX-source> \newenvironment{solution}{% . . . \proof[Solution]\def\qedsymbol{$\diamond$}% }{% \endproof } </LaTeX-source> . . . the same as {{{\begin{proof}.}}} # The {{{\qedsymbol}}} will be redefined into whatever we want (here, . . .
3K - last updated 2010-01-15 18:34 UTC by Marcin Borkowski
2010-01-19 Przedpotopowy TeX
Jednym z bardzo przykrych i irytujących błędów, jakie popełniają użytkownicy TeXa, jest używanie staroci. . . . ktoś chce sobie cały czas używać swojej preambuły sprzed 15 lat -- nie mam nic przeciwko; ale jeśli . . .
3K - last updated 2010-01-20 10:49 UTC by Marcin Borkowski
2010-09-05 Including bitmaps in LaTeX documents (en)
I was asked some time ago how to include a //jpg// file in a LaTeX document. Well, if you use pdflatex, . . . anyone still use dvi? Well, yes, and for a number of reasons. * On slow computers, {{{xdvi}}} is . . .
3K - last updated 2010-09-04 23:00 UTC by Marcin Borkowski
2010-09-12 A strange LaTeX error when using brackets (en)
Some time ago my friend called me and asked about a weird error he got when using square brackets. He . . . Quite surprisingly, he got a "! Missing number, treated as zero" error message (and an "! Illegal . . .
2K - last updated 2010-09-12 12:29 UTC by Marcin Borkowski
2010-11-23 Changing the layout of theorems in beamer (en)
Continuing my [[2010-11-17 Changing the color of theorems in beamer (en)|previous post]], let's answer . . . begin} {% \begin{\inserttheoremblockenv} {% \inserttheoremheadfont \inserttheoremname . . . \inserttheoremnumber \ifx\inserttheoremaddition\@empty \else : \textmd{\textit{\inserttheoremaddition}} . . . end}{\end{\inserttheoremblockenv}} \makeatother \begin{document} \begin{frame} . . .
2K - last updated 2010-11-23 00:13 UTC by Marcin Borkowski
2011-02-24 Wavy lines as delimiters (en)
Well, it's been a while since I posted here; but today, I've got another real-life problem solution. . . . the [[http://www.ctan.org/tex-archive/fonts/mnsymbol/|MnSymbol]] font & package, which contains . . . might not like (and is incompatible with {{{amssymb}}}/{{{amsfonts}}}). Of course, {{{tikz}}} comes . . . in some fonts. # If the "wavy box" has an odd number of lines, it would be much better if the middle . . .
3K - last updated 2011-02-25 11:11 UTC by Marcin Borkowski
2011-07-08 New version of the enumitem package (en)
Just about a week ago, Javier Bezos uploaded a new, third version of his celebrated [[http://ctan.org/tex-archive/macros/latex/contrib/enumitem|enumitem]] . . . a series is, well..., a series with a common numbering scheme (without using the {{{resume}}} keyword, . . . enumerations without perturbing the series numbering). Not something I would use very often, but . . .
2K - last updated 2011-07-08 12:56 UTC by Marcin Borkowski
2011-07-22 The snapshot and bundledoc packages (en)
//Situation A//: you work on a LaTeX document with a friend, and suddenly your pdf and his pdf---made . . . Pakin (known also for the Comprehensive LaTeX Symbol List, the [[http://mbork.pl/2009-09-20_Save_trees_%28en%29|savetrees . . .
2K - last updated 2011-07-22 19:37 UTC by Marcin Borkowski
2011-08-05 Semi-automatic selection of pages in a pdf (en)
As I mentioned in [[2011-07-29 Enforcing proper usage of LaTeX2e constructs (en)|my previous post]], . . . What's more, I wanted the pages to be properly numbered in the pdf, so that physical first page in the . . . resulting pdf could be numbered, say, 217 (this can be accomplished by using . . . my question . . . table of % contents and do not count in the numbering. \def\firstpagenumber{171} % The first numbered . . .
4K - last updated 2011-08-05 21:23 UTC by Marcin Borkowski
2011-11-25 First three words macro (en)
Today, I read [[http://tex.stackexchange.com/questions/35997/n-first-words-command-for-citation-style|a . . . me that writing a macro for an //arbitrary// number of words might be rather difficult -- especially . . . if the number of words exceeded 7 (see remarks in The TeXbook, . . . Appendix D!), but for a fixed number of words it is relatively easy: <LaTeX-source> . . .
3K - last updated 2011-11-24 23:28 UTC by Marcin Borkowski
2012-01-08 I've discovered a huge security hole in Catholicism
**//Note for non-Polish-speaking readers//:** //the title of this note is ironic, see at the end to see . . . powolną pracą na superkompie, który miał aż 8 MB RAMu, czytałem sobie takiego linuksowego FAQa, z . . .
3K - last updated 2012-05-28 13:13 UTC by Marcin Borkowski
2013-05-10 M-x hello-world (en)
So, having [[2009-04-12_Content_AND_Presentation_(en)|blogged]] (a bit irregularly, I have to admit) . . . feedback from seasoned Emacs users about my humble additions to the Emacs ecosystem, so that I can . . .
2K - last updated 2013-05-10 08:56 UTC by Marcin Borkowski
2013-05-18 A presentation on LaTeX editing (en)
I am proud to be the supervisor of a so-called students' TeX scientific circle. It is a revival of a . . . theme. It is available on [https://github.com/mbork/beamerorgtheme|my GitHub account]. (It is not . . .
2K - last updated 2015-08-29 22:01 UTC by Marcin Borkowski
2013-08-26 docTeX mode and YASnippet (en)
Well, I had a long hiatus in posting here - both real life and then vacation contributed to it. But I'm . . . putting {{{(add-hook 'docTeX-mode-hook '(lambda () (setq yas-buffer-local-condition t)))}}} in . . .
1K - last updated 2013-08-26 06:10 UTC by Marcin Borkowski
2013-09-23 Automatic insertion of habit templates (en)
I have reconciled myself to the fact that more and more of my life is being assimilated by Emacs' Org-mode;). . . . However, I found inserting new habits a bit cumbersome: manually setting the {{{STYLE}}} and {{{LOGGING}}} . . .
2K - last updated 2013-09-27 07:39 UTC by Marcin Borkowski
2013-10-09 Better keymap for org-tree-slide
Recently, I tried out [[https://github.com/takaxp/org-tree-slide|org-tree-slide]] mode for presentations . . . on my keyboard have the previous/next song symbols (and I don't use function keys in Emacs anyway, . . .
4K - last updated 2013-10-16 18:26 UTC by Marcin Borkowski
2013-10-29 The show2e package
I can't (unfortunately) remember where, but somewhere on [[http://tex.stackexchange.com|TeX.StackExchange]] . . .
1K - last updated 2013-10-29 14:57 UTC by Marcin Borkowski
2014-04-20 Victory
Best wishes of eternal life with our King for everyone!!! //Rejoice, let Mother Church also rejoice, . . . and exposed in Moses, and sacrificed in the lamb, and hunted down in David, and dishonored in the . . .
2K - last updated 2014-04-20 07:23 UTC by Marcin Borkowski
2014-08-31 A simple, command-line-driven password store
I am currently in the process of moving my email workflow to a [[http://www.emacswiki.org/emacs/CategoryMail|saner]] . . . and making my [[http://isync.sourceforge.net/mbsync.html|email retrieval tool]] use some kind of . . .
2K - last updated 2014-08-30 22:35 UTC by Marcin Borkowski
2014-09-01 Quick opening of the init file
Since I'm continuously tweaking my Emacs configuration, I found myself repeatedly opening my init file, . . . key, found {{{C-h C-i}}} (maybe not the best combo, but who cares), and did this: {{{ (global-set-key . . . (kbd "C-h C-i") (lambda () (interactive) (find-init-file) (orgstruct-mode . . .
2K - last updated 2014-09-01 19:23 UTC by Marcin Borkowski
2014-09-13 TeX input method
Some time ago, someone on the Emacs mailing list [[http://lists.gnu.org/archive/html/help-gnu-emacs/2014-09/msg00034.html|asked]] . . . of the TeX input method is in typing math symbols. Try it yourself: not only \alpha (α), \beta . . .
2K - last updated 2014-09-13 20:18 UTC by Marcin Borkowski
2014-09-27 show-paren-mode
For today, I only have a short tip. Sorry;-). I guess many Emacs users know about {{{show-paren-mode}}}, . . . this situation: {{{ {abc}|{xyz} }}} (the pipe symbol means the point), the closing brace after {{{xyz}}} . . .
2K - last updated 2014-09-27 21:19 UTC by Marcin Borkowski
2014-10-10 Pretty printing Emacs Lisp code
Typing (E)lisp code in Emacs is great – the editor takes care of proper indentation etc. Sometimes, however, . . . function whose name would be the string (not symbol!) {{{"hello"}}}. However, {{{(pp-eval-expression . . .
2K - last updated 2014-10-10 07:04 UTC by Marcin Borkowski
2014-10-18 Version Control Systems
It is very often the case that one works on a certain document (it might be a scientific paper, it might . . . standard. But this method is error-prone and cumbersome. And usually, if there is something which . . . B variant was better and forget about C, or combine B and C into their conglomerate D. (If the changes . . . in different part(s) of the file(s), this combining – called //merging// – is fully automatic!) . . . //pushing// their changes there, every project member at every moment works on the newest version of . . .
5K - last updated 2014-10-19 00:23 UTC by Marcin Borkowski
2014-10-25 Announcement – org-one-to-many
A few days ago I announced this on the Org-mode mailing list, and let me repeat it here. I started a . . . small project, called [[https://github.com/mbork/org-one-to-many|org-one-to-many]], whose aim . . .
1K - last updated 2014-10-25 16:53 UTC by Marcin Borkowski
2014-11-22 From Ido to Icicle – first steps
I had this in my {{{init.el}}}: {{{ (setq ido-create-new-buffer 'always) (ido-mode 1) (ido-everywhere . . . same applies.) 3. I have yet to learn how to combine a few search terms... I am now going to read . . .
2K - last updated 2014-11-22 12:01 UTC by Marcin Borkowski
2014-12-06 Announcement – Org-edu-HTML
//This is more or less a copy of a [[https://lists.gnu.org/archive/html/emacs-orgmode/2014-11/msg00494.html|message]] . . . kinds of exercises. The [[https://github.com/mbork/org-edu-html|project page]] is on GitHub. It . . . I started hacking the [[https://github.com/mbork/org-one-to-many|org-one-to-many]] project, which . . .
4K - last updated 2014-12-06 15:43 UTC by Marcin Borkowski
2014-12-13 Escaping madness
I was writing a part of my [http://mbork.pl/2014-12-06_Announcement_%E2%80%93_Org-edu-HTML|Org-edu-HTML] . . . but if you pass a user-defined string to {{{(lambda (string) (format "var crazyString='%s';" string))}}}, . . .
2K - last updated 2014-12-13 10:42 UTC by Marcin Borkowski
2014-12-20 Grepping from within Emacs
It is a well-known fact that a hacker's life without {{{grep(1)}}} would be rather terrible. It is //extremely// . . . the disadvantage to this is that you have to remember to give the pattern first and the filename(s) . . . of obvious, but anyway), and – which is more cumbersome – to quote things like backslashes properly. . . . -r}}}, but for more complicated searches a combination of {{{find}}} and {{{grep}}} is needed, and . . . which gives a template for a {{{find/grep}}} combo, but one yearns for something more. And something . . .
3K - last updated 2014-12-20 15:16 UTC by Marcin Borkowski
2014-12-27 Info dispatch
There has been some talk about ditching (tex)info in favor of some new shiny thingy called Asciidoc. . . . prefix argument to {{{C-h i}}}, but remebering numbers is not what we, humans, are that very good at. . . .
3K - last updated 2014-12-27 10:45 UTC by Marcin Borkowski
2015-01-10 A few random Emacs tips
I've quite busy recently, so instead of a full-blown post I'll share just a few random Emacs tips. Hopefully . . . or -- if you want to be fancy -- use a lambda expression to perform [[http://en.wikipedia.org/wiki/Partial_application|partial . . .
2K - last updated 2015-01-10 23:00 UTC by Marcin Borkowski
2015-01-17 A quick-and-dirty hack with a dollar sign
I sometimes yank some fragments of text into my LaTeX files. This creates some problems, which can be . . . dollars and insert a closing one after a given number of words (one by default)." (interactive "p") . . .
2K - last updated 2015-01-17 23:30 UTC by Marcin Borkowski
2015-01-21 Tree Edit Distance
Today I attended a //very// interesting lecture on so-called [[http://www.inf.unibz.it/dis/projects/tree-edit-distance/|tree . . . As I am not very well versed in combinatorial algorithms, the technicalities were a bit . . . It seems that Mateusz and the team he's a member of are doing a very good job. What was especially . . . foreseeable future: neither my Lisp-fu nor my combinatorics-fu are sufficient for that, I'm afraid.) . . . be thinking that algorithms/programming/graphs/combinatorics are trivial because everything is, well, . . .
5K - last updated 2015-01-21 21:32 UTC by Marcin Borkowski
2015-02-07 Emms and transcripts
A few days ago there was a [[https://lists.gnu.org/archive/html/emacs-orgmode/2015-02/msg00050.html|question . . . "~/Muzyka/") (defun mb/emms-forward (&optional seconds) "Play next . . . seconds)) (emms-next))) (defun mb/emms-backward (&optional seconds) "Play previous . . . (global-set-key (kbd "<XF86AudioPrev>") #'mb/emms-backward) (global-set-key (kbd "<XF86AudioNext>") . . . #'mb/emms-forward) (global-set-key (kbd "<XF86AudioLowerVolume>") . . .
4K - last updated 2015-02-07 16:40 UTC by Marcin Borkowski
2015-03-07 Professional therapy for your Emacs config problems
The other day, abo-abo had an [[http://oremacs.com/2015/03/05/testing-init-sanity/|excellent post]] on . . . the sentences he utters are made of lists of symbols. Of course, this means that the code is sprinkled . . .
3K - last updated 2015-03-06 23:59 UTC by Marcin Borkowski
2015-04-04 The geometry package cheat sheet
One of the problems I've always had with the {{{geometry}}} package is that I couldn't remember the names . . . up reasonable names, I can as well go with numbers). So, here it is. As you can see, it is parametrized, . . .
4K - last updated 2015-04-04 06:43 UTC by Marcin Borkowski
2015-04-11 Proofs and refutations
No, I will not write about the famous book by Lakatos. I will write about proofs, or rather “proofs”, . . . no longer write formulas as prose, but use symbolic notation such as {{{e^{i\pi}+1=0}}}. On the . . . formalism is the incomprehensible sequences of symbols found in //Principia Mathematica//. The appendix . . . assuming only the definitions of the real numbers and of ordinary arithmetic operations. I expect . . . “basic”, “obvious”, “trivial” etc. I also remember my horror when I started studying differential . . .
7K - last updated 2015-04-11 19:41 UTC by Marcin Borkowski
2015-04-25 Some Dired goodies
Most Emacs users know that Dired – while atypical – is a perfectly reasonable file manager, with quite . . . off displaying of “uninteresting” files. (Remember to set {{{completion-ignored-extensions}}} //before// . . .
4K - last updated 2015-04-25 10:34 UTC by Marcin Borkowski
2015-05-09 Two quotes from John McCarthy
I've been rather busy lately, so here's only a short post today. I finally read (well, skimmed at least) . . . on paper in a world with our topology.// (Remember that McCarthy was a student of Solomon Lefschetz, . . .
2K - last updated 2015-05-09 23:18 UTC by Marcin Borkowski
2015-05-16 which-function and LaTeX
There is a very nice minor Emacs mode for programmers: {{{which-function-mode}}}. It is especially useful . . . though: {{{ (add-hook 'TeX-mode-hook '(lambda () (make-local-variable 'which-func-cleanup-function) . . . variables). One more thing which is worth remembering is that {{{imenu}}}'s “Rescan buffer” option . . .
4K - last updated 2015-05-16 22:43 UTC by Marcin Borkowski
2015-05-23 Math examples in TeX, part II
Some time ago, [[http://mbork.pl/2015-02-28_Math_examples_in_TeX%2c_part_I|I wrote about a macro to typeset . . .
3K - last updated 2015-05-23 00:02 UTC by Marcin Borkowski
2015-05-23 Math examples in TeX, part III
In the [[2015-02-28 Math examples in TeX, part I|two]] [[2015-05-23 Math examples in TeX, part II|previous]] . . . use that. What I could do, however, is to embed the character with ASCII code 1 //directly// in . . .
2K - last updated 2015-08-15 00:27 UTC by Marcin Borkowski
2015-05-30 Some message-mode goodies
A few months ago I switched with my email to Emacs. My history of email started with pine, then briefly . . . offlineimap deleting someone's mail, so I use mbsync, which works very well.) Now it's one thing . . . I would use every day, but potentially worth remembering. CategoryEnglish, CategoryBlog, CategoryEmacs . . .
3K - last updated 2015-05-30 07:51 UTC by Marcin Borkowski
2015-06-06 Mickey Petersen's Mastering Emacs book
After a few months of waiting (and me studying the preview), Mickey Petersen's book “Mastering Emacs” . . . a final advice and a short reading list) is an umbrella for a few topics which seemingly didn’t fit . . .
2K - last updated 2015-06-06 15:19 UTC by Marcin Borkowski
2015-06-13 The LaTeX book is out
Some time ago [[http://mbork.pl/2015-02-28_Math_examples_in_TeX%2c_part_I|I alluded]] [[http://mbork.pl/2015-05-23_Math_examples_in_TeX%2c_part_II|to . . .
3K - last updated 2015-06-13 08:26 UTC by Marcin Borkowski
2015-06-20 Fast-calc
I've been a fan of accounting for a long time now. My affair with bookkeeping started when I studied . . . //the bookkeepers are the ones who do negative numbers right//! Indeed, in bookkeeping there is no such . . . thing as a “negative number” (well, except for some special circumstances, . . . difference between them. In other words, each “number” in accounting is in reality a //pair of numbers//, . . . my personal finance some twelve years ago, I stumbled upon [[http://www.gnucash.org/|GnuCash]]. It . . .
6K - last updated 2015-06-20 20:32 UTC by Marcin Borkowski
2015-06-27 Arriving at Amen
I do not often write book reviews on my blog (in fact, this is probably the first time;-)). However, . . . of spiritual life” (more or less) if you are humble enough to admit that you are not, and let God . . .
4K - last updated 2015-06-27 08:38 UTC by Marcin Borkowski
2015-07-04 C-x 4 bindings
Today I’m going to write about some lesser-known Emacs bindings, namely ones beginning with {{{C-x 4}}}. . . . {{{C-x 3}}}, {{{C-x 8 C-h}}} and a few other combinations.) {{{C-x 4}}}, however, is a treasure chest. . . .
3K - last updated 2015-07-04 12:49 UTC by Marcin Borkowski
2015-07-11 A memoir problem
Usually I write about (some kinds of) success stories here: good LaTeX packages, my own tricks, etc. . . . I wrote a book, in which I wanted to have thumb indices. Well, there are quite a few LaTeX packages . . . after a short research, I settled with {{{thumbs}}} by H.-M. Münch. It works well, and (after one . . . take any effect.) All fine. Now what the {{{thumbs}}} package does (with the above commands, that . . . is)? First, it puts the thumb marks in wrong places (it doesn’t know about the . . .
4K - last updated 2015-07-11 22:57 UTC by Marcin Borkowski
2015-07-18 TLM vs EWOC, or there and back again
I am currently working on an application in Emacs, which will (in particular) display some tabular data . . . generating the EWOC again. Since in my use the number of entries is at most two-digit, I didn’t care . . .
5K - last updated 2015-07-18 23:12 UTC by Marcin Borkowski
2015-07-25 Multiple indices in a LaTeX document with splitidx
An often requested feature in a book is multiple indices. Typically, there are separate indices of notions . . . and theorems, of people’s names, and/or of symbols. Unfortunately (and unsurprisingly, I regret . . . it: it either lets create only a limited number of indices, or needs a separate external program. . . . notions and theorems]{idx} \newindex[Index of symbols]{isy} \begin{document} We will first define the . . . is the index of notions, with page number referring to the place where the relevant notion . . .
6K - last updated 2015-07-25 10:39 UTC by Marcin Borkowski
2015-08-01 case-intern trick
When coding in Elisp, sometimes it happens that you want to branch depending on the value of some variable, . . . to use an {{{enum}}}; the lispy way is to use symbols and {{{case}}}. However, sometimes you have strings . . . and not symbols. If you can arrange things so that you have symbols, . . . be considered as a “type cast from strings to symbols”. (This is just a bit more complicated, but never . . . (t (do-something-else-yet))) }}} Worth remembering. CategoryEnglish, CategoryBlog, CategoryEmacs, . . .
2K - last updated 2015-08-01 11:53 UTC by Marcin Borkowski
2015-08-08 Concatenation with indentation
Quite recently, I was coding two (independent) Emacs projects involving generating XML files. I found . . . (make-string indent 32))) (mapcar (lambda (line) (concat indent-string line (unless (eq . . .
2K - last updated 2015-08-08 21:13 UTC by Marcin Borkowski
2015-08-22 Beeminder.el
Last year, I started using a very interesting service. While I'm usually quite skeptical towards various . . . “goal” (like: [[https://www.beeminder.com/mbork/blogging|I want to write one blog post per week]]), . . . //and// you have to enter your credit card number. The second time you derail, they charge you five . . . as either something that must be done given number of times (e.g., once every day, or once every . . . Org manual itself – [[https://www.beeminder.com/mbork/goals/shaving|if I wanted to shave (on average) . . .
7K - last updated 2015-08-22 20:30 UTC by Marcin Borkowski
2015-08-28 EmacsConf2015
Tomorrow, I’m going to take part in an interesting thing: an [[http://emacsconf2015.org/|Emacs conference]]. . . . I will talk about is a [[https://github.com/mbork/ox-oddmuse|simple Org-to-Oddmuse exporter]]. . . . (The [[https://github.com/mbork/ox-oddmuse/blob/master/README.org|README.org]] . . .
2K - last updated 2015-08-28 14:02 UTC by Marcin Borkowski
2015-09-05 EmacsConf2015 - afterthoughts, and a book project
So we’re after [[http://emacsconf2015.org/|EmacsConf 2015]]. The conference was //great//. The talks . . . part are: basics of functional programming (lambdas, funcall/apply, mapping, reducing), dynamic and . . .
5K - last updated 2016-04-24 06:09 UTC by Marcin Borkowski
2015-09-26 A few org-agenda hacks
Like many Emacs users these days, I heavily depend on Org-mode. One particular feature I use a lot (in . . . turn: {{{ (add-hook 'org-agenda-finalize-hook (lambda () (delete-other-windows))) }}} Of course, I also . . . wife’s birthday (just kidding: this one I do remember, together with our wedding anniversary;-)), the . . . {{{ (add-hook 'org-agenda-finalize-hook (lambda () (hl-line-mode))) }}} And this is pretty much . . .
3K - last updated 2015-09-26 12:59 UTC by Marcin Borkowski
2015-10-03 Annoying Org-mode buffers
In the spirit of my [[2015-09-26 A few org-agenda hacks|previous post]], let me share something I did . . . all Org-mode buffers." (interactive) (mapcar (lambda (buffer) (with-current-buffer buffer (when (eq . . .
3K - last updated 2015-10-03 07:08 UTC by Marcin Borkowski
2015-10-10 A trouble with Org-mode HTML export
I'm not sure whether this is going to be useful to anybody but me, but here's a problem that cost me . . . problem turned up while working on my [[http://mbork.pl/2014-12-06_Announcement_%E2%80%93_Org-edu-HTML|Org-edu-HTML]] . . . To that end, I employed my earlier [[http://mbork.pl/2014-10-25_Announcement_%E2%80%93_org-one-to-many|org-one-to-many]] . . .
3K - last updated 2015-10-10 21:44 UTC by Marcin Borkowski
2015-10-17 xkcd-541 mode
I'm still very busy at the moment (and this will look like this for three more months – my current teaching . . . a lighter topic: {{{xkcd-541-mode}}}. If you remember one of the [[http://xkcd.com/541/|classic xkcd . . .
3K - last updated 2015-10-17 22:50 UTC by Marcin Borkowski
2015-10-24 Yanking from Calc
Using Emacs Calc for calculations is one thing. Yanking the results into the document is another, and . . . press {{{y}}} while in Calc; it just puts the number at the top of the stack into your last editing . . . etc. – you may just want to multiply two numbers and put the result at point. Then, you can use . . . into an arbitrary buffer is the so-called //embedded mode//. It is quite a sophisticated and powerful . . . to press {{{C-x * e}}} again to exit Calc’s embedded mode.) Read the manual for details; Embedded . . .
2K - last updated 2015-10-24 22:53 UTC by Marcin Borkowski
2015-11-07 Converting numbers to strings in a human-friendly way
Converting an Elisp number to a string (so that it can be e.g. displayed) is a surprisingly tricky thing . . . to do. While {{{(format "%s" number)}}} seems a reasonable way, sometimes it’s not. . . . I was writing I wanted to display integer numbers as integer numbers, even if they happen to be . . . floating point numbers with zero fractional part. While this seems easy . . . of these is the question: what is an //integer number//? Assuming that I want, say, 2 decimal points, . . .
4K - last updated 2015-11-07 22:24 UTC by Marcin Borkowski
2015-12-05 Emms and hydra
Some time ago [[2015-02-07 Emms and transcripts|I wrote a bit about my Emms setup]]. Well, I changed . . . called from Lisp code, returns an appropriate symbol." (interactive "p") (let ((status (if emms-player-playing-p . . . (defun mb/emms-forward (&optional seconds) "Play next . . . seconds)) (emms-next))) (defun mb/emms-backward (&optional seconds) "Play previous . . . seconds))) (emms-previous))) (defun mb/emms-pause () "Like emms-pause, but show the status . . .
4K - last updated 2015-12-06 12:34 UTC by Marcin Borkowski
2015-12-12 Counting sentences
I was a bit astonished that Emacs does not have a {{{count-sentences}}} function. I mean, how is counting . . . count, the //noun// sentence, and you would combine them to get the sentence count. (It is possible . . . (begin end) "Return the number of sentences from BEGIN to END." (save-excursion . . . end &optional print-message) "Count the number of sentences from BEGIN to END." (interactive . . .
3K - last updated 2015-12-12 11:56 UTC by Marcin Borkowski
2015-12-18 Star Wars crawl in Emacs
As I [[2013-09-19_That's_no_moon_(en)|mentioned a while ago]], I’m not an uncritical fan of Star Wars. . . . marker-list))))) (defvar sw/untouched-lines 3 "Number of lines at the bottom of the window which should . . . walker) (point-min))) (and walker (< (line-number-at-pos) (- (window-height) sw/untouched-lines)))) . . .
6K - last updated 2015-12-18 18:02 UTC by Marcin Borkowski
2016-01-09 mrr-auto-replace
It is often the case that I need to do some heavy search-and-replace in LaTeX files. Usually, this is . . . Emacs version 23 or so);-). Then, it is a bit cumbersome to call it interactively all the time. Of . . . "") ("\\<\\([aeiouwzAEIOUWZ]\\)\\s +" (lambda () (not (texmathp))) "\\1~") "~\\\\cite")) }}} . . .
5K - last updated 2016-01-09 12:59 UTC by Marcin Borkowski
2016-01-16 save-excursion changed semantics
Recently, when coding on a new Emacs (compiled from source), I stumbled upon a strange behavior of {{{save-excursion}}}: . . . position anyway. So please don't panic, just remember that if your code starts to act weird, this //might// . . .
2K - last updated 2016-01-18 22:04 UTC by Marcin Borkowski
2016-01-30 Dimming out tildes in AUCTeX
I often write LaTeX in Emacs with AUCTeX. One thing [[2014-09-20 Smart ties in Emacs|I use a lot is tildes]] . . . do a lot), I don't like my lines to start with symbols, so I write e.g. things like {{{consider the . . . to use a hook. {{{ (add-hook 'TeX-mode-hook (lambda () (font-lock-add-keywords nil '(("~" . 'font-latex-sedate-face))))) . . .
3K - last updated 2016-01-30 22:17 UTC by Marcin Borkowski
2016-02-06 An attachment reminder in mu4e
A nice feature of Gmail is that you can ask it to remind you about attachments if the message contains . . . And here it my take on the subject. {{{ (defun mbork/message-attachment-present-p () "Return t if . . . "<#part" nil t) t)))) (defcustom mbork/message-attachment-intent-re (regexp-opt '("I . . . launch the no-attachment warning.") (defcustom mbork/message-attachment-reminder "Are you sure you . . . asked when trying to send a message containing `mbork/message-attachment-intent-re' without an actual . . .
3K - last updated 2016-02-06 08:37 UTC by Marcin Borkowski
2016-02-13 Looking for keywords
Assume that you want to look through some buffer – say, a log file or something – and you are especially . . . it bound to some key by default, but I never remember it.) It accepts a regex, then a face (with a reasonable . . .
3K - last updated 2016-02-13 19:49 UTC by Marcin Borkowski
2016-02-20 Iedit mode
[[2016-02-13 Looking for keywords|A week ago]], I mentioned Iedit mode. This is a real gem. It’s not . . . {{{iedit-mode}}}, which highlights the current symbol (or region), and all its other occurrences in . . . For instance, you can set {{{iedit-only-at-symbol-boundaries}}} to nil, and then still a symbol . . . occurrence – also being e.g. part of another symbol – is highlighted. There are more variables which . . . if you actually //edit// the highlighted symbol, //all// its occurrences are changed accordingly! . . .
3K - last updated 2016-02-20 06:34 UTC by Marcin Borkowski
2016-02-27 Make Yourself Known – introduction
Some time ago, I decided to take part in an interesting endeavor. A friend of mine shared a link to a . . . the contest-related stuff, check out [[http://mbork.pl/?action=rss;rcfilteronly=CategoryMakeYourselfKnown;all=0;showedit=0;title=Make%20Yourself%20Known|the . . .
5K - last updated 2016-02-27 06:26 UTC by Marcin Borkowski
2016-03-02 Make yourself known – a few thoughts
I wanted to introduce my project today, but this will wait until tomorrow (well, you can [[https://github.com/mbork/logeox|go . . .
3K - last updated 2016-03-02 21:05 UTC by Marcin Borkowski
2016-03-03 About the Logeox project
OK, so let me introduce [[https://github.com/mbork/logeox|my project]]. After some time spent on thinking . . .
3K - last updated 2016-03-03 20:19 UTC by Marcin Borkowski
2016-03-08 Let’s start fun – basic layout
OK, so I finally started. Since I was terribly procrastinating with actually doing anything with this . . . of maybe 5-10% of what is [[https://github.com/mbork/logeox|actually committed to GitHub]] at this . . .
6K - last updated 2016-03-08 21:31 UTC by Marcin Borkowski
2016-03-11 Drawing is easy
As could be expected, getting back with a fresh mind on the next morning is a good advice. I can now . . . the screen – whee-hee! (See [[https://github.com/mbork/logeox/commit/f511b846ee4a9191922149855ae1687d4787e247|the . . . of my subclass, and I should have had {{{pl.mbork.logeox.DrawingView}}}. Fair enough, this looks . . . something like the following: {{{ package pl.mbork.logeox; import android.content.Context; import . . . I got: {{{ 03-11 06:03:49.100 20893-20893/pl.mbork.logeox E/AndroidRuntime: FATAL EXCEPTION: main . . .
9K - last updated 2016-03-11 21:52 UTC by Marcin Borkowski
2016-03-16 Back to sanity
//I am smiling a great smile. The smile of a man who f..ked with his car and didn't break it.// (Andy . . . am today.) I now have an [[https://github.com/mbork/logeox/commit/ae478498b3272733b4042d655f2d9437765d9785|(almost) . . . of the contestants, many people decided to embark on some technology they didn’t know earlier. . . . of almost anything almost inevitably do), stumbles upon my blog and reads it, and thinks something . . .
6K - last updated 2016-03-16 17:53 UTC by Marcin Borkowski
2016-03-19 My most interesting mistakes so far
First, a disclaimer of sorts: you might think that I’m blogging like crazy in the hope of winning through . . . named – they are in fact //segments//) to remember the drawing. Since apparently I have to be able . . . not degrees.) Never mind, that was a bit embarrassing, but easy to fix. OK, so let’s get to the . . . medalists. Number three is the initialization (again!): while I . . . //did// remember to initialize the {{{Turtle}}} object this time, . . .
6K - last updated 2016-03-19 05:24 UTC by Marcin Borkowski
2016-03-22 Where I am now and where I am going
OK, so if you know me personally, please stop reading for a moment now and imagine me singing to the . . . //Breaking news//: the [[https://github.com/mbork/logeox/commit/efb96c11b2fd541987fe2cd7fb6cd58626e7c994|solution . . . have to rethink the datastructure I use for remembering the lines to draw. Since {{{canvas.drawLine}}} . . . and some of them seem worth exploring. (Remember the name I gave that app? It was about geometry . . .
7K - last updated 2016-03-22 21:08 UTC by Marcin Borkowski
2016-03-24 Beeminder.el – a follow-up
Some time ago [[2015-08-22 Beeminder.el|I wrote about a Beeminder client I wrote for Emacs]]. I mentioned . . . them. For instance, [[https://www.beeminder.com/mbork/goals/ledger|I want to update my ledger each . . . change anything. (The idempotency key is the combination of start and stop times, though due to how . . .
4K - last updated 2016-03-24 21:24 UTC by Marcin Borkowski
2016-03-26 What and how I’m learning
For today, I decided to write a “softer” post about my learning process. (I did not abandon coding, but . . . spread the cognitive load over time instead of bombing with information at the very beginning, which . . . may be a good thing. Note: the number of occurrences of the word “may” in this paragraph . . .
5K - last updated 2016-03-26 17:11 UTC by Marcin Borkowski
2016-03-30 Turtle uncloaking
I know, I know. I was supposed to write something about the horizontal layout. But this will have to . . . next? If you look at the [[https://github.com/mbork/logeox/commit/3b7df51f5e9b6b7bf4b63bfa72b5f084f6e78f0f|current . . .
4K - last updated 2016-03-30 20:36 UTC by Marcin Borkowski
2016-04-02 Pen up and down, smoke test and UI considerations
Yesterday was an interesting day for Logeox. First of all, I added the pen up/pen down feature. It was . . . it to the final version anyway. Perhaps more embarassingly, there is no way to actually //clear// . . .
4K - last updated 2016-04-02 19:29 UTC by Marcin Borkowski
2016-04-05 Finding Nemo, er, Turtle
Yesterday was a refactoring day: I shuffled the code a bit, made it suck a bit less (for instance, I . . . leads to suffering;-). I’ll have to remember the famous Antoine de Saint Exupéry’s quote on . . .
2K - last updated 2016-04-05 19:40 UTC by Marcin Borkowski
2016-04-07 Hiding those annoying Async Shell Command buffers
I use {{{async-shell-command}}} ({{{M-&}}}) quite often. (I usually ran just {{{shell-command}}}, . . . option. The default value is the symbol {{{confirm-new-buffer}}}, which means ask the . . . {{{*Async Shell Command*}}} and an optional number in angle brackets; see e.g. the code of the function . . .
3K - last updated 2016-04-07 19:21 UTC by Marcin Borkowski
2016-04-09 Choosing the unit turning angle
I think this is one of these tiny details which make the UX better or worse, so let us look a bit into . . . sounds! – each function should get the exact number of arguments it expected. On the otherhand, you . . . not as far-fetched as you might think. Just remember your topology classes, where they told you how . . .
5K - last updated 2016-04-09 11:17 UTC by Marcin Borkowski
2016-04-14 Plans
It's been some time since I posted something Logeox-related – real life struck again, and I also had . . . the edge of the screen – this will require remembering the sequence of turtle commands as opposed . . .
3K - last updated 2016-04-14 18:21 UTC by Marcin Borkowski
2016-04-16 Things I hate, part I
OK, so Android Studio told me to upgrade itself to version 2.1β, promising (among other things) a faster . . . path to Gradle (to reflect the newer version number). I would expect, however, the upgrade script . . . 792-792/? E/BufferQueue: [Starting pl.mbork.logeox] drainQueueLocked: BufferQueue has been . . . and did I mention that I have nothing even resembling a {{{BufferQueue}}} in my app? OTOH, googling . . .
3K - last updated 2016-04-16 06:36 UTC by Marcin Borkowski
2016-04-19 Plans, update
OK, it might seem that I’ve been procrastinating on Logeox. It’s true (to some extent), but it’s not . . . they will now “add themselves” to a list of remembered commands, and then either {{{onDraw}}} could . . .
4K - last updated 2016-04-19 20:21 UTC by Marcin Borkowski
2016-04-24 The conditional-save-excursion macro
One day I was writing a library of helper functions for writing messages (I will definitely share them . . . me wrong. I’m all for “slow life”, and not succumbing to the rat race and the “do everything as fast . . . the savings are basically multiplied by the number of people using the code (without the overhead . . .
5K - last updated 2016-04-24 06:09 UTC by Marcin Borkowski
2016-04-28 A problem with storing commands
I knew that at some point I'd hit some wall... Of course, I //will// overcome this issue, but right now . . . and another one holding the argument (“number of times” the command should be executed). In . . .
4K - last updated 2016-04-28 18:02 UTC by Marcin Borkowski
2016-05-02 Storing commands again
[[2016-04-28 A problem with storing commands|Two posts ago]] I wrote about my struggle with the {{{TurtleCommand}}} . . . Day //n//+//k// (for //k// a small natural number, often 1), everything is up and running. Interesting. . . .
2K - last updated 2016-05-02 07:25 UTC by Marcin Borkowski
2016-05-12 Make yourself known – summary
So it’s over. I thought that a nice way of finishing the series of posts related to the [[http://devstyle.pl/daj-sie-poznac/|contest]] . . . a stick to ensure I [[https://www.beeminder.com/mbork/blogging|published]] (and [[https://www.beeminder.com/mbork/coding|coded]]) . . . steadily for almost two years now.) I had ambitious plans of tracking a few other contestants’ . . .
3K - last updated 2016-05-12 05:39 UTC by Marcin Borkowski
2016-05-17 Emacs Lisp closures demystified
It is often claimed that one of the advantages of //closures// (as in “lexical scoping”) is information . . . object is represented by a list with the symbol ‘closure’ as the first element, a list representing . . . Let’s see what happens when we evaluate {{{(symbol-function 'increase-counter)}}}: {{{ (closure ((counter . . . counter))) }}} And here’s the result of {{{(symbol-function 'get-counter)}}}: {{{ (closure ((counter . . . try to guess the result. {{{ (eq (cadr (symbol-function 'increase-counter)) (cadr (symbol-function . . .
4K - last updated 2016-05-17 17:49 UTC by Marcin Borkowski
2016-05-23 Literal values and destructive functions
In Lisp literature you can often find a warning about not using destructive functions (like {{{sort}}} . . . If you don't believe it, try this: {{{M-: (symbol-function #'destructive-havoc)}}}, or even better, . . . {{{M-x pp-eval-expression RET (symbol-function #'destructive-havoc) RET}}} and see for . . . altogether, and use {{{fset}}} and {{{lambda}}} instead (this is more or less what {{{defun}}} . . . {{{fset}}}). {{{ (fset 'destructive-havoc (lambda () "Example of destructive havoc." (setq foo '(1 . . .
3K - last updated 2016-05-23 05:02 UTC by Marcin Borkowski
2016-05-30 Jeżycjada mistyczna – wprowadzenie
//First, a note to my English-speaking readers: I am very sorry to tell you that this post is a beginning . . . Mickiewiczów, Sienkiewiczów, a nawet (fuj!) Gombrowiczów, ale jednak bez zrozumienia. Ile lat trwało, . . . obawiam się, że wnioski, jakie z tego wysnuwa Gombrowicz, są całkowicie mylne, co zresztą ani trochę . . . by nie zaskakiwało, bo w końcu jest on Gombrowiczem). Wróćmy więc do literatury „niskiej” (brr, . . .
7K - last updated 2016-05-30 06:19 UTC by Marcin Borkowski
2016-06-13 Displaying pdfs on the right
Some time ago I decided that I'll give [[https://github.com/politza/pdf-tools|PDF tools]] a shot. Wow. . . . of a window displaying a pdf. If an integer, number of columns. If a float, fraction of the original . . .
6K - last updated 2016-06-13 20:14 UTC by Marcin Borkowski
2016-07-04 Compiling a single Beamer frame in AUCTeX
Some time ago I basically stopped using Beamer. I turned to reveal.js, and did a few presentation in . . . (i.e., if there’s no active region, it remembers the previously used one), saves it to a temporary . . . file (together with the whole preamble), and launches a compile or view command on that. . . . order of magnitude. Of course, pressing that combo repeatedly is not something an Emacs user would . . . }}} It is fairly simple: we climb up the document structure until we reach the beginning . . .
6K - last updated 2016-07-04 20:44 UTC by Marcin Borkowski
2016-08-08 Two books on personal finance
As I mentioned [[2016-07-18 Ledger – virtual postings aka envelopes|some time ago]], I have been using . . . same with other words many times. So far it’s thumbs up from me – we’ll see how the other chapters go . . . is the right term – probably not, please remember again that as far as theology and philosophy goes, . . . should use a portion of it, I should also remember that I administer it on behalf of God, its proper . . .
6K - last updated 2016-08-08 16:18 UTC by Marcin Borkowski
2016-08-15 JavaScript callbacks
Note: this is an introductory article on JavaScript callbacks. There will be a bit more advanced follow-up . . . when using plain vanilla callbacks is cumbersome, one can use //promises// – but that will . . .
8K - last updated 2016-08-15 08:09 UTC by Marcin Borkowski
2016-08-22 Jan Góra OP on work and inspiration
I was reading an [[http://www.miesiecznik.wdrodze.pl/?mod=archiwumtekst&id=15858|article]] (in Polish) . . . but that does not mean that the above rule of thumb is wrong!) If you need or want inspiration from . . .
3K - last updated 2016-08-22 08:58 UTC by Marcin Borkowski
2016-09-05 Many variants of a Beamer presentation – part I
Some time ago I decided to prepare slides for a certain lecture using Beamer. I thought it would be nice . . . {{{presentation-preamble.tex}}} and {{{presentation-body.tex}}}. (For the . . . \documentclass{beamer} \input{presentation-preamble} \input{presentation-body} }}} {{{ % presentation-preamble.tex . . . file) does not contain a proper preamble, with {{{\documentclass}}} and {{{\begin{document}}}} . . . notes} \input{presentation-preamble} \begin{document} \begin{frame} \titlepage \end{frame} . . .
5K - last updated 2016-10-03 03:40 UTC by Marcin Borkowski
2016-09-12 Running Emacs commands not too often
If you are like me, you probably check your email too often. (Maybe nobody does anything stupid like . . . wants to run the command." (let* ((fun-name (symbol-name fun)) (nto-int-sym (intern (concat "not-too-often-interval-" . . . (set nto-last-time-sym 0) (fset nto-guard-sym (lambda (orig-fun &rest args) (let ((elapsed (time-to-seconds . . . (time-subtract (current-time) (symbol-value nto-last-time-sym))))) (if (< elapsed . . . (* 60 (symbol-value nto-int-sym))) (cond ((y-or-n-p (format . . .
4K - last updated 2016-09-12 12:36 UTC by Marcin Borkowski
2016-09-19 C-x SPC (rectangle-mark-mode)
It's old news, but I was reminded about it recently. While Emacs has had support for rectangle operations . . . rectangle commands, but you don’t need to remember so many keybindings anymore – just press {{{C-x . . .
1K - last updated 2016-09-19 19:42 UTC by Marcin Borkowski
2016-10-03 Many variants of a Beamer presentation – part II
Some time ago I wrote [[2016-09-05 Many variants of a Beamer presentation – part I|a post about compiling . . . file is constructed by concatenating the preamble, the {{{\begin{document}}}} line, the region and . . . the {{{docmute}}} package (since then the preamble is discarded), and then again //in the preamble//, . . . the compiled file is constructed from the preamble and the region). So, here is the {{{presentation-slides.tex}}} . . . notes} \input{presentation-preamble} \begin{document} % This line is needed for \input'ing . . .
4K - last updated 2016-10-03 03:43 UTC by Marcin Borkowski
2016-11-07 Displaying nonexistent text in Emacs buffers
Some time ago, I received yet another email containing a date in the MM/DD/YY format, which is probably . . . take a time that is proportional to the number of overlays in the buffer)/. That means that in . . . in a plist, they are all identified by a symbol. The symbols are arbitrary, but some of them (so-called . . . 0) (org-small-year-to-year (string-to-number (match-string-no-properties 3))) (string-to-number . . . (match-string-no-properties 1)) (string-to-number (match-string-no-properties 2))))))) }}} {{{ test . . .
6K - last updated 2016-11-07 14:28 UTC by Marcin Borkowski
2016-11-19 format-spec
Last week I was coding something Emacs-y, and felt the need of a {{{format}}}-like function. It would . . . get a string with embedded “control codes”, like {{{%t%}}} or {{{%h}}}, . . .
2K - last updated 2016-11-19 08:44 UTC by Marcin Borkowski
2016-11-27 Life, productivity, faith
//Edit: this post is kind of updated [[2017-10-08 Me an minimalism in 2017|here]].// Today’s post is . . . Covey, David Allen (even though he is a member of some suspicious cult), St. Paul, St. Augustine . . .
8K - last updated 2017-10-08 06:21 UTC by Marcin Borkowski
2016-12-04 Making C-c C-j in AUCTeX do something more useful
In AUCTeX’s LaTeX mode, {{{C-c C-j}}} is by default bound to {{{LaTeX-insert-item}}}. By default, it . . . {{{init.el}}}: {{{ (add-hook 'LaTeX-mode-hook (lambda () (add-to-list 'LaTeX-item-list '("frame" . (lambda . . .
3K - last updated 2016-12-04 19:05 UTC by Marcin Borkowski
2016-12-12 momentary-string-display
[[2016-11-07_Displaying_nonexistent_text_in_Emacs_buffers|Some time ago]] I wrote about making Emacs . . . somehow mutates the global state – i.e., remembers the input event somewhere – and {{{this-single-command-raw-keys}}} . . .
5K - last updated 2016-12-12 06:43 UTC by Marcin Borkowski
2017-02-18 Using isearch-string on exit from isearch
Recently, I wanted my function, which asks the user for some string, use the isearch term as the default. . . . this check: {{{(string-match "^isearch-" (symbol-name last-command))}}}. Slightly risky, but works . . . {{{ (add-hook 'isearch-mode-end-hook (lambda () (setq last-command 'isearch))) }}} (Such command . . . but we can set {{{last-command}}} to whatever symbol we want!) Then we can check for that exact symbol . . .
3K - last updated 2017-02-18 16:05 UTC by Marcin Borkowski
2017-04-24 Many variants of a Beamer presentation – part III
Some time ago I [[2016-09-05 Many variants of a Beamer presentation – part I|wrote]] [[2016-10-03 Many . . . theorem is not present in the pdf, its //number// is taken up, and we have Theorem 3 right after . . . theme which actually does typeset theorem numbers. You would like then your theorem labels in the . . . though, and I don’t really care for theorem numbers in the slides. So, here’s my simple solution. . . .
3K - last updated 2017-04-24 16:58 UTC by Marcin Borkowski
2017-05-01 show-some-last-messages
I am pretty sure I am not the only one annoyed by the fact that I can’t see more than one message in . . . (defcustom default-messages-to-show 4 "Default number of messages for `show-some-last-messages'.") (defun . . .
3K - last updated 2017-05-01 05:05 UTC by Marcin Borkowski
2017-05-29 org-toggl
(This post is more or less equivalent to a message I sent to the Org-mode mailing list a few days ago.) . . . need something like that: [[https://github.com/mbork/org-toggl]]. It has a few limitations (mentioned . . .
2K - last updated 2017-05-29 03:52 UTC by Marcin Borkowski
2017-07-02 Using yasnippet programmatically
Some time ago I was writing an Emacs function to insert a certain template into a buffer. The template . . . \begin{document} $0 \end{document} }}} (remember to escape the backslashes if you want to put that . . . for this technique. One thing you have to remember is that after {{{yas-expand-snippet}}}, you have . . .
3K - last updated 2017-07-02 04:30 UTC by Marcin Borkowski
2017-07-09 current-prefix-arg
A [[http://lists.gnu.org/archive/html/auctex-devel/2017-03/msg00036.html|question]] that popped some . . . was a regular, numeric prefix argument), the symbol {{{-}}} (that is, a minus), in case of {{{C-u . . . of four, and its four-base log is then the number if times {{{C-u}}} was pressed. (The “raw” prefix . . . argument can be converted to a regular number with the {{{prefix-numeric-value}}} function, . . .
4K - last updated 2017-07-09 08:13 UTC by Marcin Borkowski
2017-07-30 Changing the format of Org-mode clock reports
Two posts ago, [[2017-07-15 org-duration-format and other clock-related settings|I wrote]] about Org . . . It takes a cons whose car is the column number (1-based) and the cdr is the character you would . . .
2K - last updated 2017-07-30 06:54 UTC by Marcin Borkowski
2017-08-07 demo-it recording
Some time ago I stumbled across a very nice library by Howard Abrams, called [[https://github.com/howardabrams/demo-it|demo-it]]. . . . It seems that this tool, combined with [[https://github.com/takaxp/org-tree-slide|org-tree-slide]], . . . was that preparing a presentation is rather cumbersome. However, it occurred to me that many such . . . tinkering, I came up with [[https://github.com/mbork/demo-it/commits/recording|a working proof of . . .
2K - last updated 2017-08-07 17:11 UTC by Marcin Borkowski
2017-08-14 The highlight.el library
[[2016-02-13 Looking for keywords|Last year]], I wrote about a few ways of highlighting things in an . . . modifiers like //super//.) Also, it is worth remembering that {{{hlt-unhighlight-region}}} removes all . . .
2K - last updated 2017-08-14 19:03 UTC by Marcin Borkowski
2017-08-21 replace-regexen-in-string
Recently, I had a need to do some replacements in a string. Basically, that meant repeatedly calling . . . (let ((result string)) (mapc (lambda (replacement) (setq result (replace-regexp-in-string . . .
2K - last updated 2017-08-21 04:28 UTC by Marcin Borkowski
2017-09-25 The Unconquered
As you probably have noticed, my blog has shifted towards being almost exclusively about technology in . . . is located right between two, let’s say, very ambitious other ones. And we are not without our ambitions, . . .
3K - last updated 2017-09-25 04:39 UTC by Marcin Borkowski
2017-10-02 Converting TeX sequences to Unicode characters
I quite often deal with LaTeX files using stuff like {{{\'a}}} or {{{\"e}}}, and I really prefer having . . . to accent names used in Unicode.") (defun combine-letter-diacritical-mark (letter mark) "Return . . . a Unicode string of LETTER combined with MARK. MARK can be any character that can . . . error detection: if you say something like {{{(combine-letter-diacritical-mark ?w ?H)}}}, you’ll just . . . 3))) (replace-match (char-to-string (combine-letter-diacritical-mark letter (string-to-char . . .
4K - last updated 2017-10-02 18:14 UTC by Marcin Borkowski
2017-10-08 Me an minimalism in 2017
It’s been very interesting for me to read my post from previous year about [[2016-11-27 Life, productivity, . . . be – they want to meet you there. (All that remembering that the “where” is not in a sense of a physical . . .
4K - last updated 2017-10-08 06:19 UTC by Marcin Borkowski
2017-10-16 emacs-reveal
Some time ago, I learned from the Org-mode mailing list about a very interesting extension to the well-known . . . package allows to embed audio files in reveal.js presentations. I find . . .
3K - last updated 2017-10-16 16:22 UTC by Marcin Borkowski
2017-10-23 Styles in TikZ
Many TeX users learned to love the great TikZ package. I used to be a great fan of Metapost (even back . . . system: {{{ \usepackage{etoolbox} \pgfkeys{/mbork/.is family,/mbork, default/.style={ xmin=-0.5, . . . zerolabel={$0$}, }, xmin/.store in=\mborkxmin, ymin/.store in=\mborkymin, xmax/.store in=\mborkxmax, . . . ymax/.store in=\mborkymax, xlabel/.store in=\mborkxlabel, ylabel/.store . . . in=\mborkylabel, zerolabel/.store in=\mborkzerolabel, } . . .
5K - last updated 2017-10-23 19:26 UTC by Marcin Borkowski
2017-11-27 Org-mode radio targets
One of the interesting features of Org-mode is hyperlinks. For some documents, having many internal links . . . And then I recalled something I only vaguely remembered from my reading of the Org-mode manual a few . . . idea is quite cool: you mark some word (or a combination of words) in your Org-mode file, and then . . . occurrence of this particular word or combination of words becomes a link to the marked one. . . .
3K - last updated 2017-11-27 16:40 UTC by Marcin Borkowski
2017-12-04 Embedding files in Org-mode
A few days ago, [[https://lists.gnu.org/archive/html/help-gnu-emacs/2017-12/msg00015.html|there was a . . . the help-gnu-emacs mailing list about a way to embed an image in a text file. Of course, the OP was . . .
3K - last updated 2017-12-04 12:58 UTC by Marcin Borkowski
2017-12-31 LaTeX pillory – macros everywhere
A few years ago, my frustration with what people do with (or to...) LaTeX made me start a (now rather . . . \def\E{\expandafter\up} \def\u{number} \def\r{real} \E\r\ \u s }}} It was a bit different . . .
2K - last updated 2017-12-31 06:34 UTC by Marcin Borkowski
2018-01-15 Counting LaTeX commands in a bunch of files
I hope that I want bore anyone to death with blog posts related to the journal I’m working for, but here’s . . . I have already written [[https://github.com/mbork/tex-plus.el|some stuff for parsing LaTeX files]]. . . . only thing I used was the [[https://github.com/mbork/tex-plus.el/blob/master/tex%252B.el#L171|TeX+-info-about-token-beginning-at-point]], . . . TeX token starting at point and whose cdr is a symbol describing its type. I approached the problem . . . histogram))) (if (memq (cdr token) '(control-symbol control-word)) (if freq (incf (cdr freq)) (setq . . .
9K - last updated 2018-01-15 05:08 UTC by Marcin Borkowski
2018-02-05 The death camps in Poland issue
In the spirit of [[2017-09-25 The Unconquered|another PSA about Poland]], I would like to mention to . . . country invaded by Germany in 1939. On September 1, German armed forces entered Poland without . . . this was not followed by a real action. On September 17, another of our neighbors – the Soviet Union . . .
4K - last updated 2018-02-05 07:03 UTC by Marcin Borkowski
2018-02-12 append-next-kill
Today I’d like to share a simple trick which I learned a few days ago. It is well-known that if you perform . . . to kill things in different places and still combine them into one kill ring entry. Enter {{{C-M-w}}}, . . .
2K - last updated 2018-02-12 20:23 UTC by Marcin Borkowski
2018-03-03 pdf-annot-print-annotation-functions and Windows newlines
Some time ago [[2017-10-30_Pdf-tools_and_follow_mode|I wrote]] about how I use Andreas Politz's excellent . . . 'contents) t t)) (eval-after-load 'pdf-annot (lambda () (add-hook 'pdf-annot-print-annotation-functions . . . t))) }}} Notice how I pass a lambda instead of a quoted form to {{{eval-after-load}}} . . .
3K - last updated 2018-03-03 07:18 UTC by Marcin Borkowski
2018-03-18 My Org-mode hydra
I mentioned a lot of times that I am a big fan of Org-mode clocking feature. Even if I clock some things . . . :timeout 12 :columns 4) "Org commands" ("i" (lambda () (interactive) (org-clock-in '(4))) "Clock in") . . . "Clock in the last task") ("j" (lambda () (interactive) (org-clock-goto '(4))) "Go to . . .
2K - last updated 2018-03-18 05:01 UTC by Marcin Borkowski
2018-03-26 Human-readable filesizes
A few days ago I needed to display a filesize (in one of the next blog posts I’ll show why I needed this!). . . . “right” way should use whichever units fit the number. Therefore, we have two problems. The former one . . . do in the above code is basically calculate th number of SO so that I get a fixed number of digits after . . .
3K - last updated 2018-03-26 18:56 UTC by Marcin Borkowski
2018-04-21 counsel-rg and symbol at point
Continuing [[2018-04-09 counsel-yank-pop|my]] [[2018-04-15 counsel-org-clock|streak]] about [[https://oremacs.com/2015/04/09/counsel-completion/|counsel]], . . . If the region is not active, it will be the symbol or url at point. By the way, a similar thing works . . . (at least in programming modes): just the symbol at point or the symbol at point surrounded by . . . makes sense, since this means boundaries of a symbol). Anyway, the tradition continues: if you use . . .
2K - last updated 2018-04-21 12:57 UTC by Marcin Borkowski
2018-04-28 org-mru-clock
After writing about [[2018-04-15 counsel-org-clock|counsel-org-clock]], I got an email from [[https://unhammer.org/k/|Kevin . . . and prefill your clock history with (a given number of) things you actually clocked. Even though Org-mode . . .
3K - last updated 2018-04-28 06:24 UTC by Marcin Borkowski
2018-05-11 Beeminder and Emacs
Today’s post is special – instead of writing it here, I’m [[https://blog.beeminder.com/mbork/|a guest . . .
1K - last updated 2018-05-11 13:35 UTC by Marcin Borkowski
2018-05-20 Collaborating with non-Git-users - workflow and basic setup
//This is the first post in a [[2018-05-28 Collaborating with non-Git-users - Emacs support|three-part]] . . . And while technically we //could// just number our versions, and lock files (like in RCS, only . . . I got v7x, and it’s “floating in the air” – remembering where was the point when I sent the email to . . . think SVN does something similar with revision numbers). This is of course impossile (or at least extremely . . . export-subst }}} Of course, I now have to remember to use [[https://git-scm.com/docs/git-archive|git . . .
6K - last updated 2018-06-04 19:37 UTC by Marcin Borkowski
2018-05-28 Collaborating with non-Git-users - Emacs support
In the [[2018-05-20 Collaborating with non-Git-users - workflow and basic setup|previous part]], I showed . . . Git project" ("m" (insert "Marcin Borkowski <mbork@mbork.pl>") "mbork") ("1" (insert "Collaborator1 . . .
3K - last updated 2018-06-04 19:35 UTC by Marcin Borkowski
2018-06-16 ivy-use-selectable-prompt
It’s been a long-standing problem in Ivy that entering a string which was not on the list of candidates, . . . the candidates, was non-trivial. You had to remember to press {{{C-M-j}}} instead of {{{RET}}}, and . . .
1K - last updated 2018-06-16 18:38 UTC by Marcin Borkowski
2018-06-25 A simple hack with the comma operator and console.log
As we all know, {{{console.log}}} is the best debugging tool there is. I know, I know, it’s primitive, . . . console.log(x); return x**2; }) }}} Or do I? Remember that JavaScript’s syntax is based on C, and we . . .
3K - last updated 2018-06-25 04:43 UTC by Marcin Borkowski
2018-07-02 Smart yanking
//Notice//: this is a long, technical post about a useful piece of Emacs Lisp. What it does it allowing . . . may get it from here: [[https://gist.github.com/mbork/9ee1bd8216424e07342e88739fe65547]]. If you want . . . the first version of this blog post, I made an embarrassing rookie mistake. Sorry for that. Given that . . . ones in recent months, it is both ironic and humbling... Anyway, the mistake is now corrected. Expect . . . result)) }}} We can now write the function combining all we have done so far. {{{ (defun set-point-before-yanking . . .
12K - last updated 2018-07-04 17:56 UTC by Marcin Borkowski
2018-07-09 A mistake with modes and advice
In my [[2018-07-02 Smart yanking|last post]] I wrote about a way to do something only in modes derived . . . Smart yanking|in the comment]], I made a rather embarrassing mistake of saying {{{ (add-hook 'text-mode-hook . . . (lambda () (advice-add 'insert-for-yank :before #'set-point-before-yanking))) . . .
2K - last updated 2018-07-09 18:10 UTC by Marcin Borkowski
2018-07-23 Handlebars inline and block helpers
In a project I’m involved in, we use a templating library called [[https://handlebarsjs.com/|Handlebars.js]]. . . . function(name) { if (name === 'mbork') { return ' Nice to meet you, mbork!'; } }) . . . console.log(template({greet: 'Hello', name: 'mbork'})); }}} Here, we define a helper called {{{nice}}}, . . . it (which we implicitly do when {{{name !== 'mbork'}}}), we get an empty string and not the word . . . function(name, options) { if (name === 'mbork') { return options.fn(this); } else { return . . .
6K - last updated 2018-07-23 03:44 UTC by Marcin Borkowski
2018-08-13 A tip on git stash
I don’t know about you, but I use {{{git stash}}} fairly often. (This //might// be just a bad habit, . . . you could list their //timestamps// instead of numbers. But hey, this is Git, and that should be possible, . . .
3K - last updated 2018-09-23 04:21 UTC by Marcin Borkowski
2018-08-18 Embedding files in Org-mode revisited
[[2017-12-04 Embedding files in Org-mode|Some time ago]] I published a snippet of Elisp code to embed . . . might help with this. Another possibility is to embed links to the files in the Org-mode file itself. . . .
3K - last updated 2018-08-18 04:24 UTC by Marcin Borkowski
2018-09-10 Persisting Emacs variables
Some time ago I coded a certain Elisp tool (for internal use at [[2018-05-07_Ten_years_of_work_in_Wiadomości . . . (format "(setq %s %S)\n" variable-name (symbol-value variable-name)))))) }}} CategoryEnglish, . . .
2K - last updated 2018-09-10 07:56 UTC by Marcin Borkowski
2018-09-17 Emacs directory variables
Many people know and use Emacs [[https://www.gnu.org/software/emacs/manual/html_node/emacs/File-Variables.html|file . . . its directory version needs a function (or a lambda expression). I [[https://lists.gnu.org/archive/html/emacs-devel/2018-09/msg00731.html|asked . . .
4K - last updated 2018-09-23 04:50 UTC by Marcin Borkowski
2018-09-23 add-dir-local-variable and dotted pairs
[[2018-09-17 Emacs directory variables|Last time]] I wrote about directory variables. I mentioned that . . . You can check it by evalling e.g. this: {{{ ((lambda (x) (message "Hello %s!" x)) "world") }}} Normally . . .
3K - last updated 2018-09-23 18:31 UTC by Marcin Borkowski
2018-10-06 The version-control variable
As many of us know, Emacs has a habit (annoying for most people, I guess) of [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Backup.html|making . . . to {{{t}}}, and then Emacs starts to make //numbered backups//, like {{{.env.~1~}}}, {{{.env.~2~}}}, . . .
2K - last updated 2018-10-06 06:24 UTC by Marcin Borkowski
2018-11-03 A few remarks about defining minor modes
Today’s post is //extremely// technical and niche, but I just wanted to share an interesting story I . . . it. (Actually, instead of using the {{{arg}}} symbol, it would probably be better to use something . . . devoted //only// to the task of converting the symbol for the mode to a human-friendly version, using . . .
8K - last updated 2018-11-03 08:54 UTC by Marcin Borkowski
2018-11-11 Poland gained independence 100 years ago
Today we [[http://mbork.pl/2017-09-25_The_Unconquered|again]] [[http://mbork.pl/2018-02-05_The_death_camps_in_Poland_issue|depart]] . . . want to find out the meaning of 966, 12 September 1683, 27 December 1918, or August 12–25, 1920, . . .
2K - last updated 2018-11-11 21:13 UTC by Marcin Borkowski
2018-11-26 format-seconds
If you’ve ever done anything UI- and time-related in Elisp (or whatever language), chances are that you . . . which accepts a format string and a number of seconds and outputs the value of that time . . .
2K - last updated 2018-11-26 16:56 UTC by Marcin Borkowski
2018-12-03 looking-back-p
Warning: this was meant to be a short tip about a simple thing I needed ({{{looking-back-p}}}), but during . . . on our {{{defsubst}}}, and then call {{{disassemble}}} and type {{{looking-at-p}}}. This way we can . . . regex))) }}} And here is the result of disassembling it. {{{ byte code for looking-at-with-save-match-data: . . . wrapped its second argument internally in a lambda or something.) By the way, I am also wondering . . . regex))) }}} After compiling and disassembling the above function, we get {{{ byte code for . . .
7K - last updated 2018-12-03 08:46 UTC by Marcin Borkowski
2018-12-16 A simple tip on using destructive functions
This is something fairly obvious to every seasoned Lisp programmer, but let’s not forget that there are . . . diagrams, found in so many books on Lisp. Remember that each cons cell contains two “slots”: //car// . . .
4K - last updated 2018-12-16 11:46 UTC by Marcin Borkowski
2018-12-31 An info about the size of message attachments
I have been using [[https://www.djcbsoftware.nl/code/mu/mu4e.html|mu4e]] for quite a long time as my . . . if applicable" (if (and (eq name 'part) (plist-member plist 'filename)) (plist-put plist 'size (number-to-string . . . problem was with the {{{:filter-args}}} advice combinator. In its case, the piece of advice is called . . . args))) (if (and (string= name "part") (plist-member plist 'filename)) (plist-put plist 'size (human-readable-size . . . by Drew Adams]]. {{{ (defun embolden-after-slash (string) "Return a copy of STRING . . .
9K - last updated 2018-12-31 08:26 UTC by Marcin Borkowski
2019-01-14 Some Org Agenda keybindings
This post is just a friendly reminder that it may be a good idea to look in the manual from time to time, . . . there are some gems hidden there you don’t remember (even if you read it once). It turns out that . . . in time, and {{{.}}} gets back to today. A number of commands starting with {{{v}}} changes the . . .
3K - last updated 2019-01-14 05:23 UTC by Marcin Borkowski
2019-01-20 Filling and version control
It has been said a lot of times that when writing some (natural language) text with version control in . . . involving adding or deleting a significant number of characters and then refilling can result in . . .
3K - last updated 2019-01-20 19:47 UTC by Marcin Borkowski
2019-02-17 Inserting the current file name at point
It is not uncommon to issue some command to Emacs and find oneself in the minibuffer with the need to . . . half of the command line, and only then remembering that you need the filename. Then, you will . . . So, imagine you could just press some key combo while in minibuffer (or anywhere else, for that . . . devel list]]. To make the situation even more embarassing, I actively participated in that thread, . . . remembered the idea which inspired this post, and promptly . . .
4K - last updated 2019-02-17 07:08 UTC by Marcin Borkowski
2019-03-18 Free Emacs key bindings
As we all know, most Emacs users customize Emacs in various ways. Usually, at some point in time, the . . . I can launch a host of things using {{{C-z}}} combos, like turning on various modes or starting a few . . . {{{C-x}}} bindings which just waste good key combinations. Here is a (non-exhaustive) list: * {{{C-x . . .
3K - last updated 2019-03-18 20:42 UTC by Marcin Borkowski
2019-03-25 Using benchmark to measure speed of Elisp code
[[2019-02-04 A simple template mechanism in Elisp|Some time ago I promised]] that I'll write something . . . the {{{benchmark}}} command, which takes the number of repetitions and the form to run as arguments. . . . of three elements: the time (in seconds), the number of times garbage collection kicked in, and the . . . about speed were right. A final reminder: remember that if using the {{{benchmark}}} command //non-interactively//, . . . you have to remember to quote the form you are timing! If you don’t . . .
5K - last updated 2019-03-25 20:03 UTC by Marcin Borkowski
2019-04-15 How to make a menu in Emacs
As we all know, Emacs is so much more than just a text editor. There are quite a few serious applications . . . a space, depending on the context. My rule of thumb is to start it with a space if there is some easy . . . (define-key start-menu-mode-map (kbd "E") (lambda () (interactive) (start-process "another-emacs" . . . only thing that is non-trivial here is the {{{lambda}}} expression. I didn’t bother with defining a . . .
7K - last updated 2019-04-15 20:39 UTC by Marcin Borkowski
2019-04-29 Multiple timestamps in one Org headline
Some time ago I learned that you can put multiple timestamps under one Org-mode headline, and that it . . . things happen irregularly or a finite number of times). For instance, given such a headline: . . .
4K - last updated 2019-04-29 18:34 UTC by Marcin Borkowski
2019-05-11 Toggling modeline clock display
As I mentioned a lot of times, I use Org-mode clocking all the time. Among others, I integrated it with . . . (setq org-clock-mode-line-total-setting-number 0) }}} This is a very rudimentary implementation . . . (setting-number) "Toggle between org-clock-mode-line-total settings. . . . With a numeric argument, use setting SETTING-NUMBER." (interactive "P") (if (numberp setting-number) . . . (setq org-clock-mode-line-total-setting-number (mod setting-number (length org-clock-mode-line-total-settings))) . . .
5K - last updated 2019-05-11 06:27 UTC by Marcin Borkowski
2019-07-01 Syntax-aware navigation, keyboard macros, sleeping Emacs and interactive functions
Warning: today’s post is a bit of a “stream of consciousness” in that it describes several unrelated . . . What is going on here? It turns out that every symbol in Elisp has something called a [[https://www.gnu.org/software/emacs/manual/html_node/elisp/Symbol-Properties.html|symbol’s . . . a lot of stuff for various symbols there by default]] – {{{interactive-form}}} is . . .
5K - last updated 2019-07-01 18:31 UTC by Marcin Borkowski
2019-07-08 Pausing an Emacs keyboard macro
As I [[2019-07-01 Syntax-aware navigation, keyboard macros, sleeping Emacs and interactive functions|promised . . . handy once in a while – so it may be good to remember that something like this exists. Hopefully I won’t . . .
2K - last updated 2019-07-08 21:02 UTC by Marcin Borkowski
2019-07-29 Git commands as separate executable files
Today we are going to talk about git commands and how they are implemented. Don’t worry, I won’t get . . . git-submodule--helper git-subtree git-svn git-symbolic-ref git-tag git-unpack-file git-unpack-objects . . . Well, nothing. How do I know that? Remember the {{{git --exec-path}}} command? In case you . . .
6K - last updated 2019-07-29 18:29 UTC by Marcin Borkowski
2019-08-19 Transplanting a directory to another Git repository
Recently, I had a very specific need. I wanted to move a directory to another Git repo, but I really . . . about {{{--all}}} in e.g. the manpage of the plumbing command {{{git-rev-list}}}. Another thing worth . . . easier part and can be done with yet another plumbing Git command, {{{read-tree}}}. {{{ cd /mem/dest . . .
12K - last updated 2019-08-19 20:57 UTC by Marcin Borkowski
2019-08-31 A simple tip with overlays and diffs
A few days ago I had an interesting problem. I had to resolve a particlarly nasty Git merge. It involved . . . lines' lengths in the triple digits and a fair number of very small changes. Seeing those changes (in . . . off – {{{D t}}} in Magit.) I vaguely remembered that Emacs can search for the next overlay or . . .
3K - last updated 2019-08-31 11:17 UTC by Marcin Borkowski
2019-09-08 PostgreSQL and computing the number of days between two dates
A few days ago I had a very interesting bug. (Frankly, it’s nothing to be proud of, but it’s interesting . . . that this test could not possibly pass in September. And the reason was that the two dates in the . . . What I wanted to achieve was to “calculate the number of days between two dates”, as an integer. Here . . . wrong.) What happens if the test was run in September? (The earlier of the dates was always “today”.) . . .
3K - last updated 2019-09-08 20:41 UTC by Marcin Borkowski
2019-09-16 sponge and other moreutils
GNU coreutils are well-known and loved, especially with pipes (of course!). But what may be slightly . . . The collection contains a surprisingly large number of very clever little tools. One of them is {{{sponge}}}, . . .
3K - last updated 2019-09-16 15:30 UTC by Marcin Borkowski
2019-09-30 diff and ignoring lines
One of the most well-known commandline tools is the classical {{{diff}}} program. On my system, it is . . . This may or may not be what you want, but remember that you can always pipe the result of {{{diff}}} . . .
2K - last updated 2019-09-30 20:33 UTC by Marcin Borkowski
2019-10-28 PostgreSQL, jsonb each and cross joins
A few days ago I stumbled on a PostgreSQL query I didn't really understand. I asked a [[https://stackoverflow.com/q/58280136/1181665|question . . .
3K - last updated 2019-10-28 17:00 UTC by Marcin Borkowski
2019-11-17 Diffing buffer fragments, continued
Apparently, my [[2019-11-11 Diffing buffer fragments|last blog post]] about diffing buffer fragments . . . sparked a [[https://twitter.com/marcin_mbork/status/1193964003527135232|small]] [[https://twitter.com/heinrichhartman/status/1195422507110674432|discussion]] . . .
3K - last updated 2019-11-17 10:28 UTC by Marcin Borkowski
2019-12-23 Counting sentences in emails
[[2015-12-12 Counting sentences|Some time ago]] I wrote about sentence counting in Emacs buffers (or . . . and quotation lines. Print the resulting number if PRINT-MESSAGE is non-nil." (interactive "p") . . .
5K - last updated 2019-12-23 15:01 UTC by Marcin Borkowski
2020-01-06 Org agenda statistics, part I
Some time ago [[2019-07-15 Batch Org agenda|I wrote]] about the {{{org-batch-agenda}}} macro. I decided . . . like {{{ Restoring clock data Loading /home/mbork/.emacs.d/org-clock-save.el (source)... }}} to . . . overdue tasks (so that I could beemind their number), randomly selecting an overdue task to work on, . . .
4K - last updated 2020-01-06 09:08 UTC by Marcin Borkowski
2020-02-02 Encrypted Org-mode journal
I use the Org-mode capturing feature to write a daily journal, where I record various important events . . . none, for a passphrase). It turns out that combining the Org-mode capture templates with handling . . .
2K - last updated 2020-02-02 08:38 UTC by Marcin Borkowski
2020-02-10 My first steps with Lua
Well, the title of this post is a misnomer – I am already well past my //first// steps with Lua, since . . . off, we need the csv file itself: {{{ Letter,Number A,65 B,66 }}} And now, I can say {{{lua -l set-paths . . .
4K - last updated 2020-02-10 19:14 UTC by Marcin Borkowski
2020-02-15 PostgreSQL and null values in jsonb
Some time ago I was writing some PostreSQL queries involving columns of type jsonb. For some reason I . . . or as text (e.g. {{{->>}}}). Combining the above we get the following results. {{{ . . . {{{null}}} values as Unicode “empty set” symbol. It is extremely useful if you need to distinguish . . . output (unless you have Unicode empty set symbols in your data, of course). And finally another . . .
5K - last updated 2020-02-17 14:16 UTC by Marcin Borkowski
2020-02-24 Some psql tips
I have to admit that I’m more and more enamored by PostgreSQL. Since I often use its default client {{{psql}}}, . . . empty screen. Of course, you do not need to remember that sequence – psql’s metacommands accept command-line . . .
4K - last updated 2020-02-24 19:44 UTC by Marcin Borkowski
2020-03-16 COVID-19
It seems that everyone is talking about the COVID-19 pandemic now. Well, I decided to jump the bandwagon . . . pandemic is a perfect opportunity to remember about prayer, so I am going to do the same also . . .
1K - last updated 2020-03-16 20:28 UTC by Marcin Borkowski
2020-04-06 Printing from the command line
Recently, I decided that the time has come to go through another geek rite of passage and to learn how . . . print options (the most useful for me is {{{number-up}}}; there is also {{{landscape}}}, but apparently . . . others]]), * {{{-n}}}, which sets the number of copies to print. The easiest scenario is {{{lp . . . what I want, too. Instead of saying {{{lp -o number-up=2 <file>}}} every time, I can define . . . this way: {{{lpoptions -p my_printer/2up -o number-up=2}}}. From now on, {{{lp -d my_printer/2up . . .
4K - last updated 2020-04-07 10:39 UTC by Marcin Borkowski
2020-04-12 Easter 2020
According to the tradition of my blog, I wish everyone reading this Happy Easter. May the Christ Risen . . . serious than that – He defeated all our sins combined. In other words, we have all the right reasons . . .
1K - last updated 2020-04-12 07:32 UTC by Marcin Borkowski
2020-04-18 The main line of history of some branch
Some time ago, it occurred to me that it would be cool to be able to see the history of some branch of . . . last version. This can be accomplished in a number of ways, depending on the exact workflow. For . . . the form {{{1.23.4}}} or similar (the version number). Such commits can be easily found using [[https://git-scm.com/docs/gitrevisions#Documentation/gitrevisions.txt-emlttextgtemegemfixnastybugem|the . . .
2K - last updated 2020-04-18 12:06 UTC by Marcin Borkowski
2020-04-27 Printing from pdf-tools
[[2020-04-06 Printing from the command line|Some time ago]] I studied the command-line interface to CUPS. . . . The only remaining problem with this code is remembering [[2020-04-06 Printing from the command line|what . . .
3K - last updated 2020-04-27 09:39 UTC by Marcin Borkowski
2020-05-11 Diffing and font-lock
I often work with diffs in Emacs. I usually do that within Magit, which highlights diffs in the usual . . . variable, whose docstring reveals a number of ways Emacs can try syntax highlighting in diff . . .
2K - last updated 2020-05-11 20:37 UTC by mbork
2020-06-08 Emacs as a (very simple) CAT
From time to time, I need to translate something (usually from English to Polish). Being an Emacs user, . . . its keymap under some prefix key. Emacs [[http://mbork.pl/2017-05-15_Smerge_mode|has a similar thing]], . . . to look there and mimick its code. (I made an embarassing mistake along the way, but it works now.) . . . further ado, here is the [[https://github.com/mbork/emacs-cat|GitHub repository with the code]]. . . .
3K - last updated 2020-06-08 20:11 UTC by mbork
2020-06-15 Emacs, Org-mode, Beeminder and pomodoros
As some of my readers probably know, I am a [[http://mbork.pl/2015-08-22_Beeminder.el|happy user of Beeminder]], . . . tomato-mode "A global minor mode tracking number of pomodoros with beeminder.el." :init-value nil . . .
3K - last updated 2020-06-15 20:51 UTC by mbork
2020-06-27 Selective display
A few days ago I was working with some large JSON files. The top level of the file contained a large . . . its elements was a large object consisting of numbers, strings and other objects. I needed to work . . .
2K - last updated 2020-06-27 11:51 UTC by mbork
2020-07-06 Auto renaming image files
Like probably everyone else, I have //lots// of pictures from digital camera(s). Cataloging them is basically . . . to a format like # YYYY-DD-MM--HH-MM-SS[-number][-place].jpg # # Then, renames the directory to . . . seems slightly better. Also, it feels a bit embarassing to use a NodeJS utility in a bash script . . . here are these wrappers: {{{ #!/bin/sh cd /home/mbork/works/marcin/programming/cli-reverse-geocode/ . . .
8K - last updated 2020-07-06 17:51 UTC by mbork
2020-07-19 List all files that were ever present in a Git repo
Sometimes I want to dig deep in Git repo history and find some information about the files that are no . . . was apparently able to [[https://gist.github.com/mbork/57f67f42bfa6efe472ce543a586c3472|fix the issues . . .
2K - last updated 2020-07-19 20:37 UTC by mbork
2020-09-05 Better look of the ivy-occur-grep buffer
Continuing the trend of short tips due to lots of work I have nowadays, here is one thing that bothered . . . {{{ (add-hook 'ivy-occur-grep-mode-hook (lambda () (toggle-truncate-lines 1))) }}} and now I'm . . .
2K - last updated 2020-09-05 06:01 UTC by mbork
2020-09-20 A simple trick with Textern and require-final-newline
I have been using the Textern add-on for Firefox for quite some time now. What it does is it lets you . . . press some key combination while being focused on a {{{textarea}}} element . . . {{{ (add-hook 'markdown-mode-hook (lambda () (when (string-match "\\.textern\\.md$" (buffer-file-name)) . . .
2K - last updated 2020-09-20 10:00 UTC by mbork
2020-11-16 Putting punctuation after closing parens automatically
I (obviously) use Emacs //a lot// for programming. While I would be quite happy to code in Lisp all the . . . us make the semicolon key move first past any number of closing delimiters to the right of the point, . . . {{{skip-syntax-...}}} functions //return// the number of characters they skip (negative in the case . . .
7K - last updated 2020-11-16 21:34 UTC by mbork
2020-12-14 My volume control in AwesomeWM
Embrace yourselves, since a heresy is coming! I sometimes am //outside Emacs// (gasp!), and getting to . . .
2K - last updated 2020-12-14 08:41 UTC by mbork
2021-01-25 Generating consecutive dates in Unix shell
It is no surprise for any regular reader that I have a kind of love-hate relationship with the shell. . . . you wanted to print all //dates// in, say, December 2020 (believe this or not, this was exactly what . . . point is that it only supports floating point numbers and not integers!) – {{{for i in $(seq -f%02.f . . .
3K - last updated 2021-01-25 11:26 UTC by mbork
2021-02-13 Copying to clipboard with single spaces
I sometimes need to transfer some text from Emacs to another program, like a web browser or terminal. . . . that I should use the {{{:before}}} advice combinator – but that was only because I was too lazy . . . as above (or some more general combinator like {{{:around}}}, of course). Another gotcha . . .
6K - last updated 2021-02-13 15:44 UTC by mbork
2021-02-27 Visible bell in Emacs
Emacs has this habit of beeping when something goes wrong (or when the user presses {{{C-g}}}). Frankly, . . . in the [[https://www.emacswiki.org/emacs/AlarmBell|Emacs wiki page about the bell]]. Finally, if . . .
2K - last updated 2021-02-27 09:44 UTC by mbork
2021-03-15 Indenting code in Emacs
A few days ago I needed to look up some indenting functions in Emacs, and I found something I either . . . didn’t know or didn’t remember. (I already knew about {{{<TAB>}}} ({{{indent-for-tab-command}}}, . . .
3K - last updated 2021-03-15 07:34 UTC by mbork
2021-03-20 Using index in the Emacs Info viewer
Recently I was checking how to use the index in the Emacs Info viewer. First of all, let me mention that . . . of course!), but I didn’t know (or didn’t remember) that an index entry may point to more than one . . .
2K - last updated 2021-03-20 07:31 UTC by mbork
2021-03-27 The interactive clause and modes
I was reading up on the {{{interactive}}} clause recently, and I noticed something I’m quite sure there . . . before it hits the distributions. This is a bit embarrassing, but I’m not really sure how the release . . . you can put there minor modes, too! Also, remember that you //need// the {{{arg-descriptor}}} argument . . .
3K - last updated 2021-03-27 09:21 UTC by mbork
2021-05-01 Emacs Lisp book revived
Five and a half years ago [[2015-09-05 EmacsConf2015 - afterthoughts, and a book project|I mentioned . . . its “first edition” in the future) around September, so stay tuned! CategoryBlog, CategoryEnglish, . . .
6K - last updated 2021-05-01 08:40 UTC by mbork
2021-05-17 Updating an Emacs buffer in real-time
I am in the process of writing some Elisp code which needs to provide feedback to the user about a certain . . . modification count”. Their actual numbers they hold are apparently not necessarily meaningful . . .
4K - last updated 2021-05-17 19:33 UTC by mbork
2021-05-24 Ivy and ignoring the order of tokens
Emacs function naming is //strange//. I rediscovered that fact a few weeks ago when I tried to find a . . . command which would accept a number of words/tokens separated by spaces, construct . . .
2K - last updated 2021-05-24 04:37 UTC by mbork
2021-05-30 Extending subed-mode
[[2020-10-12 Editing subtitles in Emacs with subed|Some time ago]] I mentioned the [[https://github.com/rndusr/subed|subed-mode]], . . . Polish almost always makes it //longer//. (I remember reading somewhere, many years ago, that a Polish . . .
6K - last updated 2021-05-30 16:55 UTC by mbork
2021-06-05 Emacs Lisp book update – what the book is going to look like
About a month ago I decided to [[2021-05-01 Emacs Lisp book revived|write about the book on Emacs Lisp . . . me so far and say that I was surprised and humbled to have so many of you. Now I feel even more . . .
7K - last updated 2021-06-07 03:52 UTC by mbork
2021-06-14 New behavior of yank-pop
I have another short Emacs tip for today. Quite recently (well, in November 2020, which – given the scale . . .
3K - last updated 2021-06-14 19:35 UTC by mbork
2021-07-03 Emacs Lisp book - contents
As you [[2021-05-01 Emacs Lisp book revived|probably know]] [[2021-06-05 Emacs Lisp book update – what . . . stuff... I still plan to finish it around September, though.) I also post updates about twice a month, . . .
5K - last updated 2021-07-03 17:10 UTC by mbork
2021-07-12 Counting business days
A need that I sometimes have is to know how many business days are there in a given month. It is not . . . – but it is easy to add some day, say November 1st this year (Nov 1 is a national holiday in . . . or both of which fall on holidays equals the number of actual business days between them.// and it . . . seems a little ambiguous, but the takeaway is this: if the first or . . . first and last day of the month to compute the number of business days, and if not, we can use the last . . .
4K - last updated 2021-07-12 21:18 UTC by mbork
2021-08-02 Reordering sentences in Emacs
I’m probably in a minority, but I am a heavy user of Emacs’ {{{transpose-*}}} commands, most notably . . . prefix argument – “drag” a word past a set number of words forward or backward. (Not many people . . . round!), you can actually [[https://gitlab.com/mbork_mbork_pl/hacking-your-way-emacs-code|download . . .
5K - last updated 2021-08-02 04:15 UTC by mbork
2021-08-23 grep and context lines
Sometimes (well, actually pretty often!) I need to search text files with [[https://www.gnu.org/software/grep/|grep]]. . . . in every line), {{{-n}}} (print the line number along with the matching line) and many others. . . .
1K - last updated 2021-08-23 04:22 UTC by mbork
2021-09-06 My experience with book writing
This is a rather atypical post in that it is just a bunch of thoughts about how to write a book, how . . . process. Both expectations were wrong – the number of people who trusted me with their actual money . . . boost to my motivation!), and the number of people who provided valuable feedback was close . . . When I finally came back, I was a bit more humble and quite a bit more experienced. I realized that . . . and Org-mode with a [[https://github.com/zzamboni/ox-leanpub|Leanpub exporter written by Diego . . .
16K - last updated 2021-09-06 18:31 UTC by mbork
2021-10-04 Emacs Lisp book - status update and plans
This post is a status update about the [[https://leanpub.com/hacking-your-way-emacs/|book I started way . . . that I expect it to be finished “around September”, and, well, it’s October now. Oops. Except that . . . doable. Assuming that we define “around September” as “between August and October, inclusive”, I . . .
4K - last updated 2021-11-05 06:08 UTC by mbork
2021-10-16 The funniest bug I've seen in a pretty long time
I might be in the minority, but I actually do like debugging. It's often like that sort of puzzle game . . . and tried to parse things that looked like a number as a number (which I think is a very bad idea . . .
3K - last updated 2021-10-18 09:12 UTC by mbork
2021-11-29 Counting the number of columns in PostgreSQL
So I had this pretty big PostgreSQL table, and I wanted to know how many columns it had. Should be simple . . . enough, right? Remember about [[2020-03-28_psql_as_a_PostgreSQL_teacher|using . . . about the database – and getting the number of columns in some table is really easy with it: . . . - I found (by experimenting) that the number of //values// you can insert with a single {{{insert}}} . . . I can insert at once, I can divide 2^16 by the number of //columns// in my table. If you need to insert . . .
2K - last updated 2021-11-29 13:00 UTC by mbork
2021-12-04 Org timer once again
I’ve been [[2021-11-01 Org timer with sound|writing about the Org timer about a month ago]], and today . . . default, the timer duration will be set to the number of minutes in the Effort property, if any. You . . . just starts without me having to tell it the number of minutes. Nice! CategoryEnglish, CategoryBlog, . . .
1K - last updated 2021-12-04 07:59 UTC by mbork
2021-12-11 My productivity system - design
Note: this is another of those //really// long posts. It’s probably only interesting for some productivity . . . for instance, if my [[https://www.beeminder.com/mbork/writing|writing goal]] is 10 minutes per day . . . every other day), it seems easier to me to remember the context. If I write a longer blog post (like . . . next Tuesday is difficult, because I don’t remember a lot after a week’s break. On the other hand, . . . much easier – I just pick up where I left, remembering pretty well what I was writing. The last thing . . .
16K - last updated 2021-12-11 10:53 UTC by mbork
2022-01-03 The Emacs Lisp book - looking back and into the future
The time has come to make a short summary about the [[https://leanpub.com/hacking-your-way-emacs/|Hacking . . . from the experience. First of all, I was dumbfounded by the sheer amount of people who bought . . . nice surprise. (I think that [[https://news.ycombinator.com/item?id=29157859|being featured on Hacker . . .
4K - last updated 2022-01-03 18:58 UTC by mbork
2022-01-10 Simple tmux scripting revisited
Some time ago [[2021-09-20 Simple tmux scripting|I wrote]] about my (very simple) {{{tmux}}} script. . . . didn't think about it earlier. The trick is to combine command X with a {{{tmux}}} invocation telling . . .
2K - last updated 2022-01-10 21:59 UTC by mbork
2022-01-24 Journaling with Org-mode
OK, so let’s admit it. I’ve been journaling with Org-mode for more than 6½ years now. Every day (well, . . . [[https://www.beeminder.com/mbork/journal|almost every day]]) I sit down and make . . .
4K - last updated 2022-01-24 16:26 UTC by mbork
2022-02-07 An inclined plane in tikz
Look, a TeX post again! It's been [[2021-09-27 Ellipses in math - ldots versus cdots|another while]] . . . -- (n); \path ($(m)+(bot)-(top)$) coordinate (mbot); \path ($(m)!(n)!(mbot)$) coordinate(m1); \path . . . ($(m)!(n)!90:(mbot)$) coordinate(m2); \draw[->] (m) -- (m1); \draw[->] . . . the given segment. So, I first defined the {{{(mbot)}}} point as the {{{(m)}}} point shifted towards . . . to project {{{(n)}}} onto the line {{{(m) -- (mbot)}}} to get {{{(m1)}}} so that {{{(m) -- (m1)}}} . . .
5K - last updated 2022-02-07 08:04 UTC by mbork
2022-02-12 tomato.el update
Last year [[2020-06-15 Emacs, Org-mode, Beeminder and pomodoros|I wrote about my pomodoro-like setup]] . . . if e.g. you want any of the tasks under some umbrella headline be reported with the common title . . . it “officially” public – I [[https://gitlab.com/mbork_mbork_pl/tomato.el|pushed it to Gitlab]]. Let . . .
2K - last updated 2022-02-12 10:28 UTC by mbork
2022-03-19 Variable-width font in the modeline
Some time ago there was an experimental change on the {{{master}}} branch in Emacs, bringing "variable . . . the left changed (even without changing the //number// of characters), the rest of it would "jump" . . .
2K - last updated 2022-03-21 06:18 UTC by mbork
2022-04-25 Calculating fuel consumption in Org
While I am a big fan of Org-mode, I admit that I don't try to use it for everything. Having used it for . . . do {{{ (advice-add 'org-table-move-row :after (lambda (&rest args) (org-table-recalculate t))) }}} . . .
3K - last updated 2022-04-25 15:08 UTC by mbork
2022-05-09 My productivity system - implementation
Last year I wrote about [[2021-12-11 My productivity system - design|the design of my personal productivity . . . history-like variables (these variables are remembered between sessions thanks to the [[https://elpa.gnu.org/packages/persist.html|persist]] . . .
4K - last updated 2022-05-09 16:59 UTC by mbork
2022-05-16 Two simple helpers for debugging Express.js applications
Sometimes, when debugging [[https://expressjs.com/|Express.js]] applications, it happens that one of . . . {{{console.warn}}} and {{{next}}}. Just remember that it ties more weakly than the fat function . . .
3K - last updated 2022-05-16 10:50 UTC by mbork
2022-06-13 Highlighting and de-highlighting things
From time to time I want to perform a kind-of “human search” on a file. For example, there is some keyword . . . but it interprets a space as “match any number of spaces or tabs”). Yet another one is {{{highlight-symbol-at-point}}}. . . . commands (for some reason, {{{highlight-symbol-at-point}}} is an exception – you have to use . . .
4K - last updated 2022-06-13 19:14 UTC by mbork
2022-06-20 Copying the current location
Continuing the [[2021-02-13 Copying to clipboard with single spaces|trend]] of playing around with [[2021-05-02 . . . wrote a few days ago. When I chat with a team member about some piece of code we are working on, I . . . file name and usually also the current line number. While it is very easy to get the current line . . . number (although be careful with narrowing – the number . . . visible portion of the buffer! Give {{{line-number-at-pos}}} a non-nil second argument to get the . . .
3K - last updated 2022-06-20 17:53 UTC by mbork
2022-07-02 Paying my bills with Emacs
I use Emacs to pay my bills. Literally. I mean, I use it in my day job, obviously, but it’s not what . . . transfer you need to type at least the account number of the person or company you transfer money to, . . . the recipient and type in the invoice number (as the description) and the amount. Still, this . . . is a bit cumbersome. And this is where Emacs can come in. See, . . . the way I know the invoice number and the amount is that I receive an email with . . .
3K - last updated 2022-07-02 19:30 UTC by mbork
2022-07-11 A poor man's Emacs - Jira integration
I use Jira at work. (I know, I know. Actually it’s not //that// bad – at least it’s much better than . . . me how I pull them from Jira to Org. A bit embarassed, I told him that I’ve been just creating . . . output the id, summary and a link, given its number. {{{ #!/bin/bash PREFIX=LT NUMBER=$1 KEY=$PREFIX-$NUMBER . . . jira-prefix "LT" "Jira task prefix for `jira-number-to-summary'.") (defvar jira-domain "https://leet.atlassian.net" . . . "Jira domain for `jira-number-to-summary'.") (defun jira-number-to-summary (number . . .
4K - last updated 2022-07-11 14:05 UTC by mbork
2022-07-18 Making some things more legible
Continuing the topic of [[2022-07-02 Paying my bills with Emacs|one of the last posts]], let me talk . . . payments people often have bank account numbers. Such a number consists (at least in Poland) . . . and the rest are the "basic bank account number". Oftentimes people just paste the string of 26 . . . I sometimes //do// want to actually read the number, for example to make sure that two numbers agree). . . . email is read-only), if you copy the account number to the kill ring, you get no spaces (because they . . .
3K - last updated 2022-07-18 18:32 UTC by mbork
2022-07-25 Make pass help me remember my passwords
As I [[2014-08-31 A simple, command-line-driven password store|mentioned a long time ago]], I use [[http://www.passwordstore.org/|pass]] . . . I decided that it would be beneficial to //remember// at least some of my passwords. My idea is pretty . . . I’d prepare a list of passwords I want to remember, say {{{ mail/private mail/job bank }}} ({{{pass}}} . . .
4K - last updated 2022-07-25 10:44 UTC by mbork
2022-08-01 Making secrets with Emacs
Let’s play with encryption! Well, not //real// encryption – but //fun// encryption. And few things are . . . #'identity (seq-sort #'string< (mapcar (lambda (word) (seq-sort #'< word)) (split-string string))) . . . come earlier in ASCII – so that I need to remember to give it all caps or all lowercase), but the . . .
3K - last updated 2022-08-01 06:35 UTC by mbork
2022-08-08 Copying the current location revisited
[[2022-06-20 Copying the current location|Some time ago]] I wrote about a snippet of Elisp for copying . . . project the file belongs to//. Then, the line number is not always needed; sometimes I need just the . . . is non-nil, the command still obtains the line number and promptly throws it away. I could save a few . . . it.) {{{ (defun copy-current-location (no-line-number) "Show the current location and put it into the . . . ring. \"Location\" means the filename and line number (after a colon). Use the filename relative to . . .
2K - last updated 2022-08-08 15:56 UTC by mbork
2022-08-22 The Emacs range package
Some time ago I discovered something really cool. It turns out Emacs has a package named {{{range}}} . . . is named in a bit unexpected way: {{{ (range-member-p 4 '((1 . 3) (5 . 7))) ;; => nil (range-concat . . . {{{require}}}’ing {{{range}}}, using {{{(number-sequence 1 10)}}}. Still, {{{range}}} looks really . . .
2K - last updated 2022-08-22 15:22 UTC by mbork
2022-08-27 Screenshots from Emacs
Some time ago there was a discussion on the Emacs mailing list about making screenshots from Emacs. From . . . "Screenshot-%Y-%m-%d-%T.") (symbol-name frameshot-format)))) (make-directory directory . . .
2K - last updated 2022-08-27 15:56 UTC by mbork
2022-09-05 Comments in srt files
As I mentioned [[2020-10-12 Editing subtitles in Emacs with subed|several]] [[2021-05-30 Extending subed-mode|times]] . . . I could put comments into {{{srt}}} files to remember these places. Well, it turns out that I can! Of . . . {{{ (add-hook 'subed-srt-mode-hook (lambda () (setq-local comment-start "{\\") (setq-local . . . Here is the secret magic spell to add to the lambda above: {{{ (modify-syntax-entry ?\{ ". 1") (modify-syntax-entry . . .
3K - last updated 2022-09-05 18:53 UTC by mbork
2022-09-17 Safe killing with Emacs
Some time ago Samuel Wales had a [[https://lists.gnu.org/archive/html/help-gnu-emacs/2022-09/msg00180.html|very . . . does the heavy lifting) and then remember the text copied, so that our advised {{{yank}}} . . .
4K - last updated 2022-09-17 14:21 UTC by mbork
2022-10-03 Converting words and sentences to identifiers
Some time ago I had a need to “convert” a phrase, or even a whole sentence, into an identifier. By “converting . . . combo, so that the {{{$}}} would indeed catch the “end”. . . .
4K - last updated 2022-10-03 21:07 UTC by mbork
2022-10-10 Adding timestamps to youtube links
I sometimes keep YouTube links in my Org mode files. They are often links to lectures which I don't usually . . . in one sitting. One trouble I always have is remembering the point where I stopped watching last time . . . nice to be able to supply the time either as a number of seconds (possibly with an {{{s}}} suffix) or . . . (it also accepts a prefix argument – as the number of seconds) and sets the time parameter in the . . . TIME in the YouTube link at point. TIME is number of seconds if called from Lisp, and a string if . . .
3K - last updated 2022-10-10 20:35 UTC by mbork
2022-10-24 Playing videos from the last position in mpv
Two weeks ago [[2022-10-10 Adding timestamps to youtube links|I wrote about saving timestamps in YouTube . . . to quit and the position will be remembered for you. And it gets even better. Open the file . . . (org-link-set-parameters scheme :follow (lambda (url arg) (browse-url (concat scheme ":" url) . . .
3K - last updated 2022-10-24 06:18 UTC by mbork
2022-10-29 A bash helper for prefixed scripts
Let’s say we have some project we are working on. The project involves a number of shell scripts for . . .
4K - last updated 2022-10-29 10:16 UTC by mbork
2022-11-07 Counting working days again
Some time ago [[2021-07-12 Counting business days|I wrote about counting business days in Emacs]]. I . . . functions to get the current date, to get the number of the days in the current month and to get the . . . month 1 year))) (sat (- dow))) (seq-filter (lambda (day) (< (% (- day sat) 7) 2)) (number-sequence . . . current-prefix-arg) (read-number "Day number: ")))) (push day workdays-days-off-this-month) . . . msg) "Count workdays this month and the number of elapsed ones (including today). Return a list . . .
4K - last updated 2022-11-07 07:18 UTC by mbork
2022-12-19 A few new things in Emacs 29
Everybody with an Emacs blogs raves about Emacs 29 these days. Things like Eglot, tree-sitter, SQL support . . . {{{count-words}}}, which now also reports the number of sentences. So simple, so obvious, and yet we . . .
4K - last updated 2022-12-19 07:22 UTC by mbork
2023-01-02 Computing Org mode TODO stats
When I started using Org mode, I followed the very common (and //very// sound) advice and did not try . . . in the current subtree." (let ((stats (mapcar (lambda (keyword) (cons keyword 0)) org-todo-keywords-1))) . . . (org-map-entries (lambda () (let ((keyword (org-element-property :todo-keyword . . . in the current subtree." (let ((stats (mapcar (lambda (keyword) (cons keyword 0)) org-todo-keywords-1))) . . . (org-map-entries (lambda () (let ((keyword (plist-get (cadr (org-element-at-point-no-context)) . . .
4K - last updated 2023-01-09 06:07 UTC by mbork
2023-01-09 TODO stats table
Last week I showed how to compute a summary of all TODO keywords in an Org mode subtree. Today we’ll . . . given by the user in the {{{#+BEGIN}}} line (combined with some other stuff, like the previous content . . . Keyword | Count |\n") (insert "|-\n") (mapc (lambda (keyword-count) (insert (format "| %s | %s |\n" . . .
3K - last updated 2023-01-09 06:09 UTC by mbork
2023-01-14 My plans for 2023
It is the first time I write a post about my plans for the upcoming year. This is because I keep changing . . . enough that there is no need for a book by a humble mathematician turned programmer. But another part . . .
6K - last updated 2023-01-14 07:03 UTC by mbork
2023-01-23 TODO stats table with parameters
[[2023-01-09 TODO stats table|Last time I wrote about my TODO stats table]] I promised to make it more . . . table." (save-excursion (let ((stats (mapcar (lambda (keyword) (cons keyword 0)) org-todo-keywords-1)) . . . ((string-match "\\`tree\\([0-9]+\\)\\'" (symbol-name scope)) (org-up-to-level (string-to-number . . . (match-string 1 (symbol-name scope)))) 'tree) ((functionp scope) (funcall . . . scope)) (t scope)))) (org-map-entries (lambda () (when (or (null maxlevel) (<= (org-reduced-level . . .
5K - last updated 2023-01-23 18:12 UTC by mbork
2023-02-18 My approach to TODOs
Some time ago I described my [[2021-12-11 My productivity system - design|productivity]] [[2022-05-09 . . . (let* ((headlines (cdr (org-map-entries (lambda () (org-element-property :title (org-element-at-point))) . . . {{{cl-loop}}} macro I used. Since I knew the number of times I want to select a headline at random . . .
8K - last updated 2023-02-18 08:52 UTC by mbork
2023-02-25 My plans for 2023 - February update
Some time ago [[2023-01-14 My plans for 2023|I wrote about my plans for 2023]]. What I didn’t mention . . . this is going to be a bit weird, quite possibly embarassing, perhaps boring – but the way to find out . . .
3K - last updated 2023-02-27 20:21 UTC by mbork
2023-03-11 Adding my TODOs to agenda
[[2023-02-18 My approach to TODOs|Last month I wrote]] about my way of managing TODOs. It occurred to . . . I came up with the idea of seeding the random number generator with today’s date. Elisp’s {{{random}}} . . . (let* ((headlines (cdr (org-map-entries (lambda () (org-element-property :raw-value (org-element-at-point))) . . . a top headline in `future.org'. COUNT is the number of first, random and last tasks." (with-current-buffer . . . some irrelevant settings cut out): {{{ (defun mbork-agenda-short () "My personal agenda command." . . .
6K - last updated 2023-03-11 08:33 UTC by mbork
2023-04-15 Downcasing word at point in the whole buffer
Some time ago, one of the members of the [[https://lists.gnu.org/mailman/listinfo/emacs-humanities|Emacs-humanities]] . . . we can use any other value (here I used the symbol {{{'move}}}, but I could use, say, the string . . . {{{"move"}}} or the number 0) to tell {{{search-forward}}} to move the point . . .
8K - last updated 2023-04-15 18:42 UTC by mbork
2023-04-22 Org mode clock table for the last week
Some time ago I mentioned that I started doing "weekly reviews" of what I have done last week and what . . . version of Org mode. For now, I just need to remember to use {{{:wstart 7}}}. While at that, I also . . .
4K - last updated 2023-04-22 19:02 UTC by mbork
2023-04-29 My plans for 2023 - April update
This is a continuation of my posts from [[2023-01-14 My plans for 2023|January]] and [[2023-02-25 My . . . to be very large, I still hoped for a positive number. This means that I lost a bit of motivation to . . .
4K - last updated 2023-04-29 19:09 UTC by mbork
2023-05-06 Juggling playlists in EMMS
It's been several times now that I described my productivity system here. While I like it a lot, it still . . . without arguments – and I don’t want to have lambdas there – I will define two functions for switching . . .
10K - last updated 2023-05-06 06:12 UTC by mbork
2023-05-13 Dieting with Org mode
Some time ago [[https://www.beeminder.com/mbork/weighing|I started to weigh myself every day]]. Some . . . the table (and calculating the mean of 6 numbers and the word {{{Weight}}} doesn’t make sense, . . . this to my template: {{{ :prepare-finalize (lambda () (beeminder-submit-datapoint "weighing" 1 (beeminder-default-comment . . .
4K - last updated 2023-05-13 11:46 UTC by mbork
2023-05-20 How to filter rows with duplicate ids in a csv
Some time ago I encountered an interesting problem. I had a CSV file (imported from a database), and . . . with some clever invocation of [[https://mbork.pl/2022-03-26_A_nice_use-case_for_pee|pee]] and . . .
3K - last updated 2023-05-20 05:27 UTC by mbork
2023-06-12 Counting time, backwards
Some time ago I thought that I would like to have a feature Org mode doesn't seem to have. There are . . . headline (that is, its text and the computed number of days). {{{ (defun org-ago--find-last-time-entries . . . (cl-remove-if-not #'identity (org-map-entries (lambda () (let ((ago (org-compute-last-time))) (when . . . (>= ago (string-to-number (org-entry-get (point) "last_entry_threshold"))) . . . (display-message-or-buffer (mapconcat (lambda (entry) (format "%s [%s days ago]" (car entry) . . .
4K - last updated 2023-06-12 18:08 UTC by mbork
2023-07-03 From mp3s to podcasts
Many years ago I used to listen to podcasts //a lot//. I had my two favorite ones, and they provided . . . want to download an mp3 file – since the app remembers the podcast’s URL, I just put the new file in . . .
3K - last updated 2023-07-03 05:24 UTC by mbork
2023-07-15 Drawing ASCII art charts in Emacs buffers
[[2023-05-13 Dieting with Org mode|Two months ago I wrote]] about how I track my weight in Emacs. I am . . . post. This means that given a set of pairs of numbers, there are only two problems I need to solve: . . . height) (format labely-format y)))) (mapc (lambda (point) (let* ((x (scatter-plot--scale-x (car . . .
6K - last updated 2023-07-15 04:26 UTC by mbork
2023-07-22 Org Clive - a new Org-mode-based blogging engine
As [[2023-06-26 My plans for 2023 - June update|I mentioned a few weeks ago]], I am now working on a . . . it, clone the repository at [[https://gitlab.com/mbork_mbork_pl/org-clive]], load the {{{org-clive.el}}} . . . blobs like fonts – technically, [[2018-08-18 Embedding files in Org-mode revisited|you could also . . .
2K - last updated 2023-07-22 04:45 UTC by mbork
2023-08-05 Plotting ASCII art charts from Org mode tables
[[2023-07-15 Drawing ASCII art charts in Emacs buffers|Three weeks ago]] I wrote about simple ASCII art . . . average), and translate the timestamp to the number of days between today and the day specified in . . . (which converts an Emacs time value to the number of days from 0001-01-01). Here is how I used Org . . . :var data=weight-data :results code (mapcar (lambda (row) (let ((timestamp (car row)) (value (caddr . . . :wrap example (scatter-plot (mapcar (lambda (row) (let ((timestamp (car row)) (value (caddr . . .
5K - last updated 2023-08-05 09:15 UTC by mbork
2023-08-21 My plans for 2023 - August update
Since about two months have passed since [[2023-06-26 My plans for 2023 - June update|the last blog post]] . . . I was writing, called [[https://gitlab.com/mbork_mbork_pl/org-clive|Org Clive]], is now ready, . . .
5K - last updated 2023-08-21 17:47 UTC by mbork
2023-09-02 Irregular recurring TODOs in Org mode, part I
//Warning//: this is the first part of a series which is not even finished yet. And even though it’s . . . by spaced repetition, where things I want to remember are presented to me repeatedly, but with increasing . . . First of all, I don’t really need to //remember// these things actively – I just want to be reminded . . . so after, say, 10 repetitions of something remembered well, the intervals can become so long you are . . . be set to be shown again after, say, a random number of days between a week and a month (more or less). . . .
13K - last updated 2023-09-05 15:25 UTC by mbork
2023-09-18 Making Anki flashcards from subtitles
Those of you who follow my blog know that one of my hobbies is translating subtitles. The main reason . . . This is done with the {{{subed-anki-combine-subtitle-files}}} command. In this stage, I create . . .
4K - last updated 2023-09-18 18:41 UTC by mbork
2023-10-14 Avoiding repetitions
I write a lot of prose. That does not mean I'm //good// at it nor very //creative// -- I haven't written . . . 'show-paren-match) (run-at-time "4 sec" nil (lambda () (delete-overlay prev-overlay)))) (when next . . . 'show-paren-match) (run-at-time "4 sec" nil (lambda () (delete-overlay next-overlay)))))) (global-set-key . . . work under dynamical scoping, because the lambdas in {{{run-at-time}}} are actually //closures// . . .
5K - last updated 2023-10-14 05:03 UTC by mbork
2023-10-30 My plans for 2023 - October update
It's been another two months since [[2023-08-21 My plans for 2023 - August update|my last update]], so . . . 2300 words (and yes, last time I gave higher numbers, but that was because I counted words in the . . .
12K - last updated 2023-10-30 18:52 UTC by mbork
2023-11-13 Coloring CamelCase
Some time ago one of the members of the Emacs mailing list [[https://mail.gnu.org/archive/html/help-gnu-emacs/2023-10/msg00003.html|asked]] . . .
4K - last updated 2023-11-13 06:24 UTC by mbork
2023-11-27 Clocking in to parent entries
Like many, many Emacs users these days, I'm a heavy user of Org mode. In fact, both of my blogs are written . . . [[https://www.beeminder.com/mbork/tomatoes|goal]] to have at least 10 of such chunks . . . lightweight and easy to add, and having to remember to tag them goes against this goal. I would very . . .
6K - last updated 2023-11-27 08:33 UTC by mbork
2023-12-11 Replacing TeX control words behind the point
Two weeks ago, a friend from Polish TeX Users' Group mailing list [[https://www.man.torun.pl/archives/arc/gust-l/2023-11/msg00000.html|asked]] . . . {{{a_1}}} to get translated to {{{a₁}}}. He remembered some utility (written by another Polish TeX . . . in an alist would be most probably faster with symbols than with strings, and a hash table would be . . . of control words, and Unicode has hundreds of symbols. Making a comprehensive list is //a lot// of . . . was that {{{org-entities}}} contained some symbols more than once. It turns out that Org mode has . . .
9K - last updated 2023-12-11 17:05 UTC by mbork
2024-02-12 Finding Bible quotes
I often have the need to find some particular quote of the Bible – either I am reading some religious . . . Of course, I set out to [[https://gitlab.com/mbork_mbork_pl/nab.el|write my own]]. It is a very . . . name (with autocompletion) and the chapter number; with a prefix argument, it also asks for the . . . verse number. It then opens the selected place in the browser, . . . containing precise information about the number of chapters in every book and the number of verses . . .
3K - last updated 2024-02-12 05:39 UTC by mbork
2024-02-17 Opening external drives in Dired
I use external drives pretty often – for backups, for moving files between machines, and for storing . . . The benefits of everything being a buffer|combined with some other Emacs features]]. One problem . . . I use. I could also bookmark the {{{/run/media/mbork}}} directory, but then I’d have to press one . . . which means more directories under {{{/run/media/mbork}}} – the function should allow me to select one . . .
3K - last updated 2024-02-17 16:30 UTC by mbork
2024-03-02 Some tips about Emacs keyboard macros
Some time ago I had to create some rather repetitive code. These days I often use [[https://github.com/magnars/multiple-cursors.el|multiple . . . keyboard macros and insert an (incremented) number for every occurrence, you can type {{{f3}}} ({{{kmacro-start-macro-or-insert-counter}}}) . . . What I needed, though, was to insert that number //twice// for every execution of the macro. Typing . . . on the top of the macro ring. Of course, //remembering// what is in the macro ring and in what order . . . that post like this: “it may be good to remember that something like this exists. Hopefully I won’t . . .
8K - last updated 2024-03-14 04:30 UTC by mbork
2024-03-11 More psql tricks
As I mentioned many times, I am a PostgreSQL fan. I [[2020-02-24 Some psql tips|wrote]] [[2020-03-28 . . . that file. Alternatively, you can use a pipe symbol followed by a shell command to pass the result . . . /tmp/table.tex | head -n2 }}} Now, if you remember my [[2022-02-28 A clever trick with psql copy . . .
6K - last updated 2024-03-12 12:43 UTC by mbork
2024-03-18 Follow mode
It is a fairly common opinion that a function should not be larger than your screen. The reality, though, . . . scrolling. This means that the two windows combined will act as one big “virtual window”. There . . .
3K - last updated 2024-03-18 16:52 UTC by mbork
2024-04-08 Even more Magit tips
Almost five years ago I wrote [[2019-05-05 A few Magit tips|a short post]] with some [[https://magit.vc/|Magit]] . . . with a default value being, well, the symbol {{{default}}}. This value means that Magit defines . . . g}}} for {{{magit-status}}}. As far as I remember, this has always been the recommended choice. . . . {{{C-c M-g}}} bindings are not very easy to remember. This can be remedied with setting {{{magit-define-global-key-bindings}}} . . .
4K - last updated 2024-04-08 06:30 UTC by mbork
2024-04-15 Improving recenter-top-bottom and reposition-window
If one can be a fan of an Emacs command, then I am a huge fan of {{{recenter-top-bottom}}} ({{{C-l}}}) . . . [[https://www.masteringemacs.org/article/combobulate-structured-movement-editing-treesitter|series]] . . . of [[https://www.masteringemacs.org/article/combobulate-interactive-node-editing-treesitter|articles]] . . . and [[https://github.com/mickeynp/combobulate|Combobulate]] by [[https://www.masteringemacs.org/|Mickey . . .
13K - last updated 2024-04-15 17:23 UTC by mbork
2024-04-27 Emacs everywhere
A [[2020-09-20 A simple trick with Textern and require-final-newline|few years ago I mentioned]] that . . . Now, the only thing left is that I need to remember to press {{{s-e}}} to edit //anything// in Emacs . . .
4K - last updated 2024-04-27 16:51 UTC by mbork
About me
My name is Marcin Borkowski. I am Polish and live in Poland. I'm interested in religion (I'm a Roman . . . warned: I'm married;).) My e-mail address is {{{mbork}}}, then an //at// sign, then {{{mbork}}}, dot, . . . you are a human. Don't email me, if you are a spambot. Sorry for the invonvenience and thank you for . . . case you want to IM me, here is my Jabber ID: {{{mbork}}}, //at// sign, {{{piastlan}}}, dot, {{{net}}}. . . . The "canonical" address for this site is http://mbork.pl. There is also a [[http://octd.wmid.amu.edu.pl/en/Marcin_Borkowski_(en)|more . . .
1K - last updated 2013-05-10 08:50 UTC by Marcin Borkowski
Cedilla zamiast ogonka
To zdumiewające, ale nadal spotykam pliki TeXowe, w których zamiast [[http://pl.wikipedia.org/wiki/Ogonek|ogonka]] . . . niezbędny), możemy sobie poradzić pisząc w preambule {{{\usepackage[T1]{fontenc}}}}. Możemy wówczas . . .
2K - last updated 2008-11-10 13:34 UTC by Marcin Borkowski
Comments on 2015-09-05 EmacsConf2015 - afterthoughts, and a book project
Personally, I think this would be an *excellent* idea. I would gladly pay for a copy of the book, and . . . has the //need// to do so, though. ([[http://mbork.pl/2015-08-22_Beeminder.el|I had]].) Re: magit . . .
3K - last updated 2015-09-12 06:16 UTC by Marcin Borkowski
Comments on 2016-02-20 Iedit mode
Another handy way to do this is with helm-swoop. While in a helm-swoop session, you can press C-c C-e . . . Ivy, and I'm quite happy with it. -- [http://mbork.pl Marcin Borkowski] 2016-03-23 17:07 UTC . . .
1K - last updated 2016-03-23 17:07 UTC by Marcin Borkowski
Comments on 2016-02-27 Make Yourself Known – introduction
Why not Scala? Much better than Java and works on JVM. (Though I am not sure about Android). -- Filip . . . but a (tiny) something about Java. -- [http://mbork.pl Marcin Borkowski] 2016-03-01 20:53 UTC . . .
1K - last updated 2016-03-01 20:53 UTC by Marcin Borkowski
Comments on 2016-05-23 Literal values and destructive functions
Quite right, it's the lisp reader which constructs these values. Hence the object is constructed (once) . . . is quite explicit on the point, if you remember to look at that. The documentation on '#s' is . . .
1K - last updated 2016-05-23 12:33 UTC by erez
Comments on 2016-11-27 Life, productivity, faith
Thanks so much for the Beeminder plugs, Marcin! Great post! You also inspired me to gather my notes on . . . ha-tov showed it. 13th-century Torah scholar Ramban: "Set aside a sum of money that you will give . . .
2K - last updated 2016-12-31 22:39 UTC by Marcin Borkowski
Comments on 2018-03-26 Human-readable filesizes
I prefer to shun the IEC binary prefixes and just use K, M, G etc. Context tells you that 1K=1024 and . . . case, I want to know whether the file is 10kB, 1MB or 10MB. -- Marcin Borkowski 2018-03-28 09:22 UTC . . .
1K - last updated 2018-03-28 09:22 UTC by Marcin Borkowski
Comments on 2018-04-21 counsel-rg and symbol at point
You can also: ``` (setq counsel-projectile-ag-initial-input '(thing-at-point 'symbol t)) (setq counsel-projectile-rg-initial-input . . . '(thing-at-point 'symbol t)) ``` To get this automatically. -- Anonymous . . .
1K - last updated 2018-04-23 12:54 UTC by 2.249.150.235
Comments on 2018-07-02 Smart yanking
Doesn't adding the advice in the text-mode-hook mean that after the first time you open a text-mode buffer . . . 2018-07-02 19:02 UTC ---- Wow, good catch! How embarassing;-). Thank you so much for pointing that . . .
1K - last updated 2018-07-04 17:39 UTC by Marcin Borkowski
Comments on 2019-05-27 Programmatically checking for uncommitted changes
This does rather more than it needs. A form of `if [[ ... ]] ; then exit 0 ; else exit 1 ; fi` can be . . . the output to any granularity you want. Remember that magit already provides a command for checking . . .
2K - last updated 2019-06-03 18:49 UTC by Marcin Borkowski
Comments on 2019-11-04 Starting Emacs with custom configuration directory
Hello, perhaps I did not understand what you are trying to do but why do not use .emacs.d as a link whose . . . has another advantage: you don't have to remember to set it back to the normal setting. -- Marcin . . .
2K - last updated 2019-12-01 21:58 UTC by Marcin Borkowski
Comments on 2019-11-11 Diffing buffer fragments
> There is the little-known compare-windows command, which ... has a > major drawback of not displaying . . . very slow for comparing buffers with large numbers of differences. I'm convinced that an efficient . . .
2K - last updated 2019-11-20 17:56 UTC by Mat tPrice
Comments on 2020-08-24 Sorting object keys with Lodash
"Yes, I know that theoretically the order of object properties does not matter and should not be relied . . . order 2. String keys in insertion order 3. Symbol keys in insertion order Further reading: https://2ality.com/2015/10/property-traversal-order-es6.html . . . 06:41 UTC ---- Thanks, I didn't know that! -- mbork 2020-08-31 06:52 UTC . . .
1K - last updated 2020-08-31 06:52 UTC by mbork
Comments on 2020-10-12 Editing subtitles in Emacs with subed
You translated the entire movie? Inconceivable! -- Anonymous 2020-10-13 01:34 UTC ---- Yep. I did it . . . daughter. It's called "true love", you know. -- mbork 2020-10-13 08:34 UTC . . .
1K - last updated 2020-10-13 08:34 UTC by mbork
Comments on 2020-11-01 The situation in Poland
Some context for international readers. This decision has been highly controversial in Poland and started . . . that the state would initiate a citizens' assembly to discuss abortion law. I know that for many . . . still. Anyway, I also pray for my country. -- mbork 2020-11-09 21:18 UTC ---- The Christian church . . . as a pretty accurate yardstick of what to do. -- mbork 2021-02-06 18:36 UTC . . .
4K - last updated 2021-02-06 18:36 UTC by mbork
Comments on 2021-02-20 Using keyboard macros to emulate query replace
While the Emacs wizardry is very nifty, it might be better to use the csquotes package, in which case . . . was to show a nice Emacs trick, of course. -- mbork 2021-02-20 16:26 UTC ---- I know, and it was . . . -- joost 2021-02-22 08:05 UTC ---- Thanks! -- mbork 2021-02-23 17:28 UTC . . .
1K - last updated 2021-02-23 17:28 UTC by mbork
Comments on 2021-04-17 Multiple Help buffers
M-x rename-uniquely is similar but automatically generates the unique buffer name. Bind it to a key to . . . [[2019-11-11 Diffing buffer fragments|this]]. -- mbork 2021-04-26 05:33 UTC . . .
1K - last updated 2021-04-26 05:33 UTC by mbork
Comments on 2021-05-01 Emacs Lisp book revived
Found this through HackerNews. Thank you for filling this niche. Is there a way to subscribe for updates . . . moment at least) -- but how about an [[http://mbork.pl/?action=rss;rcfilteronly=CategoryEmacsBook;rsslimit=all;days=36500;title=mbork%27s%20Emacs%20Lisp%20Book|RSS . . . and also on my [[https://twitter.com/marcin_mbork|Twitter account]]. Also, [[https://sachachua.com/blog/|Sacha . . . happens to mention my blog posts about Emacs. -- mbork 2021-05-03 05:33 UTC ---- The RSS feed is great, . . .
2K - last updated 2021-05-17 19:43 UTC by pkd
Comments on 2021-05-08 Disabling distractions
Nice! Have you heard of this web extension? https://www.getintention.com/ I use it on all my pcs. It . . . poorly (in terms of RAM consumption) with the number of tabs open, so I had to uninstall it. I'll check . . . a dirty hack and not very convenient! -- mbork 2021-05-10 16:54 UTC . . .
1K - last updated 2021-05-10 16:54 UTC by mbork
Comments on 2021-08-16 Remapping commands
Probably they both exist because they do slightly different things. As far as I understand it, (substitute-key-definition . . . well possible such a situation may exist. -- mbork 2021-08-23 04:21 UTC . . .
2K - last updated 2021-08-23 04:21 UTC by mbork
Comments on 2022-04-04 Warning about trying to setq a non-existent variable
Why did you choose to do this in a macro and not a function. At first glance, it seems like a function . . . name (unlike {{{setq}}} and unlike my macro). -- mbork 2022-04-11 05:37 UTC . . .
1K - last updated 2022-04-11 05:37 UTC by mbork
Comments on 2022-06-13 Highlighting and de-highlighting things
I've come to really like symbol-overlay. One command will highlight in a unique color all occurrences . . . of symbol-at-point AND also add a keymap to it as a property . . . even rename them. https://github.com/wolray/symbol-overlay -- hmelman 2022-06-14 00:22 UTC ---- Thanks, . . . seems to have much of its functionality. -- mbork 2022-06-20 17:55 UTC . . .
1K - last updated 2022-06-20 17:55 UTC by mbork
Comments on 2022-10-03 Converting words and sentences to identifiers
I might add a bit to remove anything from the beginning, too: >(replace-regexp-in-region "\\`[^a-z]+" . . . starts with a letter, so I didn't need that. -- mbork 2022-10-29 10:15 UTC . . .
1K - last updated 2022-10-29 10:15 UTC by mbork
Comments on 2022-10-24 Playing videos from the last position in mpv
Use this script, i got 'string-search not found', which version of emacs in using? -- [https://blog.imcompany.cn . . . use {{{string-search}}} in that script... -- mbork 2022-10-29 10:14 UTC ---- You might like https://github.com/yuchen-lea/org-media-note . . . Thanks, I'll definitely check that out! -- mbork 2022-11-07 07:17 UTC . . .
1K - last updated 2022-11-07 07:17 UTC by mbork
Comments on 2022-12-05 A simple function to create abbreviations
I believe that this is The Very Worst method for creating abbreviations that anyone has ever come up . . . used "abbreviations" are l10n, i18n and a11y. -- mbork 2022-12-11 19:51 UTC . . .
1K - last updated 2022-12-11 19:51 UTC by mbork
Comments on 2023-01-02 Computing Org mode TODO stats
> (plist-get (cadr (org-element-at-point-no-context)) :todo-keyword)) But why? There is `org-element-at-point' . . . I simply forgot about it, thanks! -- mbork 2023-01-03 19:36 UTC . . .
1K - last updated 2023-01-03 19:36 UTC by mbork
Comments on 2023-01-30 The benefits of everything being a buffer
Check out the Plan9 operating system with it's plumber utility and acme editor. Russ Cox has a cool presentation . . . 2023-02-01 07:36 UTC ---- WDired can be combined with various other commands to rename a file. . . . and others) is really, really powerful. -- mbork 2023-02-08 05:17 UTC . . .
1K - last updated 2023-02-08 05:17 UTC by mbork
Comments on 2023-05-06 Juggling playlists in EMMS
Hi, Very interesting and helpful post. Just one thing: I use the enwc package to manage networks from . . . I had no idea that exists! I'll check it out. -- mbork 2023-05-06 08:21 UTC . . .
1K - last updated 2023-05-06 08:21 UTC by mbork
Comments on 2024-02-12 Finding Bible quotes
I played a bit with the Millenium Bible site and it seems that you are able to achieve something similar . . . then use the anchor to link to a given verse number using the html name params W<verse>. So . . . I'm wondering if it's documented anywhere... -- mbork 2024-02-17 16:29 UTC . . .
1K - last updated 2024-02-17 16:29 UTC by mbork
Comments on 2024-02-26 A simple trick with URL parsing in plain text emails
If you're ok with hackish solutions - dot-segments are allowed in URIs, hence this will work as well . . . https://mbork.pl/. Source: https://www.rfc-editor.org/rfc/rfc3986#section-3.3 . . . Thanks again! I'm all for hackish solutions! -- mbork 2024-02-28 04:08 UTC . . .
1K - last updated 2024-02-28 04:08 UTC by mbork
Comments on Strona domowa
Hi domowa, I'm using elfeed for reading blogs/newsletts, It would be very helpful if your page contains . . . 08:42 UTC ---- Thanks! How about this? https://mbork.pl/?action=rss;days=30;all=0;showedit=0 -- mbork . . .
1K - last updated 2023-01-31 16:35 UTC by mbork
Definiowanie operatorów typu sin, log itp.
LaTeX ma cały szereg komend składających operatory, które tradycyjnie pisze się antykwą (pismem prostym, . . . mamy, gdy napiszemy <LaTeX-source wrong> $\mbox{sgn}x$ </LaTeX-source> ale wtedy jest jeszcze . . . chciał sobie ułatwić życie i napisał w preambule <LaTeX-source wrong> \newcommand{\sgn}{{\operatorname{sgn}}} . . . mogłoby się wydawać, że najlepiej napisać w preambule <LaTeX-source> \newcommand{\sgn}{\operatorname{sgn}} . . . tego specjalna komenda. Piszemy mianowicie w preambule tak: <LaTeX-source> \DeclareMathOperator{\sgn}{sgn} . . .
3K - last updated 2008-12-19 10:26 UTC by Marcin Borkowski
Dokumentacje LaTeXowe
Poniżej zbieram linki do różnych dokumentacji związanych z LaTeXem.\\ //Uwaga//: dokumenty //pdf//, do . . . * //[[http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf|The Comprehensive . . . LaTeX Symbol List]]// -- lista naprawdę wielu znaczków, jakie . . .
6K - last updated 2013-10-17 16:22 UTC by Marcin Borkowski
English page
This site exists mostly in Polish. Sorry. If you want to complain about it or just tell me anything, . . . feel free to mail me at "mbork" - then the "at" sign - and then “atos.wmid.amu.edu.pl”. . . .
2K - last updated 2013-09-27 20:42 UTC by Marcin Borkowski
Humor
* [[Rada szkoleniowa]] * [[Kermit]] * [[Computer related jokes]] * [[Znaki drogowe]] * [[tpsa-za-darmo.gif|TP . . . SA - za darmo]] * [[mbork FAQ]] KategoriaHumor . . .
1K - last updated 2008-04-27 08:35 UTC by Marcin Borkowski
Komentarz - 2007-01-29 Dlaczego nie
Po namyśle postanowiłem jednak skasować wierszyk "Anonimowego", jako prawdopodobnie podpadający pod kategorię . . . strony (link "[[http://atos.wmid.amu.edu.pl/~mbork/cgi-bin/wiki.cgi?action=history;id=Komentarz_-_2007-01-29_Dlaczego_nie|Zobacz . . .
7K - last updated 2007-03-06 18:38 UTC by Marcin Borkowski
Komentarz - 2007-05-08 Szkoła
Czasami sam się zastanawiam.. nie tylko jaki powinien być nauczyciel, ale bardziej - jaka powinna być . . . przedmiotów, łącznie z "techniką bimbambolenia za pomocą bumbramsztykli", właśnie po to . . .
36K - last updated 2007-07-26 07:45 UTC by leetoo
Komentarz - 2007-09-13 Jak zostałem apologetą
"wiele osób (...) nie chce przyjąć do wiadomości nadprzyrodzonego charakteru Kościoła, i w związku z . . . to jedno, a to, co czasami słyszy się z ambony, to drugie. I nie mam tu nawet na myśli jednego . . .
20K - last updated 2007-10-05 07:16 UTC by Marcin Borkowski
Komentarz - 2008-03-04 It is time...
[[http://atos.wmid.amu.edu.pl/~mbork/cgi-bin/wiki.cgi?action=history;id=2008-03-04_It_is_time...|My hobby]]: . . .
1K - last updated 2008-05-04 20:28 UTC by RadomirDopieralski
Komentarz - 2008-05-30 Wysławiajcie Pana
Z tym nadstawieniem drugiego policzka, to może być jeszcze jedna rzecz: [[http://www.usemod.com/cgi-bin/mb.pl?DefendEachOther|DefendEachOther]]. . . .
1K - last updated 2008-06-20 22:36 UTC by RadomirDopieralski
Komentarz - 2008-08-19 Tatry - porady
karta pamięci 1MB... dyskietki nie mogłeś wziąść? ;) -- [http://andrzej.dopierala.name/ Andrzej Dopierała] . . .
2K - last updated 2008-09-03 05:22 UTC by Marcin Borkowski
Komentarz - 2009-03-07 Czułość dla Biblii
I Ciebie dotknęła piracka histeria? Prawo cytatu przysługuje Ci tak jak wszystim innym, niezależnie od . . . to już nie wiem. (Z drugiej strony, [[http://mbork.pl/Komentarz_-_2009-02-20_Walka_trwa|tekst Izaiasha]] . . .
3K - last updated 2009-04-10 10:15 UTC by Bartosz
Komentarz - 2013-02-04 Proszę chleb, mleko i świerszczyka
Idąc Twoim tokiem rozumowania takie coś: http://youtu.be/WEKhJ3CYWz4 jest dokładnie tak samo sensowne . . . musiałby np. płacić grzywnę. -- [http://mbork.pl Marcin Borkowski] 2013-05-08 00:45 UTC ---- . . . związku z omawianym zagadnieniem. -- [http://mbork.pl Marcin Borkowski] 2013-06-02 14:48 UTC . . .
2K - last updated 2013-06-02 14:48 UTC by Marcin Borkowski
Komentarz - 2015-01-21 Tree Edit Distance
"As a side note: many of my fellows working in mathematical analysis seem to be thinking that algorithms/programming/graphs/combinatorics . . .
1K - last updated 2015-01-30 17:29 UTC by Michał Jarząbek
Komentarz - Kto za tym stoi
Hm... słowa że coś jest zgodne z prawdą głoszoną przez Jezusa Chrystusa, niezależnie z czyich by nie . . . o której pisałem [[http://atos.wmid.amu.edu.pl/~mbork/cgi-bin/wiki.cgi/2007-09-13_Jak_zosta%c5%82em_apologet%c4%85|13. . . .
7K - last updated 2007-10-29 20:56 UTC by RadomirDopieralski
Komentarz - Skansen językowy
Tu można zgłaszać propozycje do [[Skansen językowy|skansenu językowego]]. ---- Jaki wyśmienity pomysł! . . . Mój szanowny małżonek wpadł na kolejne hasło: ambaras. Zgłaszam do skansenu - czekam na decyzję o . . .
11K - last updated 2012-09-13 12:53 UTC by poczta.urzadochota.waw.pl
LaTeX - special characters
<LaTeX-source> \documentclass{article} \begin{document} This document shows how to enter some special . . . for more, consult The Comprehensive LaTeX Symbol List. \end{itemize} \end{document} </LaTeX-source> . . .
1K - last updated 2009-09-18 14:31 UTC by Marcin Borkowski
LaTeX document structure
An example of an ``article'': <LaTeX-source> \documentclass{article} \begin{document} \author{A. . . . and Subsection~\ref{subsec:second}, and an unnumbered Appendix. Unsurprisingly, Section~\ref{sec:first} . . .
1K - last updated 2009-09-18 13:30 UTC by Marcin Borkowski
LaTeX links
== Books, tutorials, reference sheets * [[http://tobi.oetiker.ch/lshort/lshort.pdf|The Not So Short Introduction . . . * [[http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-letter.pdf|The Comprehensive . . . LaTeX Symbol List]] (letter format) * [[http://mirrors.ctan.org/info/visualFAQ/visualFAQ.pdf|Scott . . .
2K - last updated 2017-11-15 10:18 UTC by Marcin Borkowski
LaTeX page styles
By default, we have an empty //header// (that is, the space at the top of the page) and a page number . . . of the page). We can get rid of the page number by saying <LaTeX-source> \pagestyle{empty} . . . </LaTeX-source> in the preamble. Other possibilities of page numbering, so-called . . .
1K - last updated 2009-09-18 16:26 UTC by Marcin Borkowski
LaTeX workshop - About
In September 2009 I conducted a three-hour workshop on LaTeX on [[http://morgan.edu/|Morgan State University]] . . .
1K - last updated 2009-09-20 19:16 UTC by Marcin Borkowski
LaTeX workshop - Basic components of a formula
No mathematical paper can be written without use of at least one of the following symbols (expresions): . . . subscripts Superscripted or/and subscripted symbols are typeset with the caret {{{^}}} and the underscore . . . }}}: <LaTeX-source> For most numbers, the square root is irrational, e.g. \[ \sqrt{2}=1.414212563\ldots . . . we know that if each topological space $X_{\lambda}$, where $\lambda \in \Lambda$, is compact then . . . the product \[ X=\prod_{\lambda \in \Lambda} X_{\lambda} \] is compact. If $f$ . . .
4K - last updated 2009-10-29 22:50 UTC by Piotr Kasprzak
LaTeX workshop - Displayed and inline formulae
Mathematical formulae can be "inline" (i.e., be part of the paragraph) or "displayed" (i.e., be centered . . . for typesetting short formulas or mathematical symbols as a part of the text, for example <LaTeX-source> . . . In case of typesetting larger and more cumbersome formulae it is preferable to display them . . . }}}(if we want to have an equation number in the margin) or {{{\begin{equation*} }}}and . . . {{{\end{equation*} }}}(if we do not want any number). Instead of {{{\begin{equation*} }}}and {{{\end{equation*} . . .
2K - last updated 2009-10-25 22:49 UTC by Piotr Kasprzak
LaTeX workshop - Displays in more detail
Let us recall that the {{{equation}}} (or {{{equation*}}}) environment is used for typesetting a single . . . separate line with an automatically generated number (the latter one omits the number of the formula). . . . The command which allows us to omit a number in a line is {{{\notag}}} (written at the end . . . use {{{align}}} environment, each line gets a number. If you would like the whole formula to be numbered . . . you have to use {{{split}}} environment. (Remember that {{{split}}} is intended to be used only inside . . .
4K - last updated 2009-10-29 22:25 UTC by Piotr Kasprzak
LaTeX workshop - Math alphabets
A mathematician uses different kinds of math alphabets: === blackboard typeset with {{{\mathbb{} }}}(you . . . need to add the {{{amsfonts}}} or {{{amssymb}}} package) <LaTeX-source> \mathbb{ABCDEFGH} . . . need to add the {{{amsfonts}}} or {{{amssymb}}} package) <LaTeX-source> \mathfrak{ABCDEFGHabcdefgh1234567} . . .
1K - last updated 2017-11-22 09:22 UTC by Marcin Borkowski
Matematyka - badania
Na tej stronie zamierzam gromadzić informacje, które mogą się przydać mniej lub bardziej początkującym . . . matematykom -- ambitnym magistrantom, doktorantom czy młodym adiunktom;). . . .
2K - last updated 2010-01-14 10:57 UTC by Marcin Borkowski
Matematyka - studia
Na tej stronie znajdują się materiały dotyczące matematyki wyższej. Jeśli masz jakieś pytanie - np. czegoś . . . komentarza]]. * [[http://atos.wmid.amu.edu.pl/~mbork/download/zadania-tmn100.pdf|Materiały do "Wstępu . . . mnogości"]] * [[http://atos.wmid.amu.edu.pl/~mbork/download/gad-pkty-stale.pdf|Referat o zastosowaniach . . .
1K - last updated 2012-10-21 19:20 UTC by Marcin Borkowski
Math Studies SL materials
Here you can find some downloadable pdf's with materials for the Math Studies SL IB course. The [[Komentarz . . . * Tutorials: ** [http://atos.wmid.amu.edu.pl/~mbork/download/factorizing-quadratics.pdf Factorizing . . . quadratics] ** [http://atos.wmid.amu.edu.pl/~mbork/download/bivariate-stats.pdf Bivariate statistics] . . . * Problem sets: ** [http://atos.wmid.amu.edu.pl/~mbork/download/algebra-powers.pdf Algebra: powers] . . . ** [http://atos.wmid.amu.edu.pl/~mbork/download/eq-line.pdf Equation of a line] ** [http://atos.wmid.amu.edu.pl/~mbork/download/midpoints-distances.pdf . . .
2K - last updated 2008-08-28 11:34 UTC by Marcin Borkowski
Mathematical Analysis for Computer Science 2
Should you have any questions concerning this class, feel free to ask them on the [[Komentarz - Mathematical . . . is here: * [[http://atos.wmid.amu.edu.pl/~mbork/download/danili2/rules.pdf|Rules for passing . . . homeworks): ** [[http://atos.wmid.amu.edu.pl/~mbork/download/danili2/class-01.pdf|class #1]] ** [[http://atos.wmid.amu.edu.pl/~mbork/download/danili2/class-02.pdf|class . . . #2]] ** [[http://atos.wmid.amu.edu.pl/~mbork/download/danili2/class-03.pdf|class #3]] ** [[http://atos.wmid.amu.edu.pl/~mbork/download/danili2/class-04.pdf|class . . . #4]] ** [[http://atos.wmid.amu.edu.pl/~mbork/download/danili2/class-05.pdf|class #5]] ** [[http://atos.wmid.amu.edu.pl/~mbork/download/danili2/class-06.pdf|class . . .
2K - last updated 2010-01-10 16:29 UTC by Marcin Borkowski
Modlitwa
Możemy sobie wzajemnie pomagać - w zrozumieniu matematyki, przy tapetowaniu mieszkania czy wypełnianiu . . . tej strony (link [http://atos.wmid.amu.edu.pl/~mbork/cgi-bin/wiki.cgi/Komentarz_-_Modlitwa tutaj] . . .
1K - last updated 2008-08-28 11:34 UTC by Marcin Borkowski
Noc Naukowców 2010
[[http://atos.wmid.amu.edu.pl/~mbork/download/noc-naukowcow-2010.zip|Pliki do prezentacji]] //Skład wspomagany . . .
1K - last updated 2010-09-24 12:43 UTC by Marcin Borkowski
O mnie
Nazywam się Marcin Borkowski. Interesuje mnie [[Wiara|religia]], [[Matematyka|matematyka]], [[TeX]], . . . do mnie napisać maila, możesz użyć adresu: "mbork", małpa, a po małpie - "mbork.pl". Można też . . . się ze mną przy pomocy jabbera - mój JID to "mbork", małpa, "piastlan.net". Jeśli chcesz komuś polecić . . . tę stronę, możesz użyć oficjalnego adresu http://mbork.pl. Mam też [[http://octd.wmid.amu.edu.pl/pl/Marcin_Borkowski_(pl)|stronę . . .
1K - last updated 2011-06-21 21:35 UTC by Marcin Borkowski
Packages and options
As we have seen, the document //class// is the "type" of the document. On the other hand, a //package// . . . multiple columns, or additional mathematical symbols, and many others. There exist hundreds or even . . . name} </LaTeX-source> in the preamble. For example, when you want to use the amsrefs . . .
2K - last updated 2009-09-20 02:22 UTC by Marcin Borkowski
Packages for font changing
The default LaTeX font is called //Computer Modern//. Although it's quite nice, and has an advantage . . . of having many mathematical symbols (a rare thing with fonts!), sometimes one wants . . .
2K - last updated 2009-09-21 01:50 UTC by Marcin Borkowski
Podstawy arytmetyki finansowej
Poniżej znajduje się elementarne wprowadzenie do arytmetyki finansowej (na poziomie, nazwijmy to, ambitnego . . . udostępnił nam pieniądze. Widać więc, że jeśli Ambroży ma 20 zł, ale wie, że za rok dostanie 80 zł, . . . pytanie brzmi //tak//. Przykładowo, jeśli Ambroży pożyczy Błażejowi 100 zł i umówią się, że Błażej . . . odda Ambrożemu dług za rok, to obaj chcą wyliczyć, jaki odsetki . . . Tak więc kwota 100 zł (pożyczka Ambrożego dla Błażeja) po oprocentowaniu może wynieść . . .
8K - last updated 2008-08-28 11:31 UTC by Marcin Borkowski
Polonizacja LaTeXa
Jeśli chcemy pisać w LaTeXu po polsku, powinniśmy zadbać o kilka rzeczy. == Polskie litery Aby wpisywać . . . klas {{{mw*}}}. == Przykład Tak więc preambuła dokumentu LaTeXowego pisanego po polsku może . . .
2K - last updated 2008-11-10 18:36 UTC by Marcin Borkowski
Polskie cudzysłowy
To wydaje się zdumiewające, ale najwyraźniej niektórzy nie widzą różnicy między stosowaniem znaku cudzysłowu, . . . dwa apostrofy) -- TeX sam wstawi właściwe symbole (przynajmniej, gdy korzystamy ze standardowych . . .
1K - last updated 2008-12-21 16:03 UTC by Marcin Borkowski
Pomoc
== Menu == W standardowej konfiguracji menu znajduje się na górze ekranu. Kolejne pozycje menu to: * . . . Dostępny jest [[http://atos.wmid.amu.edu.pl/~mbork/cgi-bin/wiki.cgi?action=index|spis wszystkich . . . skorzystać z [[http://atos.wmid.amu.edu.pl/~mbork/cgi-bin/wiki.cgi?action=rss|kanału RSS]], zawierającemu . . .
2K - last updated 2007-10-26 16:14 UTC by Marcin Borkowski
Porady LaTeXowe
Poniżej znajdują się różne porady dotyczące LaTeXa, czyli krótkie informacje o tym, jak osiągnąć dany . . . ** [[2009-04-27 Fun with quantifiers (en)|Symbole pod kwantyfikatorami]] (tekst po angielsku) * . . .
2K - last updated 2009-09-20 02:52 UTC by Marcin Borkowski
Przykład na metodę Fouriera
Poniżej obiecany przykład zadania na metodę Fouriera rozdzielania zmiennych -- troszkę (ale tylko troszkę) . . . dochodzimy do równania $X^{\prime\prime}(x)-4\lambda X(x)=0$. Oczywiście $\lambda\ne0$ (bo otrzymalibyśmy . . . Tak jak zwykle badamy, co się dzieje, gdy $\lambda>0$, i okazuje się, że tak być nie może. Pozostaje . . . więc $\lambda<0$, a więc $X(x)=C_1\sin\frac12\sqrt{-\lambda}x+C_2\cos\frac12\sqrt{-\lambda}x$ . . . to otrzymać tak, jak na zajęciach, pisząc $\lambda=-k^2$ itd.). Teraz korzystamy z warunków brzegowych: . . .
3K - last updated 2009-02-10 13:12 UTC by Marcin Borkowski
Przykładowe dokumenty LaTeXowe
Poniżej znajdują się linki do przykładowe plików LaTeXowych wraz z komentarzami. Zachęcam do wykorzystania . . . UAM]] - zawiera parę ciekawych trików w preambule. * [[prezentacja-otwarcie-dr.tex|Prezentacja . . .
1K - last updated 2010-01-06 23:24 UTC by Marcin Borkowski
Równania różniczkowe cząstkowe
== Wymagania == Maksimum 3 nieusprawiedliwione nieobecności. Będą dwa colloquia (ich terminy zostaną . . . tej stronie można śledzić przy użyciu [[http://mbork.pl/?action=rss;rcidonly=R%C3%B3wnania_r%C3%B3%C5%BCniczkowe_cz%C4%85stkowe|kanału . . . == Materiały == [[http://atos.wmid.amu.edu.pl/~mbork/download/zadania-ror410-1.pdf|Zadania na pierwsze . . .
2K - last updated 2009-10-08 12:02 UTC by Marcin Borkowski
Skansen językowy
Wprowadzenie ===== {{{}}}**Skansen językowy** to inicjatywa mająca na celu ochronę przed zapomnieniem . . . kliknąć na link "[[http://atos.wmid.amu.edu.pl/~mbork/cgi-bin/wiki.cgi?action=browse;diff=2;id=Skansen_j%c4%99zykowy|różnice]]". . . . Link do [[http://atos.wmid.amu.edu.pl/~mbork/cgi-bin/wiki.cgi?action=history;id=Skansen_j%c4%99zykowy|innych . . . Zapraszam do lektury! Korpus ====== * acz * ambaras * ananas (w znaczeniu: //hultaj//) * antenat . . .
4K - last updated 2008-04-17 22:10 UTC by Marcin Borkowski
Strona domowa
Witam na mojej prywatnej stronie internetowej! //[If this is all Polish to you, click here: [[English . . . z takich czy innych powodów.// {{{}}} Marcin 'mbork' Borkowski <journal 1> . . .
2K - last updated 2008-10-13 16:41 UTC by Marcin Borkowski
TeX
Na tej stronie staram się gromadzić różne rzeczy przydatne dla początkujących i bardziej zaawansowanych . . . LaTeXowy]] Można również skorzystać z [[http://mbork.pl/?action=rss;rcfilteronly=KategoriaTeX;days=60;all=0;showedit=0;title=%20Ostatnie%20zmiany%20dla%20kategorii%20TeX|kanału . . .
1K - last updated 2009-01-30 09:29 UTC by Marcin Borkowski
TeX (en)
If you don't know what TeX is, you may visit [[http://tug.org]] and click [[http://tug.org/begin.html|Getting . . . started]] there. Happy TeXing! //News//: in September 2009, I gave a three-part short LaTeX workshop . . .
1K - last updated 2009-10-29 22:14 UTC by Marcin Borkowski
TeX formats, engines and distributions
Many LaTeX beginners struggle with a few basic notions, so let us explain them here together. == TeX . . . to the TeX language * {{{pdfetex}}}, which combines the above two (and is now the default LaTeX . . . of {{{xetex}}}), has a scripting language Lua embedded (this is the default engine for modern versions . . .
3K - last updated 2012-09-19 19:35 UTC by Marcin Borkowski
The enumitem package
A very common question is how to change the numbering scheme for the {{{enumerate}}} environment (or . . . </LaTeX-source> to get another numbering scheme). One thing which is good to remember . . . means "options end here". If you want to get a numbering scheme [1], [2] etc., you can write instead . . .
2K - last updated 2009-09-20 02:37 UTC by Marcin Borkowski
The fancyhdr package
The {{{fancyhdr}}} package enables us to change the headers and footers. As usual, the [[http://www.ctan.org/get/macros/latex/contrib/fancyhdr/fancyhdr.pdf|documentation]] . . . footer} \cfoot{Center footer} \rfoot{page number: \thepage} \renewcommand{\headrulewidth}{0pt} . . . command, which typesets the current page number; the {{{\pagestyle{fancy}}}}, which changes the . . .
2K - last updated 2009-09-21 00:54 UTC by Marcin Borkowski
The geometry package
The {{{geometry}}} package is extremely useful when you want to change the margin sizes (and many other . . . it is shown; the footer contains only the page number (which is the default). \end{document} </LaTeX-source> . . .
1K - last updated 2009-09-20 20:15 UTC by Marcin Borkowski
Varia
Tu znajdują się linki do rzeczy, które nigdzie indziej nie pasowały ;) . == Strony wewnątrz serwisu == . . . * Download: ** [[http://atos.wmid.amu.edu.pl/~mbork/download/lista-obecnosci.pdf|Formularz listy . . .
1K - last updated 2012-05-16 00:24 UTC by Marcin Borkowski
XXIII Szkoła Dydaktyki Matematyki - wrzesień 2009
Czwartego września 2009 roku, w ramach [[http://sdm.wmi.amu.edu.pl/|XXIII Szkoły Dydaktyki matematyki]], . . . Na tej stronie znajdują się linki do [[http://mbork.faculty.fmcs.amu.edu.pl/download/2009-sdm-mbork-prezentacja.pdf|prezentacji]] . . . oraz [[http://mbork.faculty.fmcs.amu.edu.pl/download/2009-sdm-mbork-materialy.pdf|materiałów . . .
1K - last updated 2009-09-04 17:00 UTC by Marcin Borkowski
Zbyt duże spacje po kropkach
Nieraz widuję plik, w którym spacje np. po skrótach z kropką są zbyt duże w porównaniu do pozostałych, . . . \usepackage{polski} </LaTeX-source> do preambuły. Jeśli zaś z jakichś powodów nie możemy tego . . .
3K - last updated 2008-11-10 13:25 UTC by Marcin Borkowski
dr.tex
Parę osób pytało mnie ostatnio o szablon doktoratu w LaTeXu. W końcu wziąłem mój doktorat, poświęciłem . . . kwadrans na przejrzenie preambuły i oto rezultat. == Uwaga!!! == Doświadczenie . . . nie będę. Ile razy trzeba powtarzać, że [[http://mbork.pl/2009-04-12_Content_AND_Presentation|forma . . . niewykluczone, że ktoś uzna, że warto [[http://mbork.pl/?action=rss;rcidonly=dr.tex|śledzić zmiany . . . %\usepackage{amsfonts} \usepackage{amssymb} \usepackage{polski} \usepackage[utf8]{inputenc}% . . .
11K - last updated 2010-01-06 23:29 UTC by Marcin Borkowski
dummy
Pliki {{{dummy.dtx}}} oraz {{{dummy.ins}}} stanowią przykład zastosowania programu {{{docstrip}}} i klasy . . . {{{docstrip}}} i klasy {{{gmdocc}}}. * [[http://mbork.faculty.fmcs.amu.edu.pl/download/dummy.dtx|dummy.dtx]] . . . * [[http://mbork.faculty.fmcs.amu.edu.pl/download/dummy.ins|dummy.ins]] . . .
1K - last updated 2008-05-29 10:58 UTC by RadomirDopieralski
gad-pkty-stale.tex
Poniżej znajduje się tekst referatu o zastosowaniach twierdzeń o punktach stałych, dostępnego też w wersji . . . Tutaj definicja % ta jest nieco na wyrost - symbopl brzegu użyty % jest tylo raz w całym dokumencie. . . . do składu % matematycznego (jest lepsza niż \mbox, bo: % (a) dostosowuje się do wielkości np. w . . . istnieje taki punkt $x\in\border U$ i~stała $\lambda\in(0,1)$\tu, że $x=\lambda F(x)$. \end{theorem} . . . stąd każde $F(b)$ jest kombinacją wypukłą punktów z~$\ball$, czyli $F(\ball)\subset\ball$. . . .
36K - last updated 2008-03-13 12:01 UTC by Marcin Borkowski
mbork FAQ
#REDIRECT [[Ja, geek]] . . .
1K - last updated 2008-04-06 15:56 UTC by Marcin Borkowski
prezentacja-otwarcie-dr.tex
Poniżej znajduje się źródło LaTeXowe prezentacji na otwarcie mojego przewodu doktorskiego, przygotowanej . . . \item żadne z~odzworowań $H(\lambda,\cdot)$, gdzie $\lambda\in[0,1)$ nie ma punktów . . . \item istnieją takie $x\in\partial\Omega$ i~$\lambda\in[0,1)$, że $x=R(\lambda F(x))$. \end{enumerate} . . . \end{frame} \end{document} % Koniec i bomba... </LaTeX-source> KategoriaTeX, KategoriaLaTeX . . .
14K - last updated 2008-04-01 21:39 UTC by Marcin Borkowski
regulamin-wmii.tex
Poniżej znajduje się tekst Regulaminu Samorządu Doktorantów WMiI UAM. Warto przejrzeć jego preambułę . . .
35K - last updated 2008-03-13 12:02 UTC by Marcin Borkowski
sum-multi-sample.tex
Poniżej znajduje się przykładowe źródło LaTeXowe fragmentu artykułu matematycznego ([[download:sum-multi-sample.pdf|tu . . . ``blackboard bold'' for the set of natural % numbers. Extra braces are here in case we use something . . . anything except this single line in % the preamble. Also, making the first argument optional with . . . % detailed list of possible commands in the preamble (and how to use % them when there is more than . . . Poland} \email{fake.email@to.fight.spam} % Remember to put the abstract _before_ the \maketitle command! . . .
10K - last updated 2008-10-13 16:42 UTC by Marcin Borkowski
386 pages found.