Re: Suggestions for Text-To-Speech (TTS) from Org sources?
* eSpeak seems to focus on small footprints & a "format synthesis" method * Suggest using Festival with MBrola: https://www.cstr.ed.ac.uk/projects/festival/mbrola.html https://www.cstr.ed.ac.uk/projects/festival/ and/or just install FestivalLite: apt-get install -f -y --force-yes flite * Note EmacSpeak {mentioned in another email} is written by OrgMode user & programmer TV Raman--not sure EmacSpeak will help you at all; but it might be interesting for you ** Klaus Knopper distributes some very interesting free software that includes an audio-desktop called ADRIANE that maybe you can look at--I'd love to hear what you find out if you do: https://www.knopper.net/knoppix-adriane/index-en.html ** Knopper invented the "run Linux entirely from a cdrom" craze--which still is very useful in many ways--suggest you give Knoppix & Adriane a look On Mon, Sep 11, 2023 at 4:02 AM Christian Thäter wrote: > On Sun, 10 Sep 2023 16:39:26 +0200 > Jens Lechtenboerger wrote: > > > On 2023-09-10, Ihor Radchenko wrote: > > > > > Jens Lechtenboerger writes: > > > > > >> does someone here produce audio via Text-To-Speech (TTS) from Org > > >> sources? I plan to do that in the context of emacs-reveal to > > >> generate voice-over for reveal.js presentations, with open > > >> questions [1] concerning my initial, experimental approach. > > > > > > Emacspeak is a mature Emacs solution for TTS. However, it aims blind > > > users, not presentations. Still, > > > http://tvraman.github.io/emacspeak/manual/Quick-Installation.html > > > might be a good starting point for TTS options. > > > > Thank you for the suggestion. With espeak this indeed pronounces > > numbers and abbreviations but its audio quality it not good enough > > for my purposes. I am looking for (near-) human voices... > > using mbrola is probably as good as possible with free software: > https://en.wikipedia.org/wiki/MBROLA > > still not perfect, but much better than the builtin voices of espeak or > festival (YYMV). > > > > > Best wishes > > Jens > > > > >
Re: Suggestions for Text-To-Speech (TTS) from Org sources?
I've turned OrgMode files into audio desktops It was pretty simple Just find the code that reveals what an icon is when you hover over it & pipe it to some text-to-speech engine & then on to usual routes On Sat, Sep 9, 2023 at 2:06 PM Jens Lechtenboerger < lech...@wi.uni-muenster.de> wrote: > Dear all, > > does someone here produce audio via Text-To-Speech (TTS) from Org > sources? I plan to do that in the context of emacs-reveal to > generate voice-over for reveal.js presentations, with open questions > [1] concerning my initial, experimental approach. > > Currently, I like the default model of Coqui-AI TTS [2] and > Microsoft SpeechT5 [3] best. Any suggestions for free and open TTS > implementations that produce even better results? Other models of > Coqui-AI? The solution should work without GPU support, which seems > to rule out Suno Bark [4]. > > The above models do not pronounce numbers/digits, and they fail to > pronounce most acronyms. In a preprocessing step I could replace > those. I use preprocessing anyways to get rid of Org markup that > might confuse the language models. Anyone here who did that > already? Maybe gruut [5] in conjunction with SSML [6] handling? > > Any other suggestions? > > Best wishes > Jens > > [1] https://gitlab.com/oer/emacs-reveal/-/issues/20 > [2] https://github.com/coqui-ai/TTS/ > [3] https://huggingface.co/microsoft/speecht5_tts > [4] https://github.com/suno-ai/bark > [5] https://github.com/rhasspy/gruut > [6] https://www.w3.org/TR/speech-synthesis11/ > >
Re: What do you recommend for acronyms in org-mode?
Wow, that's a great video Dr. Kitchen; I'll have to find time to take a deeper dive into your OrgRef software This question from Mr. Maske is interesting, "...The session load gets too high, the editor becomes too slow,...etc." * Suggest making smaller .org files * Suggest also trying to mix in Abbrev-Mode as a Minor-Mode somehow in the mode-less Emacs editor--using Abbrev-Mode may speed things up in many ways--see this for more: https://www.emacswiki.org/emacs/AbbrevMode ** Maybe even extend Dr. Kitchen's Org-Ref software somehow to include Abbrev-Mode calls--see the software at: https://github.com/jkitchin/org-ref *** Then your own ~/.abbrev_defs.can be set to your own tastes & evolve with you...that might speed things up for you On Sat, Aug 26, 2023 at 9:02 PM Maske wrote: > Hi John! > > I was using org-ref some time ago, but it seemed to get emacs slower, in > my low resources PC. > > Would you give me some tips to make org-ref lighter? > > Best regards > > 27 ago 2023 2:33:05 John Kitchin : > > You can see how these work in org-ref in this video: > https://www.youtube.com/watch?v=sebs2vSIEk4&list=PL0sMmOaE_gs3E0OjExoI7vlCAVygj6S4I&index=13. > > > On Sat, Aug 26, 2023 at 1:21 PM Maske wrote: > >> I would like to know what do you use for acronyms, glossaries, etc for >> using inside org-mode? Not for exportation, just to use them inside Emacs. >> >> Maybe radio links, or the package org-glossary? org-ref? >> >> Best regards >> > > > -- > John > > --- > Professor John Kitchin (he/his) > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > https://kitchingroup.cheme.cmu.edu > https://pointbreezepubs.gumroad.com/ pycse bookstore > >
Re: OS advice
As always great advice from Jude DaSheill: In Emacs you can set the auto-save-interval SETQ to whatever you want; suggest you increase that number of interval of keystrokes required before an auto-save or maybe just turn off auto-saving altogether--if things start to slow down If you do try Linux; and everyone should at one point, realize that in Linux you can easily create & mount extra "swap partitions" on your hard drive which can be used in lieu of memory and/or in addition to it, if indeed as you wondered, there may be a bottleneck of memory usage when you try to use OrgMode--adding swap space may help--maybe not, I haven't looked into it recently, don't want to get your hopes up for such a solution In Linux you can also use exotic things like PVM--Parrallel Virtual Memory--i.e. use memory from OTHER machines YMMV In Linux you can also use Emacs OrgMode and/or VLFMode i.e. "Very Large File Mode" and/or use FUSE to meld directory trees together with remote machines & then edit with your best machine, the machine with the largest RAM--with VLFMode in Emacs you can edit files of ANY size (since it only puts in part of the file at a time)--or you could try VLFMode in the first place; please tell me the results if you try that--does it speed up things for you? Does it solve your problem? Strongly suggest splitting up large OrgMode files when things slow down and/or just putting a link to those other files that you may want to use when in your main OrgMode file by using the file protocol: [[file:~/my-OrgMode-file2][File2]] [[file:~/my-OrgMode-file3][File3]] ... Other than that, I'd suggest trying to use CygWin on Windows first if you haven't used CygWin yet, CygWin comes with XWindows & many other things related to Linux that you may be familiar with can be used too--CygWin was donated to the Free Software Communities from Red Hat--many thanks Red Hat! What do Kill Gates' Micro$loth WindBlows users use now to run Emacs & OrgMode?--y'all use CygWin right? Installing CygWin on Windows is quick and easy & then so is installing Emacs and/or OrgMode after that On Fri, Jan 6, 2023 at 6:19 PM Jude DaShiell wrote: > Why not use a linux live disk and take the operating system for a spin > without disrupting any of windows? The live cd's allow for trial before > installation. > > > > Jude "There are four boxes to be used in > defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author, 1940) > > . > > On Fri, 6 Jan 2023, orzodk wrote: > > > Greg Minshall writes: > > > > > Ypo, > > > > > >> Do you think that if I install a Linux OS, Orgmode would run fast? Any > > >> OS suggestion? > > > > > > it might (*). if it's not too hard to install linux (i have no idea), > you > > > might figure out some sort of benchmark for your org experience, then > > > try switching, see what happens. (there are a lot of variables.) > > > > > > good luck. Greg > > > > > > (*) as a linux enthusiast, and a knee-jerk windows-denier, i want to > > > *believe* it will; that mostly unfounded belief will be of little help > > > to you, though. > > > > I'm in a similar boat, Linux enthusiast, but you're at a point of > > frustration where reinstalling an OS is an option then unless you're > > looking for an execuse to install Linux you might start by reinstalling > > Windows. > > > > If a fresh copy of Windows with years(?) of cruft removed still isn't > > suitable then you might do as Greg suggests and try Linux to see if you > > prefer that experience. > > > > > >
Re: Where is my init.el?
You can put it anywhere you like--you can even have as many as you want: $ emacs -l /somedirectory/init1.el -l /someotherdirectory/init2.el Realize the default "init.el" is actually ~/.emacs so just ensure that your init.el file(s) don't conflict with it and/or throw the "-q" switch which ignores it On Thu, Oct 27, 2022 at 1:59 PM Renato Pontefice wrote: > To try to solve my prob on emacs on Mac osx, I’ve uninstalled and re > installe emacs (after have save my init.el that have some customization). > Now I would use this old init.el but I don’t know where th actual emacs > looks for init.el. > Can you suggest me where I can look for? > > > TIA > > Renato >
Re: Org mode export accessibility
"[I suspect that the exported documents can similarly be improved to reduce the amount of effort required from visually impaired users to read such documents. The question is what improvements can be made on Org side.] Best, Ihor" Very glad to hear from TV Raman, the creator of EmacSpeak, I'm not blind like TV but I was motivated to turn my a main OrgMode buffer into an audio desktop like TV's But now back to the topic; much agree with Ihor, we should focus on "what improvements can be made on OrgMode side" & TV's points are well made too: "pdftex and pdflatex were built in the late 90's"--very true & they were rarely useful Suggest OrgMode make changes aimed at the "Lowest Common Denominator" of accessibility--accessibility in the visual sense AND in the machine or program processable sense or more exactly the "document convertible sense"--I mean documents should be made firstly in a form that all computers can easily navigate & present on computer screens and/or audio desktops in addition to being readily able to print out TV's right, the usual pipeline of LaTeX->PDF can produce tagged & useful documents but can an end user easily copy and paste the document? How useful are pretty documents that run on proprietary systems? Many PDF's can make simple processes like this very hard or impossible--the documents can be very pretty but they can contain control characters & special characters & even malicious code Suggest OrgMode outputs focus on creating "Lowest Common Denominator" documents as output: TeXinfo docs should be used as the LCD doctype--suggest you focus on creating 1 document in Texinfo that you use to create all other sorts of documents, when possible: Pipeline should be more like OrgMode->Texinfo->TROFF||DTD/XML/HTML/XHTML->LaTeX/TeX->DVI||SVG->PS->PDF * TeXinfo: https://savannah.gnu.org/projects/texinfo https://www.gnu.org/software/texinfo ** "Texinfo uses a single source file to produce output in a number of formats, both online and printed (dvi, html, info, pdf, xml, etc.). This means that instead of writing different documents for online information and another for a printed manual, you need write only one document. And when the work is revised, you need revise only that one document. The Texinfo system is integrated well with GNU Emacs. *** Texinfo docs can also be viewed & used by ALL end-users without any issues--regardless of the power of their computer or monitor or even if they're blind like TV Raman--he uses an audio desktop or EmacSpeak--and the same docs can be printed on any printer & remain navigable with "rn" & other simple news-reading software--or the "info" program * Output formats currently supported by Texinfo: https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Output-Formats.html <=> Info,Text,HTML,DVI,PostScript{PS},PDF,DocBook,XML ** Related/useful may be: "latex2nemeth"--a LATEX to Braille/Nemeth, approach "Simple pictures in PSTricks are also supported in order to produce tactile graphics": https://ctan.org/pkg/latex2nemeth On Thu, Jun 30, 2022 at 3:53 AM Ihor Radchenko wrote: > "T.V Raman" writes: > > > 1. Accessibility as word used in isolation has now become mostly > >meaningless, to be concrete one has to ask "Accessibility to whom"? > > > > 2. So in the following, everything I say is with respect to users with > >visual impairments. > > This is exactly the perspective I was hoping to hear from you. Though > this thread is not dedicated to visual impairments. (I guess you also > did not touch the question of color blindness). > > > 3. It's incorrect to define "Accessibility" in terms of a specific > >user access tool or technology -- that usage is marketing jargon > >for a specific Access Solution like a screenreader --- so I refrain > in general from > >defining this in terms of Screenreaders. > > Yet, in order to simplify the efforts needed to read a document exported > from Org mode one needs to use some kind of tool/technology. Unless a > common standard exist in this area, we have to support at least the most > common Access Solutions (prioritizing Free software, if possible). > > From you message, it does not look like there is any common standard. > > > With those meta-thoughts out of the way: > > > > A: Org-generated documents are mostly well-structured documents, and ... > > B: The LaTeX->PDF pipeline *can* produce tagged PDF with respect to ... > > C: pdftex and pdflatex were built in the late 90's by a student in ... > > D: All that said, it is likely still easier to go from org->HTML ... > > Do I understand correctly that you have no issues with reading documents > exported using current version of Org? > > > E: Finally, note that in (D) I said "machine processable" not > > "Accessible"; machine-processable is a pre-requisite to "repurpose " > > what you publish, and making that result usable by different user > > communities is a direct consequence of suche machine-processability. > > I understand. Bu
Re: Links to javascript-based websites from orgmode.org: Paypal and Github
Understood Ihor I respect your position & predicament But I've published my public key address; I know you're an avid & prolific donor of free software--watch your code donations submitted daily--I'll continue to support free software forever of course & thanks very much to RMS & the FSF for starting the free software movement & supporting its growth for many years Suggest you stay away from PayPal & ALL the other methods you suggested--PayPal for example has been shutting down the accounts of "freedom fighters" & can & will continue to do so whenever they wish, for whatever reason they choose You have permission to use my name as your fake software developer "nom de guerre" & I can relay the funding to you in whatever manner you desire--PayPal is fine...until they ban me from that--notes can be made during the transaction of what the project is that you're developing or whatever & then I can relay the money I pay my taxes on crypto gains; but, if I make no money on the transaction in such a transaction, well then I owe no taxes, so I wouldn't have to worry about that--and what laws would you be violating in your country? None that I can think of Just out of curiosity: What country do you reside? Is it Russia? Last I heard Russia is accepting BitCoin for oil, right? I mean, just look what happened in Canada: Truckers used a funding site, funding site was shuttered & bank accounts seized & the list of everyone that donated was published "accidentally" If they used Monero instead, then NONE of the above problems would have manifested--Monero is as NOT trackable & its uncensorable On Sun, Jun 19, 2022 at 9:22 PM Ihor Radchenko wrote: > Richard Stallman writes: > > > > I have been recently exploring Liberapay and stumbled upon > > > https://liberapay.com/about/teams. > > > > Is it possible to make a donation through Liberapay without running > > any nonfree software? Including nonfree Javascript software send > > by the site itself? > > > > And is it possible for the intended recipients to receive the money > > without running nonfree software including JS? > > > > If the answers are yes and yes, maybe that system is ethical and good. > > Otherwise, it is not a solution, only a different variation of the > problem. > > AFAIU, no and no. See > > https://list.orgmode.org/CAFm0skG_-80iQ-TO-hduvVt_GHQWosOHBeHJ61dyA=wng8v...@mail.gmail.com/T/#m322d74a1efb4e3773ae2df7b6bda4505c4b5fa15 > > It looks like there is no free option as long as banks are involved. > > Cryptocurrencies are easier in terms of software freedom, but their > legal status is not stable (e.g. cryptocurrency is illegal in the > country I now live in). > > Best, > Ihor > >
Re: Links to javascript-based websites from orgmode.org: Paypal and Github
Yuge fan of RMS, Richard M Stallman & the OrgMode community--long time user of GNU software & OrgMode As always, much agree with RMS But, suggest donations to support free software be made using Monero--I use the open source "MyMonero" wallet software; its cryptocurrency software--its free & open source & donors can make uncensorable donations as privately as they would like in a currency that cannot be seized by banksters or the NWO NaZi governments running things to hell right now All a software engineer need do is publish a public key number Here's mine for example: 42JjWPnWmWYQaLmtnDyMjC8sCG6YmZ1ViTiJfHWZrSbKfuMWQ27qduYHttrsxYRCyf4UHbFAWQk4y4nTfuUf2jfGD7LWzne On Sun, Jun 19, 2022 at 11:54 AM Richard Stallman wrote: > [[[ To any NSA and FBI agents reading my email: please consider]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > I have been recently exploring Liberapay and stumbled upon > > https://liberapay.com/about/teams. > > Is it possible to make a donation through Liberapay without running > any nonfree software? Including nonfree Javascript software send > by the site itself? > > And is it possible for the intended recipients to receive the money > without running nonfree software including JS? > > If the answers are yes and yes, maybe that system is ethical and good. > Otherwise, it is not a solution, only a different variation of the problem. > > -- > Dr Richard Stallman (https://stallman.org) > Chief GNUisance of the GNU Project (https://gnu.org) > Founder, Free Software Foundation (https://fsf.org) > Internet Hall-of-Famer (https://internethalloffame.org) > > > >
Re: literate programming, development log -- ideas?
* Donald Knuth created much for us, including TeX and a Literate Programming system called CWeb which helped to make C code documented in what he envisioned for Literate Programming ** A more generalized system that is based on CWeb is NoWeb--useful not just for C/C++ code but for every language: Recommend using NoWeb for Literate Programming: "NoWeb — A Simple, Extensible Tool for Literate Programming": https://www.cs.tufts.edu/~nr/noweb/ "As of 28 June 2018, the current supported version is version 2.12." {Author recommends against NOWEB 3.x} On Mon, Jun 7, 2021 at 9:54 AM Dr. Arne Babenhauserheide wrote: > > Greg Minshall writes: > > but i also feel a need for something that might be called a lab > > notebook, a development log, of ideas, including dead ends, i pursue > > during the development process, with links, etc.. but, i'm not really > > sure how to structure this bit, how to integrate it in the rest of the > > .org file -- i.e., as a separate heading, or related to the code section > > that (originally) was under development when the notes were created. > > or...? etc. > > I just add more sections/headings, sometimes tagged as :noexport: > > If need be, I add code-snippets with examples there. > > I feel that that’s the simplest way to do it. > > Best wishes, > Arne > -- > Unpolitisch sein > heißt politisch sein > ohne es zu merken >
Re: One vs many directories
* Strongly suggest looking into Emacs' vlf-mode and the newer vlfi-mode ** That is Very-Large-File-Mode & Very-Large-File-Improved-Mode for issues you're experiencing & if not, simply because they're very useful & interesting & fun Emacs Modes to explore & put into your toolbox https://www.emacswiki.org/emacs/VLF https://github.com/m00natic/vlfi * You mentioned other types of GREP, I second that, and the indexing suggestion--I remember long ago using SGREP which is Simple-GREP, used indexing & was much faster than the usual grep implementations for some things; but, this is at the expense of the fancier & more elaborate GREP functions ** You mention RipGrep--thanks for that, very interesting * Which brings me to my main suggestion to you & why: Emacs, believe it or not, has the FASTEST ENGINE available, without augmentation in any way, for INTERACTIVE SEARCH--since the whole engine is designed to be optimized to search-while-editing But for many other searches, more elaborate searches, fancier GREP searches, it's a VERY BAD choice of ways or programs to use for searching What I mean is, say you're editing a file, and you search for your "ProviderBuilderFactory" Suggest you try opening a huge file--even MULTI-GIGABYTE FILES--huge files in Emacs VLF-Mode--Very Large File-mode {which I believe can be done as a sub-mode to/with Org-Mode} And you can do this fearlessly since vlf-mode works by dividing the files up for you in the background, etc.--while you're editing--but uses the same built-in Emacs engine, optimized for such searches And then you type: Control-s And start to type the first letters of "ProviderBuilderFactory" This will interactive-search HUGE files, very quickly, and in near "Real Time"--since this is what Emacs (implemented in C) is optimized to do--its optimized for initial-character-searching "as you type them"--most other engines are NOT IF FOR NO OTHER REASON THAN IT SOUNDS LIKE FUN! And you might use vlf-mode for other tasks you may face in the future. Please try it out & tell how you like it--you'll never avoid opening huge files again is one benefit Beyond that, suggest you look into using LEX, it's as fast as you can get for some things too. Everything has its niche in the *nix world--which is where GREP came from, Bell Labs, etc.--that's the Unix philosophy, Emacs & LEX tools came from that world & the work of thousands of contributors--suggest you try these tools too for these issues Lastly, say you want to search for things without opening a file, you can still use Emacs in batch-mode, at the command line, without opening a full emacs session On Sat, Nov 21, 2020 at 8:34 PM Jean Louis wrote: > * Dr. Arne Babenhauserheide [2020-11-22 01:48]: > > > So in general I never need to use some general search through Org > > > files or any other files as my way of thinking begins with People or > > > Groups and that narrows what has to be searched. > > > > How do you deal with stuff that applies to several people? > > From database viewpoint there are > > - accounts (which means companies, groups, entities, like "People who > wish to get employed in Europe") > > - there are contacts, that may belong to account, additionally belong > to company (also account), additionally be member of account, so > there are 3 groupings for each contact how that contact may be > related to account. If it is main account such as "Welders" or if > maybe under "Company" is written "welders" (not quite correct) in > reality it does not matter. > > - then there are lists to which other lists belong. Account A and > account B, C, D can belong to list 01. Various accounts can be put > together in uniting lists. Those lists are encompassing other lists, > not individual people but people in the list (account) usually > unless there is only one in the account. Those lists I am using for > mailing them or informing them by letter, SMS, etc. Geologists and > mining engineers and metallurgists are 3 different accounts but if > all of them speak Swahili both in Kenya and Tanzania and are in the > related branch of economy so they can be sent same type of > information. > > Then there are groups, which is just another name for a new list. Then > there are tags. I can freely tag account, contact or anything else. By > tags I can finely select specific people belonging to specific group. > > There are account types and group types. > > Tags by itself have its own description or purpose to name it type. > > Some people introduce other people, few of them introduced > thousands. So contacts have a column "introduced by". That becomes > very handy when talking to somebody and it also helps in awarding > introduces. It helps when people place their hyperlinks and become > automated introducers (lead generation). > > When I know that person belongs to some group of people and I have to > write email and I know it is better to inform everybody, then there is
Re: Anyone doing any fancy customizations of source blocks?
If you haven't already, you probably know all about it; but, for any newcomers on the subject of Literate Programming & source code blocks, etc. Highly recommend Knuth's CWEB book & of course NOWEB software {which is CWEB generalized for ALL programming languages}: https://www-cs-faculty.stanford.edu/~knuth/cweb.html Thanks Diego, its a very interesting config example On Wed, Jun 3, 2020 at 2:24 PM Diego Zamboni wrote: > I use the config John mentioned and I like it - though I use different > symbols. Here's my config if you want an example: > > https://github.com/zzamboni/dot-emacs/blob/master/init.org#source-code-blocks > > --Diego > > On Tue, Jun 2, 2020 at 9:24 PM John Kitchin > wrote: > > > > Here is one approach: > > > > https://pank.eu/blog/pretty-babel-src-blocks.html > > > > I feel like I have seen some work that used ruby and python icons as > displays over #+begin_src, but I can't find it now. > > > > John > > > > --- > > Professor John Kitchin > > Doherty Hall A207F > > Department of Chemical Engineering > > Carnegie Mellon University > > Pittsburgh, PA 15213 > > 412-268-7803 > > @johnkitchin > > http://kitchingroup.cheme.cmu.edu > > > > > > > > On Tue, Jun 2, 2020 at 2:54 PM William Denton wrote: > >> > >> Is anyone doing any fancy formatting of source blocks, such as putting > a line > >> in the left fringe, or a box around them, or having some interesting > background? > >> > >> I ask because I recently changed the theme I use to get the dark > Solarized look > >> I like,[1] and all of a sudden my #+begin_src lines were underlined and > >> #+end_src had a line above it. These come from org-block-begin-line and > >> org-block-end-line, and are shown here, but I'd never noticed them in > >> documentation or had them on my screen before: > >> > >> > https://orgmode.org/worg/org-contrib/babel/examples/fontify-src-code-blocks.html > >> > >> Aside from fontifying the source blocks I've never done anything > special about > >> them (except wonder how I ever did anything without them), but seeing > this made > >> me wonder if anyone here has really customized them so they look like > medieval > >> manuscripts or something from a futuristic video game. (If any of that > is > >> possible---but in Emacs, anything is possible ...) > >> > >> Bill > >> > >> [1] Now I'm using https://github.com/bbatsov/solarized-emacs, with > variable > >> pitch turned off and Org headline resizing turned off. > >> > >> -- > >> William Denton :: Toronto, Canada --- Listening to Art: > https://listeningtoart.org/ > >> https://www.miskatonic.org/ --- GHG.EARTH: https://ghg.earth/ > >> Caveat lector. --- STAPLR: https://staplr.org/ > >> > >
Re: emacs + org-mode in virtual machine/docker/...
Would like to "allow the windows host to access the guest using SSH to run Emacs Org-Mode" suggestions: * Install Cygwin on Windows and use Cygwin's SSH tools & run X on Cygwin & login to your Linux virtual machine desktop ** Then can use X11VNC and/or TightVNC client if you run a VNC server of some sort on your VirtualBox virtual machine * Possibly you could install a NOMACHINE server {https://www.nomachine.com} on the Linux virtual machine & a windows NOMACHINE client on your Windows host machine & login to your Linux virtual machine desktop https://www.nomachine.com/ On Fri, May 22, 2020 at 4:08 AM Roland Everaert wrote: > I am a user of emacs on virtual machines at work, and the environment > works pretty well. I use virtual box as the provided workstation host > windows, but the virtual machine host a linux os though. The only thing I > didn't manage to do yet, is to allow the windows host to access the guest > using SSH. I have read many articles, but none of them seems to work :( > > Any suggestion for the latter topic, (off this list), is welcomed > > Regards, > > Roland. > > On Fri, May 22, 2020 at 7:27 AM Jens Lechtenboerger < > lech...@wi.uni-muenster.de> wrote: > >> On 2020-05-21, John Kitchin wrote: >> >> > What do you do with this image? I would be happy to continue this >> off-list >> > if it seems better. >> >> I generate self-study HTML presentations with audio as OER based on >> reveal.js. See there for a course about to start in two weeks: >> https://oer.gitlab.io/OS/ >> >> Material generated from this: >> https://gitlab.com/oer/OS/-/blob/master/.gitlab-ci.yml >> >> A howto: https://oer.gitlab.io/emacs-reveal-howto >> >> Best wishes >> Jens >> >>
Re: emacs + org-mode in virtual machine/docker/...
Oh if you're talking about students that use a combo of Mac & Windows & Linux: Suggest VirtualBox --its free and can be installed and ported to each But VirtualBox is based largely on Qemu; and for students, I highly recommend they become adept at running and using Qemu I've booted and run many different operating system guest systems using Qemu--even an OS written entirely in Assembler Believe it would be loads of fun for students to load and run many different operating systems with Qemu or distributions of Linux or any OS on the fly But back to our original focus: Running Emacs Org-Mode on a Virtual Machine that is extremely portable--you can do this with Qemu--you can make your own Linux distro with Emacs Org-mode, make an ISO, a .iso file and boot and run it with Qemu You can put it all on a USB key and run it on any machine--and then edit the .iso and add software later if you like But enough about Qemu for student education etc. Suggest: * Install VirtualBox {on all 2 operating systems * Make an virtual machine {Linux or Windows--maybe Mac would be a problem--but I just checked--you could host a VirtualBox virtual machine on a Mac so they should be able to do that (I used to run VMWare every day on my mac and huge Mac servers--booted and ran many virtual machines--it was awesome) * Install Emacs & Org-Mode on the VirtualBox virtual machine & show your students, etc.=> reproducible research computing, at its best! On Thu, May 21, 2020 at 2:02 PM briangpowell . wrote: > You name it in the virtual world & I've done it--and of course Emacs > Org-Mode works great in ALL of them > > KVM+Docker{which I posted to this group about > previously}+VMWare+Qemu+VirtualBox+etc. --I agree with other person: You > can find ready-made Docker containers running emacs--personally I didn't > find it all that interesting--too restrictive--prefer VMWare Workstation > images that I can easily make snapshots of--its great to have many > development versions and easily trash something and just pull out another > snapshot version to use instead if I don't like things {packaging or > libraries can get messed up} > > As much as I hate MicroSoft Windows, it pains me to suggest this; but, I > suggest CygWin--which is a RedHat gift--you can just install your favorite > Desktop like LXDE/XWindows/whatever--and run that right along with > Micro$0ft WindBlowz--works great--right on top of it--I run Org-Mode on > that too--lots of fun, highly recommend it > > All the best software is ported to ALL platforms--Emacs is in that > category of course > > Alternatively you can FUSE filesystems together--so machines can become > part of the directory of the machine you're most comfortable with {that > runs your fave Org-Mode implementation} > > On Thu, May 21, 2020 at 9:28 AM John Kitchin > wrote: > >> Has anyone had any success in creating or using any kind of virtual >> machine that can work across platforms to run emacs+org-mode? >> >> >> John >> >> --- >> Professor John Kitchin >> Doherty Hall A207F >> Department of Chemical Engineering >> Carnegie Mellon University >> Pittsburgh, PA 15213 >> 412-268-7803 >> @johnkitchin >> http://kitchingroup.cheme.cmu.edu >> >>
Re: emacs + org-mode in virtual machine/docker/...
You name it in the virtual world & I've done it--and of course Emacs Org-Mode works great in ALL of them KVM+Docker{which I posted to this group about previously}+VMWare+Qemu+VirtualBox+etc. --I agree with other person: You can find ready-made Docker containers running emacs--personally I didn't find it all that interesting--too restrictive--prefer VMWare Workstation images that I can easily make snapshots of--its great to have many development versions and easily trash something and just pull out another snapshot version to use instead if I don't like things {packaging or libraries can get messed up} As much as I hate MicroSoft Windows, it pains me to suggest this; but, I suggest CygWin--which is a RedHat gift--you can just install your favorite Desktop like LXDE/XWindows/whatever--and run that right along with Micro$0ft WindBlowz--works great--right on top of it--I run Org-Mode on that too--lots of fun, highly recommend it All the best software is ported to ALL platforms--Emacs is in that category of course Alternatively you can FUSE filesystems together--so machines can become part of the directory of the machine you're most comfortable with {that runs your fave Org-Mode implementation} On Thu, May 21, 2020 at 9:28 AM John Kitchin wrote: > Has anyone had any success in creating or using any kind of virtual > machine that can work across platforms to run emacs+org-mode? > > > John > > --- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > >
Re: get the body of a heading up to the next subheading
Emacs was created to do such things--in fact the name E-macs is a terse form of Editor-Macros {originally a derivative of TECO} {There is a huge list of what Emacs should stand for--my fave is: Emacs Makes All Computing Simple} Now, what I'm suggesting is you make a macro, and store and reuse it--to get you started, I suggest something like this Cs* Cn C@ Cs** Cx ( replace-string Cqj Return \n Return Cx ) name-last-macro Give it a name & save it & re-use it and/or EXTEND it later On Mon, May 11, 2020 at 7:05 PM John Kitchin wrote: > Hi everyone, > > I am trying to get the body of a heading up to the next subheading. For > example with this org file, > > * quiz one > > This is the description. > Use emacs for this. > > ** question 1 > what is 40 + 2 > > If the point is in the first heading, I want to run a function that would > return the string "This is the description.\nUse emacs for this." > > I thought there was a simple way to do that, but so far it has eluded my > google fu. Any hints? > > John > > --- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > >
Re: Display in minibuffer link under point
I use this variable to toggle my Gnu Emacs Org-Mode buffer into an audio desktop: (setq tooltip-use-echo-area (not tooltip-use-echo-area)) Of course I had to do some programming to do that but the above should get you started And we can leave that programming as an exercise for the class--right Dr. Kitchin? ;-) On Fri, May 8, 2020 at 9:19 AM John Kitchin wrote: > M-x display-local-help might do it. > > John > > --- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > > > On Fri, May 8, 2020 at 9:15 AM Garjola Dindi wrote: > >> Hi, >> >> Is there a way to display in the minibuffer the URL of the link under >> the point in the same way as when the mouse pointer is over the link? >> >> Thanks! >> >> Garjola >> -- >> >> >>
Re: R session and plotting in x11 window
"I also don't understand why it would be set to X11 in a plain-old R session" R is an open source derivative of S and S-PLUS--"S" was the "Statistics Language" MIT X Consortium's "X Motif" is the default output of R from its inception R, S, S-PLUS have always made such output as its default Suggest you just "get with the program"--thousands of R libraries are ready for you to use, extend and create your own libraries if you like--all leveraging the power of X11R6 --i.e. the XWindows system: https://en.wikipedia.org/wiki/X_Window_System By the way Micro$oft Windows is based on MIT's W--W stood for Windows--yet another thing MicroSoft swiped and monopolized and then sued others about whenever possible--rather than join the open source & free software movement X11 is free & open source--all the best software is free & open source--like Emacs Org-Mode On Mon, Apr 6, 2020 at 9:27 PM Matt Price wrote: > > > On Sun, Apr 5, 2020 at 1:19 PM Berry, Charles > wrote: > >> >> >> > On Apr 4, 2020, at 4:27 PM, Matt Price wrote: >> > >> > Does anyone know much about the difference between an R session opened >> by typing M-x R, and the R session opened by org-babel? >> >> >> Short answer: almost none. >> >> Long answer: what `org-babel-R-initite-session' and friends do. >> > :-) thanks, I should have been looking for that > >> >> > >> > I'm just learning R and my usual method for learning a language is to >> keep a kind of notebook in org with code snippets they I can execute and >> iterate on rapidly as I learn. This works great in R when I'm just doing >> math. When I am working on plots, it would be nice to have them open up >> quickly either in emacs or in the standard x11 window that R session opened >> switch M-x R opens up. >> > >> > I know I can set the src block headers to produ e a file, but when I'm >> just iterating rapidly I often switch back and forth between a data output >> and a graphical output, and typing/erasing those headers is clunky and >> slow. It would be easier to just paste the plot command into the console >> and have it pop open the window... But that doesn't seem to work. Anyone >> know if I can tweak something to make that possible? >> > >> >> >> I sam really puzzled by this. Do you have an ECM that illustrates this? >> >> Working interactively on my Mac (Quartz - X11 is the device), I routinely >> do what you describe - usually working from the src edit buffer - and the >> plots are displayed (and older plots are available via clover-left or some >> such). >> >> If I had to guess, I'd say that you are opening an R session, but not >> using it. If you execute a src block, but it does not have a `:session' >> header, a new instance of R will create a plot file and then exit. If you >> look in the default directory, you would see `Rplots.pdf' or some such. >> >> The only other thing that comes to mind is that you opened a device that >> is holding on to all your plots. Try `dev.cur()' in R immediately before >> and after you create a plot and see what the result is. >> >> This was the problem. I don't see that I'm calling dev.set() anywhere but > when the session initiates dev.cur() returns > > null > 1 > > calling dev.set(1) or dev.set(2) launches an R_x11 window and future plots > are displayed there. As I say, I'm just learning R, and I don't really > understand how the device is set up. I also don't understand why it would > be set to X11 in a plain-old R session, but not in an org-babel R session. > Most references to "device" in ~ob-R.el~ seem to be managing file outputs, > and "X11". For now I don't think I'll explore a proper solution as I'm > already pretty far down a rabit hole just learning R at all! But thanks > very much for this workaround. > > Matt > >> HTH, >> >> Chuck >> >> >>
Re: Emacs hangs sometimes for no reason
Emacs periodically saves all files that you are visiting; this is called auto-saving . Auto-saving prevents you from losing more than a limited amount of work if the system crashes. By default, auto-saves happen every 300 keystrokes, or after around 30 seconds of idle time. Suggest you try making your auto-save-interval variable much larger and see if that helps Also suggest making smaller .org files when practical On Tue, Feb 11, 2020 at 7:33 AM Karl Voit wrote: > * Sebastian Christ wrote: > > Hi list, > > > > in the last couple weeks (perhaps months?) Emacs hangs for no specific > > reason for me. The single constant is, that when it hangs, it hangs > > while I'm in org-mode. This occurs on multiple circumstance as > > > > - changing the outline structure by demoting and promoting headline > > - when refiling > > - re-schedule in agenda > > - yanking > > - perhaps more > > Same here with 3 different Emacs versions. > > > The strange thing is that it happens unpredictably, e.g. I re-schedule > > 11 items without problems and the 12th one lets Emacs crash. Sometimes > > it works for days without problems and then I promote a headline and > > Emacs crashes. Very sad :( > > I did not have a crash here, though. > > > My actual question is, had someone had similar issues? Or is it just me > > with my configuration? > > > > Perhaps someone can guide me on how I can find the root cause for this? > > I pretty much lost here. > > > > Thanks in advance for any hints. > > In a discussion on Org/Emacs scalability issues, I got a hint[1] to use > gcmh.el which indicates garbage collecting activity. My > freeze-moments are almost entirely related to garbage collecting. > > You might want to try that. > > I've got no solution or workaround so far. > > [1] > https://www.reddit.com/r/orgmode/comments/e9p84n/scaling_org_better_to_use_more_medsize_files_or/fcm5bsc/ > > -- > get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: >> get Memacs from https://github.com/novoid/Memacs < > Personal Information Management > http://Karl-Voit.at/tags/pim/ > Emacs-related > http://Karl-Voit.at/tags/emacs/ > > >
Re: Powershell scripting with org-babel
Damn straight it's "mature and appropriate" MicroSoft has been found guilty of MANY crimes that set the software industry back many years through serial acquisitions & monopolistic practices Corporate immaturity, unfair and illegal practices have driven the rise of the Free Software Foundation, Emacs & OrgMode It's why were all here using OrgMode and supporting it--its ALL about freedom and free and open source software MicroSoft PowerShell is a participation in immaturity & stupidity It's fashioned off of shells that really work rather than stripped down nonsense that Gates stole and called his own--i.e. "quick and dirty DOS"--which still works a little bit, on worthless machines enslaved by MicroSoft products Grow up: MicroSoft products are evil and enslaving Now that said, I've used PowerShell; but, only when I had to--I strongly suggest you do the same On Mon, Feb 10, 2020 at 10:33 PM George Mauer wrote: > > Micro$loth WindBlows is a computer virus > > Well that's mature and appropriate. > > I recently did an implementation of `ob-pwsh` for supporting powershell > core (it assumes there’s a pwsh command available on PATH though thats > configurable with `org-babel-command:pws`). Here’s the link > https://github.com/togakangaroo/ob-pwsh. Instructions for installing are > in the README > > It works ok and even supports variables but was a 3 hour hack job, plenty > of features missing. I hadn’t even announced it on this list before. The > code is pretty small though - under 60 loc if you want to contribute to it, > I’m game. > > I also saw this a while ago but haven’t really dug in > https://old.reddit.com/r/emacs/comments/dkz0n1/babel_with_powershell/?st=k5jqc8es&sh=b464c181 > > Oh, and powershell is awesome. It’s 2020, we *should* have a runtime in > our terminal (eshell somewhat does this and is pretty good because of it). > One of the things that would be really nice to do some day would be some > sort of conversion between powershell and lisp structures so that we could > pass structured data as hashes and lists between languages - not just > strings. > > On Mon, Feb 10, 2020 at 7:59 PM briangpowell . > wrote: > >> Micro$loth WindBlows is a computer virus >> >> But if you must use Windows, suggest you use Cygwin and BASH and/or >> EShell {the Emacs Shell}--you can do much more than PowerSh3ll >> >> And Emacs & OrgMode work very nicely on Cygwin >> >> On Mon, Feb 10, 2020 at 11:58 AM MS Window >> wrote: >> >>> Hello, >>> >>> can you help me ? I want to use org-babel for Powershell scripting. I >>> found this code chunk on the internet for customizing org-babel for >>> Powershell on github: >>> >>> https://gist.github.com/cbilson/ae0d90d163be4d769f8a15ddb58292bc >>> >>> There is no explanation there I should put the configuration. The >>> org-babel documentation is too brief for me as beginner to understand. >>> >>> Yours sincerely >>> >>> Claus Keller >>> >>> >>> >>>
Re: Powershell scripting with org-babel
Micro$loth WindBlows is a computer virus But if you must use Windows, suggest you use Cygwin and BASH and/or EShell {the Emacs Shell}--you can do much more than PowerSh3ll And Emacs & OrgMode work very nicely on Cygwin On Mon, Feb 10, 2020 at 11:58 AM MS Window wrote: > Hello, > > can you help me ? I want to use org-babel for Powershell scripting. I > found this code chunk on the internet for customizing org-babel for > Powershell on github: > > https://gist.github.com/cbilson/ae0d90d163be4d769f8a15ddb58292bc > > There is no explanation there I should put the configuration. The > org-babel documentation is too brief for me as beginner to understand. > > Yours sincerely > > Claus Keller > > > >
Re: emacs build command for org-files
"Actually, if it was possible to get M-x compile to run an elisp function instead of a make file, it might be all I need, but it looks like it runs shell commands." You probably know this but just in case: "You can call simulate an EmacsLisp-based script by putting this in a batch script: emacs -batch -l ~/.emacs.editor --eval="(require 'foo)" \ --eval="(require 'bar)" \ --eval="(some-function $*)" Starting with the Emacs 22, you can write Emacs scripts just as if you were writing Bash or Perl scripts, when you include this at the top of your script file: #!/usr/bin/emacs --script' --I mean, Elisp functions can be called as batch files from shell commands called by make makefiles But I believe you're looking for something better, Python is great, but, it shouldn't be applied to every problem "Python will be the Emacs Lisp of the 1990's"--Guido Van Rossum, in one of his 1st meetings on his new language Python--I was there, I wrote down this quote in an Emacs Lisp book Python is a masterpiece developed at the Stichting Mathematisch Centrum in Amsterdam, Holland--during a Christmas break But Python is, strictly speaking, very similar to Lisp & ELisp There are reasons why functional languages like Lisp, Python, Erlang, Haskell, Clojure, etc. Pure Functional Languages, are still not fully dominating--though Python is very popular For such purposes, time reveals what's best--make makefiles & shell programming will continue to be best for many things Have you looked into emacs-lisp shell--i.e. the "eshell"? --and I believe you can call the "eshell" in batch mode from a shell command--and the "eshell" can execute emacs lisp functions of course --and you can even do all that from the Python interactive shell if you like--and call remote shells from it and/or use "IPython" https://en.wikipedia.org/wiki/IPython On Sun, Jan 26, 2020 at 2:38 PM briangpowell . wrote: > "don't want it to necessarily use Makefiles" > > Why the hey not Dr. Kitchin!? > > Make is an extremely powerful language > > Problem is people make makefiles that are often hard for others to > read--suggest you try hard to keep it simple & avoid the fancy ways of > doing things > > Make has flow control & is a very rich language > > I use makefiles for every project Then Ccc to compile and/or run > everything--in Emacs--can't get easier and faster than that--as long as you > make the makefiles so easy that anyone can read & understand exactly what > it does > > This is my default, which I may edit on-the-fly and just put in another > project name: > > make --ignore-errors --jobs=555 -w --keep-going --warn-undefined-variables > --environment-overrides -f ~/n/n/etc/1cv2tex2doc-project_mak.makefile > 1cv2tex2doc-project-exe > > All slightly interesting ways to improve make have failed slightly, in one > way or another--they catch on for a few years until they're mostly > abandoned--for very good reasons > > Look at it this way: Is there anything wrong with make? Where does it > fail? > > Everyone should learn & use make > > --Brian G. Powell, M.S.--that guy that still loves Makefiles and still > loves using asterisks ("***") as bullets in OrgMode > > On Sun, Jan 26, 2020 at 1:11 PM John Kitchin > wrote: > >> Hi everyone, >> >> This is only semi-on-topic. I am looking for something like M-x compile >> for my org-files, but I don't want it to necessarily use Makefiles. I am >> looking for suggestions of existing solutions to this, or thoughts on how >> to implement this. >> >> Actually, if it was possible to get M-x compile to run an elisp function >> instead of a make file, it might be all I need, but it looks like it runs >> shell commands. >> >> For most of my files, simple exporting is totally adequate. But, some >> files are more complicated, and what I usually do in these cases is write >> an elisp code block in a section that is tagged :noexport: and then I run >> that block to build the result. A recent example was a proposal where I >> needed a pdf of the body, and separate pdf of the references. >> >> I have separate elisp functions that generate these, and then I added >> some custom cleanup code in the block to delete some intermediate >> directories. I don't want to put these in a makefile because they are >> specific to this document. While this works, in a large document I find it >> a little inconvenient to make a small change say at the top, and then to >> jump to the bottom to run the build block to see how it changed. What I >> would prefer is to just run a comman
Re: emacs build command for org-files
"don't want it to necessarily use Makefiles" Why the hey not Dr. Kitchin!? Make is an extremely powerful language Problem is people make makefiles that are often hard for others to read--suggest you try hard to keep it simple & avoid the fancy ways of doing things Make has flow control & is a very rich language I use makefiles for every project Then Ccc to compile and/or run everything--in Emacs--can't get easier and faster than that--as long as you make the makefiles so easy that anyone can read & understand exactly what it does This is my default, which I may edit on-the-fly and just put in another project name: make --ignore-errors --jobs=555 -w --keep-going --warn-undefined-variables --environment-overrides -f ~/n/n/etc/1cv2tex2doc-project_mak.makefile 1cv2tex2doc-project-exe All slightly interesting ways to improve make have failed slightly, in one way or another--they catch on for a few years until they're mostly abandoned--for very good reasons Look at it this way: Is there anything wrong with make? Where does it fail? Everyone should learn & use make --Brian G. Powell, M.S.--that guy that still loves Makefiles and still loves using asterisks ("***") as bullets in OrgMode On Sun, Jan 26, 2020 at 1:11 PM John Kitchin wrote: > Hi everyone, > > This is only semi-on-topic. I am looking for something like M-x compile > for my org-files, but I don't want it to necessarily use Makefiles. I am > looking for suggestions of existing solutions to this, or thoughts on how > to implement this. > > Actually, if it was possible to get M-x compile to run an elisp function > instead of a make file, it might be all I need, but it looks like it runs > shell commands. > > For most of my files, simple exporting is totally adequate. But, some > files are more complicated, and what I usually do in these cases is write > an elisp code block in a section that is tagged :noexport: and then I run > that block to build the result. A recent example was a proposal where I > needed a pdf of the body, and separate pdf of the references. > > I have separate elisp functions that generate these, and then I added some > custom cleanup code in the block to delete some intermediate directories. I > don't want to put these in a makefile because they are specific to this > document. While this works, in a large document I find it a little > inconvenient to make a small change say at the top, and then to jump to the > bottom to run the build block to see how it changed. What I would prefer is > to just run a command like M-x org-compile that would know about this build > block and run it. That block could of course be a shell block that runs a > makefile, but it would most often be an elisp block. I could even imagine > that there is a makefile block that is tangled before running a shell block > that runs a make command. > > What I do in a function now is something like this in a save-excursion: > > (when (not (stringp (org-babel-goto-named-src-block "build"))) > (org-babel-execute-src-block)) > > I don't use this in these projects, but they highlight some of the > complexities I am trying to simplify. These are book like projects with > special formatting needs, and multiple outputs. > > In this project ( > https://github.com/jkitchin/pycse/blob/master/pycse.org#L15096), I have > multiple output targets that I would run. > > In this project ( > https://github.com/jkitchin/dft-book/blob/master/dft.org#build) I use > some temporary filters to save the src blocks to files, and to embed them > in the pdf so they can be opened. > > Anyway, it feels like I am reinventing something here, and that there > might be some better approach already out there. Maybe some elisp > equivalent of a makefile or something? > > Thoughts? > > John > > --- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > >
Re: problem with org-toggle-inline-images
I use iimage-mode Have you tried iimage-mode? Notice the 2 i's in iimage Toggling works great with iimage-mode On Tue, Dec 24, 2019 at 8:09 AM Johannes Brauer wrote: > It seems that the problem arised since I’ve upgraded orgmode from version > 9.2.6 (9.2.6-4-ge30905-elpa to version 9.3 (9.3-8-geab7c4-elpa. > On a system where the older version is installed, toggling works fine. > > Johannes > > > Am 24.12.2019 um 11:30 schrieb Johannes Brauer : > > Hi Marco, > > thank for your answer > > Am 24.12.2019 um 11:00 schrieb Marco Wahl : > > The following message is a courtesy copy of an article > that has been posted to gmane.emacs.orgmode as well. > > Hi Johannes, > > Thanks for the report. > > Typing C-c C-x C-v the image is displayed in the org buffer > correctly. Typing C-c C-x C-v again the image does not disappear and I > get the error message: > > org-toggle-inline-images: Symbol’s value as variable is void: image-map > > Any hints what is going wrong? > > > Possibly variable image-map is not used correctly in Org or should not > be used at all. The easiest fix would be to drop the usage of that > variable within Org, I guess. > > Does the issue disappear when you do > > M-: (require 'image) RET > > before the image toggling? > > no, the behavior remains the same. > > Johannes > > >
Re: Displaying remote images
* As always I much agree with Nick, looks like a great patch ** Meanwhile, this will read your R output and stick it at the end of the line & and show it all-at-once elisp:(progn (shell-command "rsync -a BlahRemoteHost:/blah-R-output.png /tmp")(sleep-for 3)(iimage-mode))]] /tmp/blah-R-output.png <-[The .png file showed up right here--no brackets necessary--but name of the file is] *** RSync may be replaced by SCP for sure On Mon, Dec 2, 2019 at 3:29 PM Nick Dokos wrote: > Jack Kamm writes: > > > I've attached a patch which implements displaying remote images. > > > >> This is a longstanding problem, and there was an attempt to patch it in > >> 2014, but the patch was never accepted: > >> https://lists.gnu.org/archive/html/emacs-orgmode/2014-11/msg00583.html > > > > Compared to the previous attempt from 2014, I think my patch is simpler > > -- it doesn't require creating any temp files. > > > >> The fault might be with image.el rather than with org-mode itself -- > >> for example, when I execute the following elisp, I get the same blank > >> box: > > > > After doing some reading, I learned that image.el doesn't really create > > the image. Instead, create-image simply creates a blank string with a > > text property pointing to the image file location, and the rendering of > > the image gets handled later by the C code (for example, png_load_body() > > in image.c), which doesn't know how to read remote image files. > > > > Since I wasn't comfortable trying to get the C code to read the remote > > file, I instead took the approach used by image-mode.el, which reads the > > remote image file and passes its contents directly to create-image, > > instead of just passing the filename. > > > > From 47120666dad6eb0b6ca716325d7de86924e1d28e Mon Sep 17 00:00:00 2001 > > From: Jack Kamm > > Date: Thu, 28 Nov 2019 17:45:56 -0800 > > Subject: [PATCH] org: display remote images > > > > --- > > lisp/org.el | 13 ++--- > > 1 file changed, 10 insertions(+), 3 deletions(-) > > > > diff --git a/lisp/org.el b/lisp/org.el > > index 90f222c8b..dc7bcc7aa 100644 > > --- a/lisp/org.el > > +++ b/lisp/org.el > > @@ -16754,13 +16754,20 @@ buffer boundaries with possible narrowing." > > (t nil))) > > (old (get-char-property-and-overlay > > (org-element-property :begin link) > > - 'org-image-overlay))) > > + 'org-image-overlay)) > > + (remote-p (file-remote-p file))) > > (if (and (car-safe old) refresh) > > (image-refresh (overlay-get (cdr old) 'display)) > > - (let ((image (create-image file > > + (let ((image (create-image (if (not remote-p) > > +file > > + (with-temp-buffer > > + > (insert-file-contents file) > > +(string-make-unibyte > > + > (buffer-substring-no-properties > > + (point-min) > (point-max) > > (and > (image-type-available-p 'imagemagick) > > width 'imagemagick) > > -nil > > +remote-p > > :width width))) > > (when image > > (let ((ov (make-overlay > > FWIW, looks good to me, but I've only (carefully) read the patch: I have > not actually ran it. > > -- > Nick > > "There are only two hard problems in computer science: cache > invalidation, naming things, and off-by-one errors." -Martin Fowler > > >
Re: Displaying remote images
* Great, see a lot of interest and use of image-mode.el, suggest you check out this thread https://emacs.stackexchange.com/questions/3432/display-images-in-eshell-with-iimage-mode ** Suggest you check out and use iimage-mode.el --it may help ...that's iimage-mode.el rather than, or in addition to, your use of image-mode.el On Thu, Nov 28, 2019 at 9:20 PM Jack Kamm wrote: > I've attached a patch which implements displaying remote images. > > > This is a longstanding problem, and there was an attempt to patch it in > > 2014, but the patch was never accepted: > > https://lists.gnu.org/archive/html/emacs-orgmode/2014-11/msg00583.html > > Compared to the previous attempt from 2014, I think my patch is simpler > -- it doesn't require creating any temp files. > > > The fault might be with image.el rather than with org-mode itself -- > > for example, when I execute the following elisp, I get the same blank > > box: > > After doing some reading, I learned that image.el doesn't really create > the image. Instead, create-image simply creates a blank string with a > text property pointing to the image file location, and the rendering of > the image gets handled later by the C code (for example, png_load_body() > in image.c), which doesn't know how to read remote image files. > > Since I wasn't comfortable trying to get the C code to read the remote > file, I instead took the approach used by image-mode.el, which reads the > remote image file and passes its contents directly to create-image, > instead of just passing the filename. > >
Re: Displaying remote images
* Idea 1 Create a "cron job" or "at job" that does updates up to the minute and make those images current...and local--and the cron job can auto-delete the temp file later or back it up * Idea 2 Make an elisp .el program that gets loaded and run whenever you open the .org file with the remote image...and that code updates the images locally * Idea 3 Use the patch you reference and create your own .el program that gets loaded and run when you want it--a cursory examination of the patch reveals that it depends on ImageMagick which is great software that everyone should use; but, it's a dependency that is NOT emacs software and so it makes sense that it was never put into the main OrgMode software tree P.S. I created code and methods to put and run animated .gif's into OrgMode buffers and run them, it was amusing; but, it wasted a lot of ram and slowed everything down Emacs and OrgMode do many great things; but, the focus has always been, at it's core, the most powerful editor and stateless organizing software--it's not a browser of dynamically generated Internet pics--Emacs W3 was created to do that, and it hasn't been updated in years--suggest you look at Emacs W3 browser code and/or w3m browser or even UZBL browser--all of which were made into good extensions for doing such things--UZBL by the way has been made to operate fully encapsulated in an emacs buffer On Thu, Nov 28, 2019 at 12:36 PM Jack Kamm wrote: > When trying to display a remote image file in an org-mode buffer, I > only see a blank square instead of the image. > > This is a longstanding problem, and there was an attempt to patch it in > 2014, but the patch was never accepted: > https://lists.gnu.org/archive/html/emacs-orgmode/2014-11/msg00583.html > > The fault might be with image.el rather than with org-mode itself -- > for example, when I execute the following elisp, I get the same blank > box: > > (insert-image (create-image "/scp:pi:/home/pi/foo.png")) > > However, if I open the remote file in its own buffer using image-mode, > I can correctly view the image. > > Anyways, I would like to try and fix this, but not sure whether we > should pursue a fix in org.el (as in the linked patch), or in > image.el, or elsewhere. > > Any advice on how to proceed here? > >
Re: Anyone use 3rd party search tools w/org-mode?
Emacs (shortened name from "Editor Macros") has the fastest Regular Expression engine in the world--when you compare the engines that are programmed to find and display character strings AS YOU TYPE THEM. So, just hoping you keep that in mind: As far as editing documents and searching documents and in some cases replacing strings, there is nothing faster than Emacs and its native regular expression engine, which is built for editing tasks--editing tasks that are especially related to and programmed for searching strings and/or regular expressions as you type them in In many other ways, of course other engines are faster; but, not for editing and searching and replacing tasks And even when you talk about editing multi-gigabyte and even multi-terabyte files--suggest you look into and try out vlf-mode (i.e. "Very Large File Mode") for that, just for the fun and excitement of it, if for nothing else. So, again, GNU Emacs is by far the world's most powerful editor, and it has been for many, many years--there is no need for 3rd party tools, maybe there's a need to investigate the "engines under the hood" and why they work the way they do. On Tue, Nov 12, 2019 at 8:04 AM Russell Adams wrote: > To further explain my setup, I have three libraries of files Personal, > Technical > and Business. Personal is all personal data including Org files, Technical > is > all whitepapers and vendor documentation, and Business is Org projects and > other > matters. Recoll is used to search all of them. > > In my shell profile I have a few functions to access each library, and to > file > away new documents (ie: I downloaded a whitepaper, and just want to slap > it into > a unique directory in the library). > > #+BEGIN_EXAMPLE > # For recoll and library > func _FileRecoll() { DEST="$HOME/Library/$1/$(date +%Y/%m/%d)" ; mkdir > -p $DEST ; mv -i "$2" $DEST ; } > func FileTech() { _FileRecoll "Technical" "$1" ; } > func FilePersonal() { _FileRecoll "Personal" "$1" ; } > func FileBiz() { _FileRecoll "Business" "$1" ; } > > func recollt() { RECOLL_CONFDIR=~/Library/.recoll-Technical > ~/scripts/recolltui.sh $@ ; } > func recollp() { RECOLL_CONFDIR=~/Library/.recoll-Personal > ~/scripts/recolltui.sh $@ ; } > func recollb() { RECOLL_CONFDIR=~/Library/.recoll-Business > ~/scripts/recolltui.sh $@ ; } > #+END_EXAMPLE > > I have a daily cronjob to index those directories: > > #+BEGIN_EXAMPLE > # Recoll > 00 2 * * * /usr/bin/recollindex -c ${HOME}/Library/.recoll-Personal/ > >> "${HOME}/Library/.recoll-Personal/recollindex.log" 2>&1 > 00 3 * * * /usr/bin/recollindex -c ${HOME}/Library/.recoll-Technical/ > >> "${HOME}/Library/.recoll-Technical/recollindex.log" 2>&1 > 00 4 * * * /usr/bin/recollindex -c ${HOME}/Library/.recoll-Business/ > >> "${HOME}/Library/.recoll-Business/recollindex.log" 2>&1 > #+END_EXAMPLE > > Then I have a simple TUI shell script which wraps dialog around recoll's > CLI. This puts the filename in my clip board for command line pasting, and > opens > PDFs in Firefox. > > #+BEGIN_EXAMPLE > #!/bin/sh > # ~/scripts/recolltui.sh > > # requires recollq optional cli binary to be present from recoll package > # uses base64, xsel, and dialog > > DB=$(mktemp) > MENU=$(mktemp) > trap 'rm -f -- "${DB}" "${MENU}"' INT TERM HUP EXIT > > # Make sure to customize RECOLL_CONFDIR (ie: > ~/Library/.recoll-Technical) if needed > > # query recoll, save the base64 output to $DB as 3 space separated > columns: row #, title, url > recollq -e -F "title url" $@ 2>/dev/null | nl > $DB > > # copy header into menu > head -n 2 $DB | while read num rest ; do > echo "= \"$rest\"" >> $MENU > done > > # Convert results to dialog menu using row # and title + filename as > list item > # skip first two lines of results, they are not base64 > tail -n +3 $DB | while read num title url ; do > echo "$num \"$(echo "$title" | base64 -w0 -d ) : $(basename "$(echo > "$url" | base64 -w0 -d | sed 's,file://,,g')")\"" >> $MENU > done > > # ask the user which results to view > SEL=$(dialog --menu "Search results" 0 0 0 --file $MENU --stdout) > > # if a choice was made, open the url in firefox AND copy it to the > clipboard > [ $? -eq 0 ] && { > URL="$(awk "\$1 == $SEL {print \$3}" $DB | base64 -w0 -d)" > echo "$URL" | sed 's,file://,,g' | xsel > firefox "$URL" > } > > #+END_EXAMPLE > > I've often thought that the dialog script could be easily replaced by an > Emacs > interface, but I haven't taken the time to try to write one. > > I've found that recoll's indexing in Xapian is excellent. I frequently can > find > my search terms in technical documentation very rapidly. The support of > many > file types makes it index well. I think my most frequent formats are text > including Org, PDF, and DOC. > > I used to have a "Scrapbook" extension in Firefox which would instantly > save a > webpage being viewed into my Personal library. Unfortunately that isn'
Re: Good way to pre/view LaTeX-lines?
* Suggest reviewing these free software packages: https://itsfoss.com/latex-editors-linux/ ** LyX and/or Kile are my faves ** Suggest trying these free software packages too apt-get install imaxima apt-get install maxima apt-get install maxima-emacs apt-get install texlive apt-get install texlive-math-extra On Sun, Oct 27, 2019 at 3:29 PM Dmitrii Korobeinikov wrote: > > https://orgmode.org/org.html#Previewing-LaTeX-fragments > > Thank you, William! This is great. > > After some digging, I still gotta wonder about a few things though. > 1. Is there some sort of live-editing feature? By that I mean, being able > to view the result (in a seperate buffer or minibuffer or even on the next > line) as you type out the expression. In particular, it would be nice to > know how to show an image in the minibuffer (and if possible at all) and > how to effectively feed what's under cursor to the latex backend and get > the image. > 2. It would be handy to autoremove the image overlay when the cursor is on > the fragment (and restore it when goes outside). I think no redraw should > be necessary unless the the formula is edited. > > I guess I would have to dig into org-toggle-latex-fragment to know how to > do these, but any help/pointers would be appreciated. > > Regards, > Dmitrii > > вс, 27 окт. 2019 г. в 21:07, William Denton : > >> On 27 October 2019, Dmitrii Korobeinikov wrote: >> >> > I am looking for a comfortable way to view LaTeX (for math formulas) in >> > org-mode. >> >> This shows how: >> >> https://orgmode.org/org.html#Previewing-LaTeX-fragments >> >> I don't use it often, but it works very nicely. >> >> Bill >> -- >> William Denton :: Toronto, Canada --- Listening to Art: >> https://listeningtoart.org/ >> https://www.miskatonic.org/ --- GHG.EARTH: https://ghg.earth/ >> Caveat lector. --- STAPLR: https://staplr.org/ >> >
Re: [O] Several headers on a table
* Many years ago I asked that such features be programmed into OrgMode--for Multivariate Statistics output--they flatly refused and said there would be no plans to do so ** In retrospect; and, in the future, after much thought about it: I very much agree with and respect the main of the OrgMode developers & there decisions in this case *** Because you can always simply type in such parts of the "exterior table" and represent the fact that your table is Multivariate Statistics output--output from statistical software like SAS {which I've made such tables from--believe it was with the SAS Tabulate subsystem software} Also, OrgMode leverages the abilities of Donald Knuth's Tex/LaTeX typesetting system--which can output beautiful Multivariate Statistics in the format you seek OrgMode leverages Emacs Calc for the guts of the engine that operates on living and changing tables--OrgMode tables OrgMode operates on tables AFTER their initially generated--and in that way your tables enable the use of ANY programming language { through OrgMode's BabelMode etc.} to become a Functional Programming Language that operates on whatever is inside the main tables--and you define the functions--which are Emacs Calc functions that make up the tables {and this opens up your abilities to calculate on-the-fly tables and functions operating within those functions to a staggering degree--Emacs Calc is a very powerful software subsystem in and of itself} ** But back to your main question; and, away from the philosophy behind OrgMode: Suggest you do this: |--+-+-| | | Recording Time | | |--+-+-| | Battery pack | Continuous5 | Typical 5 | | | | | |--+-+-| |+-+-+-+-+-+-+-| | Image quality | HD | MP4 | STD | HD | MP4 | STD | XYZ | |+-+-+-+-+-+-+-| | NP-FV30 (supplied) | 90 | 100 | 95 | 45 | 50 | 45 | 555 | | NP-FV50| 170 | 190 | 180 | 85 | 95 | 90 | 555 | | NP-FV70| 355 | 395 | 375 | 175 | 195 | 185 | 555 | | NP-FV100 | 710 | 785 | 745 | 355 | 390 | 370 | 555 | |+-+-+-+-+-+-+-| ** Then just hit "Tab" inside each of the sub-pieces (to make it pretty again) & delete the 5's and the 2 lines separating the table pieces, voila, you have Multivariate Output tables that look very pretty, like SAS or TeX output and still have all of the methods accrued to you through OrgMode and the EmacsCalc subsystem to operate on and update the main guts of the table and with OrgMode and BabelMode you can do it with any language and/or extend it to accommodate your own or a new language On Sun, Oct 20, 2019 at 8:18 AM Cecil Westerhof wrote: > I have the following table: > |+-+-+-+-+-+-| > | Image quality | HD | MP4 | STD | HD | MP4 | STD | > |+-+-+-+-+-+-| > | NP-FV30 (supplied) | 90 | 100 | 95 | 45 | 50 | 45 | > | NP-FV50| 170 | 190 | 180 | 85 | 95 | 90 | > | NP-FV70| 355 | 395 | 375 | 175 | 195 | 185 | > | NP-FV100 | 710 | 785 | 745 | 355 | 390 | 370 | > |+-+-+-+-+-+-| > > But I like to put the following headers above it: > |+---| > || Recording Time| > |+---| > |+-+-| > | Battery pack | Continuous | Typical | > |+-+-| > > So I would get: > |+---| > || Recording Time| > |+---| > |+-+-| > | Battery pack | Continuous | Typical | > |+-+-| > |+-+-+-+-+-+-| > | Image quality | HD | MP4 | STD | HD | MP4 | STD | > |+-+-+-+-+-+-| > | NP-FV30 (supplied) | 90 | 100 | 95 | 45 | 50 | 45 | > | NP-FV50| 170 | 190 | 180 | 85 | 95 | 90 | > | NP-FV70| 355 | 395 | 375 | 175 | 195 | 185 | > | NP-FV100 | 710 | 785 | 745 | 355 | 390 | 370 | > |+-+-+-+-+-+-| > > Would that be possible? > > -- > Cecil Westerhof >
Re: [O] Viewing animated gif as inline video
https://github.com/Fuco1/org-inline-image --on GitHub: "This package adds functionality to inline images into an org-mode buffer. The images can be present locally on the filesystem (not implemented yet) or downloaded from the internet automatically." "Use Call org-inline-image when the point is on the link to inline it there. The link text will be overlayed with the image. To hide the image, hit h (or call org-inline-image-hide) while the point is on the image. Gif images are animated automatically when inlined. To animate it again, hit a (or call org-inline-image-animate)." On Sat, Apr 13, 2019 at 3:52 PM briangpowell wrote: > I have done it before in OrgMode > > Its very compute intensive; and, more annoying than useful mostly--but I > did it many years ago, it would be interesting what percentage of computer > resources are now used > > But for a very small amount of computer screen real estate you can put a > very long scrolling message, for example--which can be very useful if you > are trying to deliver an OrgMode buffer as some sort of kiosk interface to > yourself or other operators > > I'll try to dig up how I did it > > Just want you to know that it can be done in OrgMode--what version of > Emacs, etc. is required (and why), I'm not sure > > On Sat, Apr 13, 2019 at 2:22 PM Marvin Doyley wrote: > >> Hi there, >> >> Does anybody know how to view an animated gif as an inline video? I can >> see the first frame as an inline image, but I am unable to view the video. >> >> Thanks >> M >> >
Re: [O] Viewing animated gif as inline video
I have done it before in OrgMode Its very compute intensive; and, more annoying than useful mostly--but I did it many years ago, it would be interesting what percentage of computer resources are now used But for a very small amount of computer screen real estate you can put a very long scrolling message, for example--which can be very useful if you are trying to deliver an OrgMode buffer as some sort of kiosk interface to yourself or other operators I'll try to dig up how I did it Just want you to know that it can be done in OrgMode--what version of Emacs, etc. is required (and why), I'm not sure On Sat, Apr 13, 2019 at 2:22 PM Marvin Doyley wrote: > Hi there, > > Does anybody know how to view an animated gif as an inline video? I can > see the first frame as an inline image, but I am unable to view the video. > > Thanks > M >
Re: [O] ODT export --> opening in Okular?
* Suggest you try changing this: ("\\.odt\\'" . "libreoffice6.0 %s" * To this instead: ("\\.odt\\'" . "libreoffice %s" --since "libreoffice6.0" is a specific link that is subject to change--not only by you but by your chosen operating system package manager Unless of course, you intentionally run several versions of libreoffice, which is possible but seems pointless On Sun, Dec 9, 2018 at 6:07 PM James Harkins wrote: > Hi, > > I realize I'm running an older version of org-mode (8.3.3), but things are > working for me generally and I'm not in a position to monkey around with my > environment right now. > > Anyway, something strange. A few months ago, I was able to export to ODT > and the file would open in LibreOffice. But, just now, emacs insists on > issuing a command to open it in okular. > > Creating ODT file... > Running zip -mX0 project-notes.odt mimetype > Running zip -rmTq project-notes.odt . > Created /blah/blah/project-notes.odt > Parsing archive file...done. > Running okular /blah/blah/project-notes.odt --icon okular -caption > Okular...done > > Okular? That makes no sense at all. > > I tried adding an entry to org-file-apps to force it to use libreoffice6.0 > to open ODT files, but this is having no effect. > > '(org-file-apps >(quote > ((auto-mode . emacs) > ("\\.mm\\'" . default) > ("\\.x?html?\\'" . "/usr/bin/firefox %s") > ("\\.pdf\\'" . "/usr/bin/okular %s") > ("\\.odt\\'" . "libreoffice6.0 %s" > > I can find no hard coded reference to Okular anywhere in the org source > code. > > This is quite mysterious to me. If it's using a particular app to open > this type of file, I should be able to find some settings or some > instruction somewhere. But I can't. > > How to fix this? > > hjh > > >
Re: [O] Best way of including tikz into latex (pdf and beamer) export with preview?
* ImageMagick is great for shrinking images and/or making thumbnails for previews and/or maybe the emacs elisp program "thumbs.el" will help: ;;; thumbs.el --- Thumbnails previewer for images files ;;; ;; Author: Jean-Philippe Theberge ... On Thu, May 12, 2016 at 4:45 AM, Rainer M Krug wrote: > Hi > > What is the best way of including tikz into org for latex export (beamer > and pdf), and to have preview as well? > > Thanks, > > Rainer > > -- > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation > Biology, UCT), Dipl. Phys. (Germany) > > Centre of Excellence for Invasion Biology > Stellenbosch University > South Africa > > Tel : +33 - (0)9 53 10 27 44 > Cell: +33 - (0)6 85 62 59 98 > Fax : +33 - (0)9 58 10 27 44 > > Fax (D):+49 - (0)3 21 21 25 22 44 > > email: rai...@krugs.de > > Skype: RMkrug > > PGP: 0x0F52F982 >
Re: [O] [OT] Git plus Syncthing: breaking hard links
* Strongly recommend you pay close attention to Nick Dokos--he's brilliant--agree totally with his suggestions; "hardlinks cannot span filesystems" etc. ** "hardlinks breaking"--in rsync I throw -H to include/follow hard links across filesystems when syncing. *** I'm with Nick though again--not sure what you mean by "hardlinks breaking" * Thanks for the "syncthing" link and comments--its open source: "Syncthing https://syncthing.net/ Syncthing replaces proprietary sync and cloud services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to ..." ** Sounds great, hope its easy to implement, thanks. *** I prefer rsync for such problems at the moment. * Suggest you use FuseFS and sshfs---and on her MacOS she can use BREW to install the FUSE .DMG package and use OSX shell to get to the filesystems that you're willing to share (you mentioned you were worried about providing too much). ** Not recommending SAMBA+CIFS protocol--especially right now, since there is a vulnerability to be revealed on 12APR16 ** Or you alone could use FuseFS and sshfs the dirs you want her to have access to on the machine you both share/access (you seem to indicate she has full and comfortable access to those dirs already--so installing the FUSE .DMG package is probably overkill). On Tue, Apr 5, 2016 at 8:45 AM, Nick Dokos wrote: > Eric Abrahamsen writes: > > > This isn't really a Org question at all, but you all are smart and > > friendly people, and are likely to have run into this situation before. > > So I'm trying here before I turn to StackOverflow! > > > > I have Org files in a git repo, synced across two Linux machines. At the > > same time, I have a few directories on these computers that I sync with > > colleagues, via Syncthing. > > > > One of these colleagues also uses Org, so instead of giving her access > > to my Org git repo, which would be a bit too much exposure, I hardlink > > some of the Org files into the Syncthing directories, and she accesses > > them there. With auto-revert-mode turned on, it's not too bad. > > > > Except that the hardlinks keep breaking! There are so many different > > systems interacting here that I have no idea where to even start > > looking. She's on a Mac, not Linux, and uses a fairly recent version of > > Emacs, plus Org from the ELPA package. She is *not* using git on her > > machine, just Syncthing and Emacs. > > > > How do the hardlinks break exactly? > > Hardlinks to a file are limited to the same filesystem: a file with > inode number N has essentially two or more directory entries, with > different names associated to the same inode number. Syncthing certainly > cannot maintain that as it copies the file to the cloud and back, so > there seem to be plenty of opportunities for breakage, but it's not > clear which one(s) obtain. > > > I'm inclined to blame Syncthing, but I really don't know where to start > > debugging. If any of you have any relevant experience, or any advice > > about where to look, that would be much appreciated. Otherwise, please > > excuse the off-topic post... > > > > -- > Nick > > >
Re: [O] ditaa and plantuml in PATH
I remember looking into NixOS years ago and it was very interesting--also looked into "GNU Stow" and it may help you with PATH problems: https://www.gnu.org/software/stow GNU Stow comes with NixOS: https://github.com/NixOS/nixpkgs/tree/master/pkgs/tools/misc/stow On Mon, Mar 28, 2016 at 1:18 PM, Nick Dokos wrote: > Alexey Shmalko writes: > > > Hi! > > > > I use NixOS and ditaa is globally installed. That means I have ditaa > > executable in PATH but no easy way to find a ditaa.jar file. There is > > no way to instruct org-ditaa to use the specified executable (it > > requires java and path to the ditaa jar file). Note also that I don't > > have java in PATH. > > > > I would like org-ditaa to use ditaa executable from the PATH. Same > > goes for org-plantuml. > > > > Does setting org-babel-ditaa-java-cmd to "ditaa" help? Maybe in > combination with setting org-ditaa-jar-path to nil or ""? > > -- > Nick > > >
Re: [O] * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
* Since your situation, is one like this: "This is not a bug. - :: *is* description list syntax"--i.e. you are grep-ing for what Emacs Org-Mode is seeing as a "description list"; and, this is "by design" e.g.: * Lord of the Rings - Elijah Wood :: He plays Frodo - Sean Astin :: He plays Sam, Frodo's friend. I still remember him very well from his role as Mikey Walsh in The Goonies. ** In such a case: I reiterate my earlier suggestion--and my opinion is one should always strive to do it this way too--its POSIX compliant--its easier to read and you won't run into inconsistencies in your code: Suggest you do it this way instead: Use "POSIX character classes" like [:blank:] whenever possible--so in this case you could try to do something like this (you'd have to test it yourself--if you're still interested--again my environment throws no error exceptions): ** In your shell: export BLANK="[[:blank:]]" ** Then load your Emacs OrgMode buffer as you did before; and, try something like this instead: * [[shell:cat ~/tmp | grep "asdf :"]] * [[shell:cat ~/tmp | grep "asdf ::"]] * [[shell:cat ~/tmp | grep "asdf$BLANK::$BLANK]] --again, this all worked for me--but they all worked for me before too while yours failed ** Say, anyone no how to do something like this: export PIPE="|" * [[shell:cat ~/tmp $PIPE grep "asdf ::"]] ---I mean, does anyone know how to use some other character or whatever instead of "|" within the "[[...]]"?---I often find myself wanting to insert a pipe in there and then put the whole thing in an OrgTable cell--but we all know "|" is the cell divider in OrgMode ** Or does anyone know how to easily change the OrgTable cell barrier to a key other than "|"? (then I could freely use the "|" in an OrgTable cell) On Wed, Feb 24, 2016 at 2:53 PM, Nick Dokos wrote: > Nicolas Goaziou writes: > > >> Count me confused - although the OP is talking about unnumbered lists, > >> his example only has headlines and numbered lists. Is the link broken > >> when in the headline or only when it's an unnumbered list item? > > > > IIUC, the OP is using unnumbered lists with an asterisk bullet. Hence, > > the problem is probably limited to unnumbered lists, not headlines. > > > > A (light dawns...) > > Thanks! > > -- > Nick > > > >
Re: [O] * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
* Only way I can explain why the "3rd output is different from the 1st and 2nd": You unwittingly placed a character after the "::" on the 3rd row--and you look at it and you believe its a character. * Suggest you open it up in VI and do ":set list"--is there a "^I" character there? ** Better yet, open the file up and use whitespace-mode in Emacs. ** Also suggest you use the POSIX compliant form for regular expressions whenever possible--i.e. use [:blank:] when you mean " " and "[:space:]" when you mean whitespace--that way its harder to fool yourself, and others that read your code. On Tue, Feb 23, 2016 at 4:11 PM, briangpowell . wrote: > * Nah, tried it, all 3 have same output: > > * [[shell:cat ~/tmp | grep "asdf :"]] > * [[shell:cat ~/tmp | grep "asdf ::"]] > * [[shell:cat ~/tmp | grep "asdf :: "]] > > => > > Executing cat ~/tmp | grep "asdf :" > asdf :: asdf > asdf :: qwer > Executing cat ~/tmp | grep "asdf ::" > asdf :: asdf > asdf :: qwer > Executing cat ~/tmp | grep "asdf :: " > asdf :: asdf > asdf :: qwer > > > On Mon, Feb 22, 2016 at 3:59 AM, Josef Atmin wrote: > >> Hi, >> >> the maintainer of the Debian org-mode package referred me to this list >> for my bug report. >> >> Best regards, Josef. >> >> On Sun, Feb 21, 2016 at 11:10:52AM +0100, Josef Atmin wrote: >> > Package: org-mode >> > Version: 8.3.3-3 >> > Severity: normal >> > >> > Dear Maintainer, >> > >> > when a shell command in an unnumbered list includes '::', it is not >> recognized as a shell >> > command anymore. >> > >> > To reproduce the bug, paste the following two lines in file 'tmp' >> > >> > asdf :: asdf >> > asdf :: qwer >> > >> > and add the following shell commands to an org file >> > >> >* [[shell:cat ~/tmp | grep "asdf :"]] >> >* [[shell:cat ~/tmp | grep "asdf ::"]] >> >* [[shell:cat ~/tmp | grep "asdf :: "]] >> > >> > If you klick on them you will probably find that the first two work >> while the last one >> > does not, presumably because it is interpreted as a description list >> entry. >> > Interestingly, if you use a numbered list >> > >> >1. [[shell:cat ~/tmp | grep "asdf :"]] >> >2. [[shell:cat ~/tmp | grep "asdf ::"]] >> >3. [[shell:cat ~/tmp | grep "asdf :: "]] >> > >> > then all three work. >> > >> > Thanks for this great piece of software, I use it all the time. >> > >> > Best wishes, >> > >> > Josef. >> > >> > >> > -- System Information: >> > Debian Release: stretch/sid >> > APT prefers unstable >> > APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') >> > Architecture: amd64 (x86_64) >> > Foreign Architectures: i386 >> > >> > Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores) >> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) >> > Shell: /bin/sh linked to /bin/dash >> > Init: systemd (via /run/systemd/system) >> > >> > Versions of packages org-mode depends on: >> > ii emacs24 24.5+1-6+b1 >> > ii emacsen-common 2.0.8 >> > >> > Versions of packages org-mode recommends: >> > ii texlive-generic-recommended 2015.20160215-1 >> > ii texlive-latex-recommended2015.20160215-1 >> > >> > Versions of packages org-mode suggests: >> > pn ditaa >> > ii texlive-fonts-recommended 2015.20160215-1 >> > ii texlive-latex-extra2015.20160117-1 >> > >> > -- no debconf information >> >> >
Re: [O] * [[shell:cat ~/tmp | grep "asdf :: "]] does not work.
* Nah, tried it, all 3 have same output: * [[shell:cat ~/tmp | grep "asdf :"]] * [[shell:cat ~/tmp | grep "asdf ::"]] * [[shell:cat ~/tmp | grep "asdf :: "]] => Executing cat ~/tmp | grep "asdf :" asdf :: asdf asdf :: qwer Executing cat ~/tmp | grep "asdf ::" asdf :: asdf asdf :: qwer Executing cat ~/tmp | grep "asdf :: " asdf :: asdf asdf :: qwer On Mon, Feb 22, 2016 at 3:59 AM, Josef Atmin wrote: > Hi, > > the maintainer of the Debian org-mode package referred me to this list for > my bug report. > > Best regards, Josef. > > On Sun, Feb 21, 2016 at 11:10:52AM +0100, Josef Atmin wrote: > > Package: org-mode > > Version: 8.3.3-3 > > Severity: normal > > > > Dear Maintainer, > > > > when a shell command in an unnumbered list includes '::', it is not > recognized as a shell > > command anymore. > > > > To reproduce the bug, paste the following two lines in file 'tmp' > > > > asdf :: asdf > > asdf :: qwer > > > > and add the following shell commands to an org file > > > >* [[shell:cat ~/tmp | grep "asdf :"]] > >* [[shell:cat ~/tmp | grep "asdf ::"]] > >* [[shell:cat ~/tmp | grep "asdf :: "]] > > > > If you klick on them you will probably find that the first two work > while the last one > > does not, presumably because it is interpreted as a description list > entry. > > Interestingly, if you use a numbered list > > > >1. [[shell:cat ~/tmp | grep "asdf :"]] > >2. [[shell:cat ~/tmp | grep "asdf ::"]] > >3. [[shell:cat ~/tmp | grep "asdf :: "]] > > > > then all three work. > > > > Thanks for this great piece of software, I use it all the time. > > > > Best wishes, > > > > Josef. > > > > > > -- System Information: > > Debian Release: stretch/sid > > APT prefers unstable > > APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') > > Architecture: amd64 (x86_64) > > Foreign Architectures: i386 > > > > Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores) > > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > > Shell: /bin/sh linked to /bin/dash > > Init: systemd (via /run/systemd/system) > > > > Versions of packages org-mode depends on: > > ii emacs24 24.5+1-6+b1 > > ii emacsen-common 2.0.8 > > > > Versions of packages org-mode recommends: > > ii texlive-generic-recommended 2015.20160215-1 > > ii texlive-latex-recommended2015.20160215-1 > > > > Versions of packages org-mode suggests: > > pn ditaa > > ii texlive-fonts-recommended 2015.20160215-1 > > ii texlive-latex-extra2015.20160117-1 > > > > -- no debconf information > >
Re: [O] convert outline to .csv
* Something like this might do it: tr "\n" "\",\"" < file > newfile sed -e "s/\",\"* /\n\",\"*/g" newfile > blah.csv On Mon, Jan 18, 2016 at 1:44 AM, Andrew wrote: > Example: > > * Micro topic 1 > ** Microbes are small > ** You can't see them! > *** Isn't that something? > * Micro topic 2 > ** I hope I like the teacher > *** She will be great! > ** Micro is cool! > > I'd like to convert them into a .csv file like so: > > "* Micro topic 1"," "** Microbes are small", "** You can't see them!", "*** > Isn't that something?", > "* Micro topic 2", "** I hope I like the teacher", "*** She will be > great!", > "** Micro is cool!" > > Where the first column contains only top level headings (lines beginning > with > one star), and the following columns are subheadings belonging to the top > level heading. So for each top level heading, there is one row containing > the top level heading and its children. I've been messing around with a > solution in python with regular expressions as well as macros but haven't > gotten very far. Any suggestions? > > > >
Re: [O] org-ref video
I'm absolutely sure that I read it somewhere--its "Lay-Teck"--and again; if you think about it, that's what it ought to be. Hilarious "La" isn't from "Lamport"--very funny though. I agree though, this is up to me to prove; but, don't hold your breath--it may be hard to find--I have books to the ceiling in every room in my house--and many on TeX and its derivatives. On Thu, Dec 24, 2015 at 9:49 AM, Nick Dokos wrote: > "briangpowell ." writes: > > > I believe I read how to correctly pronounce LaTeX as Lay-Teck (and why > > its important--to honor the creator of TeX's wishes+intentions, Donald > > Knuth) in Leslie Lamport's book onLaTeX--in the preface. > > The TeX FAQ (http://www.tex.ac.uk/FAQ-latexpronounce.html) contradicts > you: > > , > | How should I pronounce “LaTeX(2e)”? > | > | Lamport never recommended how one should pronounce LaTeX, but a lot of > | people pronounce it ‘Lay TeX’ or perhaps ‘Lah TeX’ (with TeX pronounced > | as the program itself; see the rules for TeX). It is definitely not to > | be pronounced in the same way as the rubber-tree gum (which would be > | ‘lay teks’). > | > | The LaTeX2e logo is supposed to end with an ε; nevertheless, most people > | pronounce the name as ‘LaTeX-two-ee’. > ` > > Lamport's first edition is packed away so I can't check it right now, > but the second edition preface certainly does not say anything about > the pronunciation of LaTeX. > > > Small note, feel free to ignore it (one and all); but, "LaTeX" is > properly > > pronounced: "Lay-Teck"--since its a macro language which "lays on top of > > TeX"--the TeX part you pronounced correctly, which is the part that > really > > matters (Tau-Epsilon-Chi). > > and > > > And when you think about it, pronouncing it as "Lay" does make sense > "La" only means "the" > > in some romance Languages and the "L" and "A" don't stand for anything > in particular > > either--LA isn't an acronym--and it has no "foreign language" meaning. > Its not "The > > TeX"--TeX is "The TeX"--the lowest primal language itself, programmed in > C. > > > > I believe you are overthinking this. > > I have never seen any evidence for either of these statements: > > o that LaTeX is pronounced Lay-Teck (or Lay-Tekh if we follow Knuth's > direction of adding moisture to the screen) because it "lays on top > of TeX" (btw, are you quoting somebody else here? or quoting yourself?) > > o that there is some connection between the "La" in LaTeX and the > article in some romance languages. > > Do you have any independent evidence for either of these? > > Here is another interpretation which IMO is more likely than anything > you have presented (but is equally unsupported by actual evidence): the > "La" in LaTeX comes from the "La" in Lamport. > > -- > Nick > > >
Re: [O] org-ref video
I believe I read how to correctly pronounce LaTeX as Lay-Teck (and why its important--to honor the creator of TeX's wishes+intentions, Donald Knuth) in Leslie Lamport's book on LaTeX--in the preface. And when you think about it, pronouncing it as "Lay" does make sense "La" only means "the" in some romance Languages and the "L" and "A" don't stand for anything in particular either--LA isn't an acronym--and it has no "foreign language" meaning. Its not "The TeX"--TeX is "The TeX"--the lowest primal language itself, programmed in C. As for any relationship to Latex in paint or whatever; well, that's patently absurd. And its important for newbies to realize especially--before even using LaTeX--that LaTeX is a macro language and any newbie can program directly in TeX, create their own macro language--built on top of TeX too--and/or that they themselves can program in TeX and extend the language and embed it into LaTeX by creating libraries, style .sty files, etc. But I must say, of all the videos I've ever seen, I believe Dr. Kitchin has produced the most well-pronounced and clearly spoken ones ever--not just on Emacs, etc. Thanks again. Thanks Nick for the link: This reminds me of a strange and hilarious job interview I had long ago, when LaTeX wasn't fully well-known as a computerized typesetting packaged (used to publish more books on higher math than any other system). The interviewers asked what my "favorite computer software is"--well I smiled and said "Lay-Tecks"--this conjured up smirks, giggles and a wink or two--they thought I was into some other "favorite activities"--they obviously thought I was into latex clothing, etc. Not quickly realizing it, I went on: "Oh yes, I use it a lot, I use it as much as possible--I'm way into it; and, the whole free [soft-wear] community--I'd have to say I've been part of the community for many years." Obviously, people that don't know EXACTLY what you're talking about, can lead themselves to many very strange conclusions about you. So, such things can be very important indeed. On Tue, Dec 22, 2015 at 10:37 PM, Nick Dokos wrote: > John Kitchin writes: > > > Thanks! > > > > You might add your interpretation of the pronunciation here: > http://tex.stackexchange.com/questions/17502/what-is-the-correct-pronunciation-of-tex-and-latex > ;) > > > > John > > > > The vexing issue of how to pronounce "LaTeX" has reared its ugly head > before, e.g in this thread on the comp.text.tex group ca 1999: > > > https://groups.google.com/forum/#!searchin/comp.text.tex/Robin$20Fairbairns$20rubber/comp.text.tex/Ts9l6CPcjCk/g_89W2rJsPcJ > > with the entertaining subject "anyone have a source of all rubber > panties". I would recommend that you read the whole thread but in any > case don't give up until you read Robin Fairbairns's followup to his > (Robin's) suggestion that the OP should read the FAQ. > > How's that for a Christmas present? > -- > Nick > > >
Re: [O] org-ref video
Great vid, as usual; and, thanks for all you do for the Emacs+TeX+OrgMode community. Small note, feel free to ignore it (one and all); but, "LaTeX" is properly pronounced: "Lay-Teck"--since its a macro language which "lays on top of TeX"--the TeX part you pronounced correctly, which is the part that really matters (Tau-Epsilon-Chi). On Tue, Dec 22, 2015 at 11:10 AM, John Kitchin wrote: > Hi everyone, > > I made a new video showing some of the new features of the org-ref that > is in Melpa: > > http://kitchingroup.cheme.cmu.edu/blog/2015/12/22/org-ref-is-on-Melpa/ > > These features are: > > 1. Drag-n-drop a PDF or url onto a bibtex file to add bibtex entries. This > works when org-ref knows how to get a DOI from the PDF or url. > > 2. Tooltips on cite links > > The video shows how to use these to make a bibtex file, and then add > citations and references in an org-file, followed by export to a pdf. > > Happy holidays and New Year to everyone! > > -- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > >
Re: [O] Scripting with org-mode
* Assuming that entire file is made up of shell commands (like the ones in the example you gave) since, in such a case as your example the "#" in the first column would ignore the rest of the lines as comments: M< Mx set-mark M> Mx shell-command-on-region On Mon, Nov 30, 2015 at 11:43 AM, Shakthi Kannan wrote: > Hi, > > Is there a way to execute all the org-mode code blocks in a file, and > send the output to stdout? > > For example, I have the following org file: > > === BEGIN === > > * Greeting > > #+BEGIN_SRC sh :results output > echo "Hello $USER! Today is `date`" > #+END_SRC > > * Current directory > > #+BEGIN_SRC sh :results output > pwd > #+END_SRC > > === END === > > I could go to each code block, and type C-c C-c to produce an output. > But, I just want to be able to execute the entire file, and produce > one single output. > > Is this possible? > > SK > > -- > Shakthi Kannan > http://www.shakthimaan.com > >
Re: [O] PDF-tools... and LaTeX
Wow, as usual thanks Nick, great help and insights. Say, LaTeX and xpdf and poppler and Okular are all great software--suggest you try out xournal too: apt-get install xournal --shows .pdfs and many tools for editing .pdf's Also, you're well aware of the Emacs/ELisp tools for .pdf's ( https://github.com/politza/pdf-tools); but, suggest you install and tinker with CPAN/Perl's pdf-tools--well worth investigating. On Mon, Nov 16, 2015 at 8:58 PM, Nick Dokos wrote: > AW writes: > > > Dear all, > > > > I dare to ask this slightly off-topic question, because of the discussion > > about pdf-tools a day ago. > > > > I installed pdf-tools (https://github.com/politza/pdf-tools). It is a > _lot_ > > faster than doc-view. Many thanks to Matt Price > > (http://matt.hackinghistory.ca/2015/11/11/note-taking-with-pdf-tools/) > I got > > it working with orgmode. > > > > But I'd like to use it to display my PDFs I produce with LaTeX (Emacs, > AUCTeX) > > as well. > > > > The trouble is the automagic reloading of the PDF every time it get's > changed > > on disk. Okular does this, but pdf-tools need some kind of invitation?! > > > > From here https://github.com/politza/pdf-tools/issues/128 > > is this setup for .emacs: > > > > = 8< == > > > > > > (pdf-tools-install) > > (load "pdf-tools") > > (setq TeX-view-program-selection '((output-dvi "Okular") > > (output-pdf "PDF Tools") ;; > > )) > > > > (require 'subr-x) > > (defun th/pdf-view-revert-buffer-maybe (file) > > (when-let ((buf (find-buffer-visiting file))) > > (with-current-buffer buf > > (when (derived-mode-p 'pdf-view-mode) > > (pdf-view-revert-buffer nil t) > > > > (add-hook 'TeX-after-TeX-LaTeX-command-finished-hook > > #'th/pdf-view-revert-buffer-maybe) > > > > > > >8 > > > > If I compile a *.tex file again, I get the error > > > > "error in process sentinel: Symbol's function definition is void: > when-let" > > > > ...and the PDF won't get updated. > > > > So when-let is not defined above, and it is not defined by emacs, so you > got to get the definition from somewhere. Go back to the link and you'll > see further down that the OP complains about the same thing. The > solution seems to be > >(require 'subr-x) > > > Can anybody help me to get a working setup? Really, this libpoppler > behind > > pdf-tools is such a lot faster, it reminds me on xpdf. > > > > That's because libpoppler is essentially a library version of xpdf: > > $ yum info poppler > Loaded plugins: auto-update-debuginfo, copr, etckeeper, langpacks > Installed Packages > Name: poppler > Arch: x86_64 > Version : 0.26.2 > Release : 9.fc21 > Size: 2.6 M > Repo: installed > Summary : PDF rendering library > URL : http://poppler.freedesktop.org/ > License : (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT > Description : Poppler, a PDF rendering library, is a fork of the xpdf PDF > : viewer developed by Derek Noonburg of Glyph and Cog, LLC. > > -- > Nick > > > > >
Re: [O] Emacs+org-mode in a Docker?
* Here are some of my notes+URL links on some docker+emacs experiments thus far: ** Last I checked some glimmering developments seem to be coming to light in the docker+emacs realm: *** Believe some links below might be stepping-stones for your students, Dr. Kitchin: ** Happily, below, I note coming across some work by one of our favorite Elisp hackers of "elnode" fame: Nic Ferrier ** "docker.el" was in development too last I looked into this--see link below. * Linux Containers: ###1 read and take advice here FIRST: http://stackoverflow.com/questions/27083182/running-emacs-in-a-docker-container ** These links are slightly tangential but I suggest them since they're also stepping-stones to really what's going on under-the-docker-hood: ** https://en.wikipedia.org/wiki/Copy-on-write ** http://www.linuxjournal.com/content/docker-lightweight-linux-containers-consistent-development-and-deployment?page=0,0 ** http://www.liquidweb.com/kb/how-to-install-docker-on-ubuntu-14-04-lts ** http://aufs.sourceforge.net ** https://linuxcontainers.org * Can run xampp on a docker--see notes and experiments below, here are first checks and steps: ** docker inspect garland/xampp-base docker ** netstat -lnp|grep 8080" ; echo "=>" ; netstat -lnp | grep 8080 ; sleep 3 * Now try to run the xampp container: docker run -t -i -p 8080:80 garland/xampp-base /bin/bash & * /opt/lampp/lampp startapache ** http://localhost:8080/xampp/splash.php ** xterm -e docker run -i -t debian /bin/bash ** xterm -e docker run -i -t ubuntu /bin/bash ** docker run -i -t debian /bin/bash & *** xampp on docker!?: * Enabling XAMPP Web Interface with docker: Start Docker in interactive mode [[shell:docker run -t -i -p 8080:80 garland/xampp-base /bin/bash &]] vim /opt/lampp/etc/extra/httpd-xampp.conf Remove the bottom 4 lines.docker.el Commented out the bottom 4 lines and then this got it semi-working (returned "Object not found!" error) after I did this: /opt/lampp/lampp startapache google-chrome http://localhost:8080/:80 * This worked!(after starting apache in the docker xterm): google http://localhost:8080/xampp/splash.php ** https://github.com/Silex/docker.el * [[shell:echo * Put emacs in Docker(but remember all writes will be lost--so to really keep things write to volume(s)):";cd;docker pull biscarch/emacs &]] ** Just mounted a "volume" (to Docker: volumes are read-write(usually) dirs and/or files outside the Union File system (aufs) and available to the host AND the container) docker run -it --name container-test -h CONTAINER -v /data debian /bin/bash docker inspect -f {{.Volumes}} container-test => map[/data:/var/lib/docker/vfs/dir/79d22ddf7a12b6e283c74df521289adb6b537883686eb43aa3c2405f0c6aacae] date > /var/lib/docker/vfs/dir/79d22ddf7a12b6e283c74df521289adb6b537883686eb43aa3c2405f0c6aacae/date.j root@CONTAINER:/# cat /data/date.j => Mon Jul 20 09:08:33 EDT 2015 ** http://container-solutions.com/understanding-volumes-docker/ "Quite simply, volumes are directories (or files) that are outside of the default Union File System and exist as normal directories and files on the host filesystem." In order to be able to save (persist) data and share data between containers, Docker came up with the concept of volumes: Quite simply, volumes are directories (or files) that are outside of the default Union File System and exist as normal directories and files on the host filesystem. There are two ways to initialise volumes, with some subtle differences that are important to understand. We can declare a volume at run-time with the -v flag:  $ docker run -it --name container-test -h CONTAINER -v /data debian /bin/bash root@CONTAINER:/# ls /data root@CONTAINER:/# This will make the directory /data inside the container live outside the Union File System and directly accessible on the host. *** Trying this but fails--may have to do before booting the container?: docker run -v /home/b/data55:/data55 debian ls /data55 ** Can also give access to a "volume" that is available in one container to another *** Can't you use FUSE with a container!? ** "you can also mount a directory from your own host into a container:" $ sudo docker run -d -P --name web -v /src/webapp:/opt/webapp training/webapp python app.py *** The above will mount the local directory, /src/webapp, into the container as the /opt/webapp directory. This is very useful for testing; for example, we can mount our source code inside the container and see our application at work as we change the source code! But with UNIONFS and AUFS this functionality has been available for many years. ** To test docker install docker search debian docker pull debian docker run -i -t debian /bin/bash *** And/or docker pull ubuntu docker run -i -t ubuntu /bin/bash * Yet another emacs in a docker(which I've done successfully--see above--but this is "dmacs"): [[https://github.com/bcbcarl/docker-emacs]] docker pull bcbcarl/emacs sudo curl -L https://raw.githubusercontent.com/bcbcarl/docker-emacs/master/b
Re: [O] Babel: How to call code in one org file into another org file
Could create a named pipe and have one org-mode file write to it and another org-mode file read from it. On Fri, Oct 30, 2015 at 4:55 PM, Thomas S. Dye wrote: > Aloha Lawrence, > > Lawrence Bottorff writes: > > > There are many, many Babel examples, but I can't seem to find this > > functionality: A function in a Lisp code block in one org file is to be > > called from a Lisp code block in another org file. Is this possible? I > know > > you can stick stuff into your personal "Library of Babel," but I just > want > > to write a Lisp block that calls a function from another org file. I'll > > have SLIME running, of course. > > > > > > file1.org: > > ... > > #+begin_src lisp > > (defun foo () > >(...)) > > #+end_src > > > > is then called from. . . > > > > file2.org: > > ... > > #+begin_src lisp > > (defun baa () > > (foo)) > > #+end_src > > Any Org mode file can function as Library of Babel. In your case, > (org-babel-lob-ingest path/to/file1.org) should do what you want. Note > that org-babel-lob-ingest is bound to C-c C-v i. > > hth, > Tom > > -- > Thomas S. Dye > http://www.tsdye.com > >
Re: [O] sip: links
Cool, what do you do with "xmpp:"? On Mon, Jun 22, 2015 at 11:02 AM, Christian Thaeter wrote: > > > On 2015-06-22 11:27, Michael Strey wrote: > > > On So, 2015-06-21, Christian Thaeter wrote: > > > > [...] > > > > > looks good, I'll use that instead of my hack. > > > > Look out for bugs. It's one of my very first emacs-lisp hacks. > > > > > I've a minor ideas to add: > > > > > > Instead just append the telephone number to the end of the > > > dial command one could use (org-replace-escapes STRING TABLE), that > > > allows little more flexible commandline generation. > > > > Thanks for the hint. Could you please give me an example where this > > increased flexibility would be required? > > I am using linphone too, where that just works to append the > sanitized telephone number at the end. But I can imagine that other > dial programs may have different calling conventions. Also I may feel a > bit safer by quoting the telephone number, For example: > > linephone -c 'sip:%n' > > Maybe in the long run (I have no urge here, works for me now). > You/we/someone could make this whole thing more generic, handling > different kinds of communication protocols (I made another one for > xmpp: meanwhile). > > tel: urls are somewhat simple https://www.ietf.org/rfc/rfc3966.txt > (still surprisingly more syntax than just a number) but when you look > at sip: http://tools.ietf.org/html/rfc3261#section-19.1 things get way > more complicated. > > Christian > > > > > > > Best regards > > -- > > Michael Strey > > http://www.strey.biz * https://twitter.com/michaelstrey > > > > > > >
Re: [O] [OT] wildcards in autocorrect?
Very interesting John, I get it now--that may be very useful--thanks for that. Also, I left out a main reason to use QEmacs: I use it for visually editing very large multi-gigabyte files--I use it for some of the things we discussed--search and replace and/or incremental-search-and-replace. On Sat, Mar 28, 2015 at 2:20 PM, John Kitchin wrote: > This is the code Samuel refers to. It is awesome. I use it less and less > ;) by which I mean everytime I use it is one less time I ever have to use > it. > > ;; > http://endlessparentheses.com/ispell-and-abbrev-the-perfect-auto-correct.html > (define-key ctl-x-map "\C-i" 'endless/ispell-word-then-abbrev) > > (defun endless/ispell-word-then-abbrev (p) > "Call `ispell-word'. Then create an abbrev for the correction made. > With prefix P, create local abbrev. Otherwise it will be global." > (interactive "P") > (let ((bef (downcase (or (thing-at-point 'word) ""))) aft) > (call-interactively 'ispell-word) > (setq aft (downcase (or (thing-at-point 'word) ""))) > (unless (string= aft bef) > (message "\"%s\" now expands to \"%s\" %sally" >bef aft (if p "loc" "glob")) > (define-abbrev > (if p global-abbrev-table local-abbrev-table) > bef aft > > > > John > > --- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > > On Sat, Mar 28, 2015 at 12:57 PM, Samuel W. Flint > wrote: > >> There's something on endless parentheses that will let you generate a >> correction abbrev with a keystroke. >> >> Samuel W. Flint >> Please forgive any typos as this was composed on a screen keyboard. >> >> > On Mar 28, 2015, at 9:19 AM, Matt Price wrote: >> > >> > I make a lot of typing errors (I have an injury to one hand, which >> impedes bilateral cooperation). In Libreoffice I am able to define wildcard >> autocorrect objects, e.g.: >> > >> > oc.* ---> co.* >> > >> > This will correct ocrrect, ocmputer, ocndition, etc. Does anyone know >> a way to do something similar in Emacs? Right now I am using abbrev mode >> and defining my errors one by one -- it is a very slow process since I make >> so many mistakes and have a moderately large vocabulary. >> > >> > I am sure this is possible somehow, I just don't know how. >> > >> > thanks as always, >> > m >> > >> > >> >> >
Re: [O] [OT] wildcards in autocorrect?
* Cosmic: Also in my email today is a link to discussion which brought up QEmacs + Fabrice Bellard--and what some of you "[OT] Emacs Org-Mode hackers" may be interested in: a tiny Emacs version called "Mg": ... beagle3 5 days ago: Related: Fabrice Bellard[0]'s QEmacs. http://bellard.org/qemacs/ - a 160KB executable provides a mostly complete Emacs experience (sans scripting .. sort of like Mg), but does include syntax coloring, unicode, and watching video inside the editor. A 60KB stripped down version has a feature set comparable to Mg as far as I can tell. [0] of FFMPEG, QEMU, BPG, TCC, JSLINUX and more fame. ... On Sat, Mar 28, 2015 at 1:47 PM, briangpowell . wrote: > * Something like this may do what you seek (which isn't clear to me): > > Mx replace-regexp \boc.*\b \bco.*\b > > ** But why you'd do such a thing is a mystery to me--this may be more > useful to you: > > Query Replace > > M-% string newstring > Replace some occurrences of string with newstring. > C-M-% regexp newstring > Replace some matches for regexp with newstring. > > ** Forgive me if you know this already. > > *** But your question is slightly funny to long time Emacs users like > myself because Emacs has been built, piece-by-piece, by thousands of > programmers, to do the most complex editing jobs you can imagine and the > regular expression library is the fastest in the world for "buffers", > "windows" and visual incremental search and replace (as I describe above). > By the way if you have to do search and replace, and you want to do it > visually, I suggest "QEmacs"--made by the same genius who created Qemu > (which is what VirtualBox is based on) and he also broke the record for > calculating the digits of π. I'm talking about Fabrice Bellard--thank God > for him! > > (I recommend QEmacs--just for the fun of it--it has a few amazing > abilities.) > > * Finally, from reading your general [OT]/help me plea: I strongly suggest > you use FlySpell-Mode (in addition to "abbrev" functions that the other > Emacs hackers suggested). > > > > > > > > > > > > > > On Sat, Mar 28, 2015 at 1:17 PM, Ken Mankoff wrote: > >> Maybe key-chord mode could help with this? >> >> -k. >> >> Please excuse brevity. Sent from pocket computer with tiny non-haptic >> feedback keyboard. >> >> > On Mar 28, 2015, at 12:57, "Samuel W. Flint" >> wrote: >> > >> > There's something on endless parentheses that will let you generate a >> correction abbrev with a keystroke. >> > >> > Samuel W. Flint >> > Please forgive any typos as this was composed on a screen keyboard. >> > >> >> On Mar 28, 2015, at 9:19 AM, Matt Price wrote: >> >> >> >> I make a lot of typing errors (I have an injury to one hand, which >> impedes bilateral cooperation). In Libreoffice I am able to define wildcard >> autocorrect objects, e.g.: >> >> >> >> oc.* ---> co.* >> >> >> >> This will correct ocrrect, ocmputer, ocndition, etc. Does anyone know >> a way to do something similar in Emacs? Right now I am using abbrev mode >> and defining my errors one by one -- it is a very slow process since I make >> so many mistakes and have a moderately large vocabulary. >> >> >> >> I am sure this is possible somehow, I just don't know how. >> >> >> >> thanks as always, >> >> m >> >> >> >> >> > >> >> >
Re: [O] [OT] wildcards in autocorrect?
* Something like this may do what you seek (which isn't clear to me): Mx replace-regexp \boc.*\b \bco.*\b ** But why you'd do such a thing is a mystery to me--this may be more useful to you: Query Replace M-% string newstring Replace some occurrences of string with newstring. C-M-% regexp newstring Replace some matches for regexp with newstring. ** Forgive me if you know this already. *** But your question is slightly funny to long time Emacs users like myself because Emacs has been built, piece-by-piece, by thousands of programmers, to do the most complex editing jobs you can imagine and the regular expression library is the fastest in the world for "buffers", "windows" and visual incremental search and replace (as I describe above). By the way if you have to do search and replace, and you want to do it visually, I suggest "QEmacs"--made by the same genius who created Qemu (which is what VirtualBox is based on) and he also broke the record for calculating the digits of π. I'm talking about Fabrice Bellard--thank God for him! (I recommend QEmacs--just for the fun of it--it has a few amazing abilities.) * Finally, from reading your general [OT]/help me plea: I strongly suggest you use FlySpell-Mode (in addition to "abbrev" functions that the other Emacs hackers suggested). On Sat, Mar 28, 2015 at 1:17 PM, Ken Mankoff wrote: > Maybe key-chord mode could help with this? > > -k. > > Please excuse brevity. Sent from pocket computer with tiny non-haptic > feedback keyboard. > > > On Mar 28, 2015, at 12:57, "Samuel W. Flint" > wrote: > > > > There's something on endless parentheses that will let you generate a > correction abbrev with a keystroke. > > > > Samuel W. Flint > > Please forgive any typos as this was composed on a screen keyboard. > > > >> On Mar 28, 2015, at 9:19 AM, Matt Price wrote: > >> > >> I make a lot of typing errors (I have an injury to one hand, which > impedes bilateral cooperation). In Libreoffice I am able to define wildcard > autocorrect objects, e.g.: > >> > >> oc.* ---> co.* > >> > >> This will correct ocrrect, ocmputer, ocndition, etc. Does anyone know > a way to do something similar in Emacs? Right now I am using abbrev mode > and defining my errors one by one -- it is a very slow process since I make > so many mistakes and have a moderately large vocabulary. > >> > >> I am sure this is possible somehow, I just don't know how. > >> > >> thanks as always, > >> m > >> > >> > > > >
Re: [O] org-download.el
* https://github.com/abo-abo/org-download/blob/master/org-download.el has: ... (defcustom org-download-backend t "Method to use for downloading." :type '(choice (const :tag "wget" "wget \"%s\" -O \"%s\"") (const :tag "curl" "curl \"%s\" -o \"%s\"") (const :tag "url-retrieve" t)) :group 'org-download) ... ** My guess: You don't have "wget" and/or "curl" on your Mac? On Tue, Jan 13, 2015 at 2:49 AM, Chao Lu wrote: > Dear all, > > Does anyone get org-download.el to work under Mac OSX? I'm struggling to > get it work, but it seems to help a lot, empowering org to handle images a > lot easier. > > I believe I've installed org-download.el correctly, but when I'm dragging > and drop the image into an org buffer, all I get is the link address > inserted into the buffer, no downloading events trigger. > > I double checked a few things before coming here: > - My system has both curl and download. > - I've set the download image dir to ~/Downloads/Foo > - The value of dnd-protocol-alist contains > ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . org-download-dnd) > > The emacs I'm using is "GNU Emacs 24.3.1 (x86_64-apple-darwin, NS > apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org" > > Is there any thought what I should check? > > Best, > > Chao >
Re: [O] Efficiency of Org v. LaTeX v. Word
Word is a desktop publishing system. LaTeX is a macro language which lays on top of TeX=Tau-Epsilon-Chi~Art in Greek TeX is computerized typesetting that enables vector graphics--you can get TeX to draw anything you want--you can even create your own font. More Math journals and books you'd find in the library are created using TeX than any other software system. The poor kerning and severe limitations of Word are too many to number here. Word is in a different class of software, the 2 aren't comparable at all. Word is a poor WYSIWYG software package that is good for low quality desktop publishing, team collaboration but can be programmed and interacted with through VB--its useful to the general public. LaTeX provides precision and expression; there are things you can do with TeX that aren't possible with Word. Members of the Free Software community (which TeX has always been a part of) will never bow down to the Micro$oft tyranny which is so evil words can't express the depths of their corruption--the comparison is absurd. On Fri, Dec 26, 2014 at 6:36 PM, Thomas S. Dye wrote: > > ,-- > | "One may also argue that given a well-designed LaTeX document class > | file, document development speed and text and formatting accuracy are > | significantly improved." > `-- > > Apparently, the LaTeX users didn't have the benefit of a document > class. Hard to take a "study" like this seriously. > > ,--- > | "preventing researchers from producing documents in LaTeX would save > | time and money to maximize the benefit of research and development for > | both the research team and the public" > `--- > > All you have to lose is your freedom. > > All the best, > Tom > > Ken Mankoff writes: > > > People here might be interested in a publication from [2014-12-19 Fri] > > available at http://dx.doi.org/10.1371/journal.pone.0115069 > > > > Title: An Efficiency Comparison of Document Preparation Systems Used > > in Academic Research and Development > > > > Summary: Word users are more efficient and have less errors than even > > experienced LaTeX users. > > > > Someone here should repeat experiment and add Org into the mix, perhaps > > Org -> ODT and/or Org -> LaTeX and see if it helps or hurts. I assume > > Org would trump LaTeX, but would Org -> ODT or Org -> X -> DOCX (via > > pandoc) beat straight Word? > > > > -k. > > > > > > > > -- > Thomas S. Dye > http://www.tsdye.com > >
Re: [O] org-mode in teaching
* Wow! Thanks for posting this topic and your techela. * Suggest an "Introduction to Programming in Emacs Lisp" and OrgMode be everyone's first, and maybe last, required course in grade school--other than Reading, Writing and Arithmetic of course! * Suggest all students download this free book and conquer it: http://www.lulu.com/us/en/shop/robert-chassell/an-introduction-to-programming-in-emacs-lisp/ebook/product-17413062.html ** A masterpiece by Robert J. Chassell. * Also suggest his free online copy of "Software Freedom: An Introduction", for more philosophy on the Free Software movement, to benefit students and teachers. ** Most especially chapter 13, which covers why non-free software limits learning--and a whole lot more: http://cvs.savannah.gnu.org/viewvc/*checkout*/softfree/softfree/software-freedom.html?revision=1.23#Limits-to-Learning On Sat, Dec 20, 2014 at 5:48 PM, John Kitchin wrote: > All of the code is here: > https://github.com/jkitchin/jmax/tree/master/techela > > and there is some documentation in the README. > > I am not sure how much work it would take to try it yourself though. You > need to setup a gitolite server (that is described in the README), and > more importantly figure out how to get this in your student's hands. For > windows users, they can just clone jmax, and it should run out of the > box (it has an emacs in it). > > "Marvin M. Doyley" writes: > > > Very cool indeed. > > I would love to try this for a small course that I will be teaching in > the spring semester. > > Is your code available? > > Cheers, > > M > > Sent from my iPad > > > > -- > --- > John Kitchin > Professor > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > http://kitchingroup.cheme.cmu.edu > >
Re: [O] Mathjax vs. problems with imagemagick
* PNG is "lossless" format--if you can, make it the first file you create rather than last. ** If you create a JPG a "lossy" format then you could lose some of the beauty (like your example). * ImageMagick has many switches you can throw--suggest you look deeper into it in the freely available manual--though its very thick. * Often there are blah2blah programs (and many methods in ImageMagick for example) available which may help that you may be able to string together. General example: dvips -o blah.dvi ps2pdf blah.ps pdf2png blah.pdf ** Maybe you can convert your file to an intermediary format and then convert it to .png *** But again, if possible, create a PNG (.png) type file firstly since it is a "lossless" file type. On Sun, Jul 6, 2014 at 4:03 AM, Joseph Vidal-Rosset < joseph.vidal.ros...@gmail.com> wrote: > Hello everybody, > > To convert equations from *.org into *.html, Mathjax is certainly the > best solution but unfortunately, this solution does not work as soons as > one need to use some texlive package convenient to produce easily proofs in > specific format > (for example if one uses bussproofs.sty of fitch.sty ). > > That is why imagemagick is useful. Unfortunately, the produced png images > in my ltxpng/ have a very bad quality and if the browser load them, the > result is terrible. > I met already this problem and I do not remind what was the solution... > > I you have suggestions... > > Best wishes, > > Jo. > > PS: in attachment, an example of this terrible png images. >
Re: [O] [OT] OrgMode Webpage has broken link:
Great, thanks, now its fixed--all the links work great. On Fri, Jun 20, 2014 at 5:19 AM, Nicolas Richard < theonewiththeevill...@yahoo.fr> wrote: > "briangpowell ." writes: > > > http://orgmode.org/ -> http://orgmode.org/worg/org-papers.html -> > > http://orgmode.org/org-mode-documentation.html -> 404 Not Found > > And Bastien fixed it within 5 mins of the report. Impressive. > > -- > Nico. >
[O] [OT] OrgMode Webpage has broken link:
http://orgmode.org/ -> http://orgmode.org/worg/org-papers.html -> http://orgmode.org/org-mode-documentation.html -> 404 Not Found
Re: [O] World Cup 2014 Schedule for Org-mode
Brazil - Croatia: 3-1 "Feel free to correct mistakes and add match results!" Well, "Fred" did some play-acting and a dive in the box--this is more accurate: Brazil - Croatia: 2-1 ;-) Thanks Rüdiger! On Fri, Jun 13, 2014 at 7:48 AM, Rüdiger Sonderfeld wrote: > Hello, > > I've created an org-mode schedule for the 2014 football world cup > > https://github.com/ruediger/org-world-cup2014 > > Feel free to correct mistakes and add match results! > > Regards, > Rüdiger > > >
Re: [O] how to enter ==
* One thing that may work: = ^H= ** In emacs that would be: = Cqh= ** In vi that would be = Cvh= *** i.e. you enter a "Cntrl-h"--the literal control character ^H--which is literally: "BackSpace" --this may not work in this case; but, it works in a lot of strange cases. * Could also make a variable: export EQUALS="="; etc. On Mon, Mar 31, 2014 at 9:52 PM, Rustom Mody wrote: > If I enter code inline that has an == that is taken as an escape for code > So how to enter '==' literally > >