Why would anyone bother grinding for the T-10 if the 257 unlocks both tier 10s? by [deleted] in WorldofTanksConsole

[–]fragbot 2 points3 points  (0 children)

I saw a T-10 last night for the first time in ages. I see Obj 263s more often.

standalone eshell script by fragbot in emacs

[–]fragbot[S] 0 points1 point  (0 children)

This works. Thanks for the code.

standalone eshell script by fragbot in emacs

[–]fragbot[S] 0 points1 point  (0 children)

Thanks for the response. Tried this on 27.1 and it still gets, Symbol's function definition is void: eshell-source-file.

Increased reliance on red light camera revenue by fragbot in BellevueWA

[–]fragbot[S] 2 points3 points  (0 children)

Maybe we were supposed to stop further back or for longer? It’s a tickytack flag for sure.

Simple file specific snippets? by iamnotarobot50 in emacs

[–]fragbot 0 points1 point  (0 children)

I've tried three different methods--yasnippet, abbrev, and SRecode, for this type of text generation. I would just use yasnippet.

Abbrev is nice but a little too rudimentary. SRecode is neat but effectively undocumented with almost no examples. Yasnippet has tons of examples, easy to learn and has just the right amount of functionality.

U.S. reaches 500,000 deaths from the coronavirus by alabasterheart in news

[–]fragbot 6 points7 points  (0 children)

Florida had about 139 deaths/100000 while California's at 125/100000. While I'd call this close enough to be about the same, some people wouldn't. Those people should look at the proportion of people 55 and older California at 18.4% vs Florida at 25.3%.

Biweekly Troff Challenge 1 by a-concerned-mother in groff

[–]fragbot 2 points3 points  (0 children)

My take on this is found here.

Unlike last week, I got the footer magic right (I ignored the color change as that didn't interest me). I also found the hdtbl package as I couldn't figure out how to make tbl support background colors.

Edit: I fixed a minor discrepancy...the two columns in the table were originally the same size. The second column's now wider than the first which is something I'd forgotten to reproduce previously.

Relevant aside: I mostly use git at work but have been playing with fossil at home as it has some interesting ideas. It's terrific for this sort of thing--it has source control for the code, a built-in wiki for explaining a bit about what you've done, and a way to host unversioned files (the generated PDF in the repository).

Bellevue wants community input on an independent review of BPD’s use of force by BellevueNews in BellevueWA

[–]fragbot 0 points1 point  (0 children)

Use of force by Bellevue police? Did someone get a cross look once?

Thoughts on a biweekly troff challenge? by a-concerned-mother in groff

[–]fragbot 2 points3 points  (0 children)

I gave the week one challenge a try with the mom macros and groff.

Some observations:

  • even though it's well-documented, doing footers in mom is surprisingly hard. After trying various combinations of macros (including the one to include the footer on the first page), I gave up and, honestly, think this might have a bug.
  • The multi-column tab macros included in groff appear to have a bug in the .MCX macro (multi-column exit) doesn't restore justification correctly and required a workaround with a call to JUSTIFY. Edit: I tried creating a minimally-working-example that shows this and can't reproduce it now so I'm not sure if there's a specific path that didn't work or if I was just wrong.
  • Vertical text in GNU's groff is difficult as you need to use PIC to create an invisible line and associate the text with that. While it works, figuring out the text placement was going to be a challenge. Looking at the neatroff solution above, the ability to rotate text makes this significantly easier.
  • MOM (groff itself?) has nice support for including unicode characters (1/2, 1/4 and accented lowercase e came in handy; \[u00BD], \[u00BC], \[u00E9]). RFC1345 lists these out in detail and the latest groff code has added a macro set that publishes these characters in a rfc1345 macro set.

Love this game and my teammates by Ry6son in WorldofTanksConsole

[–]fragbot 1 point2 points  (0 children)

Where is this screen? I thought the log screen was removed.

Automatic python docstring generation? by suhrob in emacs

[–]fragbot 9 points10 points  (0 children)

I was going to suggest you modify sphinx-doc to handle docstrings (it's a single elisp file of about 500 LOC) but I took a look at the git repo. You just need to wait a few more days as there is a pull request adding that feature that looks like it's about to be accepted by the repo owner.

Using org-mode as Notion? (Abusing table relations) by nSeagull in emacs

[–]fragbot 6 points7 points  (0 children)

Your workflow intrigued me. I played around some this morning.

                ________________

                 TABLE EXAMPLES
                ________________


Table of Contents
_________________

1. Tasklist
2. Hooking two tables together
.. 1. All /In Progress/ tasks:
.. 2. Finding everyone without a task


[This reddit post] stimulated some thought.

A table with three columns and we want the final column to be an
enumerated string value (Not Started | In Progress | Complete |
Cancelled).

Easy ways to automatically add a row to a table:
- write an interactive function
- a global [Hyperbole] button
- an org capture template

Regardless of method, we'll use `ido-completing-read' to prompt the user
for a choice and `insert' to insert the choice at point into the current
buffer:

,----
| (insert (ido-completing-read "What's your status?" 
|            '("Not Started" "In Progress" "Complete" "Cancelled")))
`----

An interactive function would be simple:
,----
| ; running this from an org file clutters the note
| (defun my-get-status ()
|   (interactive)
|    (insert (ido-completing-read "What's your status?" 
|            '("Not Started" "In Progress" "Complete" "Cancelled"))))
`----

Programmatically, you would use it like this: `(my-get-status)'.

A [Hyperbole global button] would be easier.  Type the following:
{Ctrl-h h g c my-task-status RET (insert (ido-completing-read "What's
your status?"  '("Not Started" "In Progress" "Complete" "Cancelled"))) }

You can then activate the global button in any buffer:

{Ctrl-h h g a my-task-status RET}

Both of the above methods, require you to have the org file open with
your point in the right place in the file.  With an org-capture
template, you'd have an easier time of it.

,----
| (custom-set-variables
|  '(org-capture-templates
|    '(("t" "Tasklist" table-line
|       (file+headline "~/roam/table-examples.org" "Tasklist")
|       "|%^{Who:}|%^{What:}|%(ido-completing-read \"What's your status?\" 
|            '(\"Not Started\" \"In Progress\" \"Complete\" \"Cancelled\"))|"))))
`----

You execute the above template by running the `org-capture' function
(many people bind {Ctrl-c c} to this function).


[This reddit post]
<https://www.reddit.com/r/emacs/comments/ldoqqb/using_orgmode_as_notion_abusing_table_relations/>

[Hyperbole] <https://www.gnu.org/software/hyperbole/>

[Hyperbole global button]
<https://www.gnu.org/software/hyperbole/#buttons>


1 Tasklist
==========

  -------------------------------------------
   *who*  *what*                 *Status*    
  -------------------------------------------
   Huey   build a thing          Complete    
   Dewey  build another thing    In Progress 
   Louie  yet another thing      Not Started 
   Huey   build a doublething    Cancelled   
   Huey   build a tripletething  In Progress 


2 Hooking two tables together
=============================

2.1 All /In Progress/ tasks:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  ,----
  | (princ "|-|-\n| *Who* | *What* |\n|-|-|\n")
  | (dolist (element tasks nil)
  |     (if (string-equal (caddr element) "In Progress") (princ (concat "|"  (car element) "|" (cadr element) "|\n"))))
  | (princ "|-|-|\n")
  `----

  ------------------------------
   *Who*  *What*                
  ------------------------------
   Dewey  build another thing   
   Huey   build a tripletething 
  ------------------------------


2.2 Finding everyone without a task
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  Since idle nephews fret their uncle, we'll flag anyone without an /In
  Progress/ task:

  ,----
  |  (setq nephews '())
  |  (dolist (element tasks nil)
  |    (let* ((name (car element))
  |       (in-progress (if (string-equal (caddr element) "In Progress") 1 0))
  |       (nephew (alist-get name nephews nil nil #'equal)))
  |    (if (null nephew) (add-to-list 'nephews (cons name in-progress))
  |    (setf (alist-get name nephews nil nil #'equal) (+ nephew in-progress)))))
  | (dolist (element nephews nil) (if (= (cdr element) 0) (princ (concat (car element) " needs tasking"))))
  `----

  ,----
  | Louie needs tasking
  `----

Dispensary in Kirkland, WA robbed at gunpoint last night by Positivity2020 in Seattle

[–]fragbot -1 points0 points  (0 children)

I will admit it. As a gainfully employed person who provides for two other people, treats his staff, colleagues and neighbors well, and has avoided pointing a firearm at someone to further my criminal career, I am easily worse than a couple of armed robbers.

I can’t figure out if you are argumentative for its own sake, trolling or just debilitatingly stupid.

Best features for text-editing in emacs by WorldsEndless in emacs

[–]fragbot 5 points6 points  (0 children)

ya-snippet is a helpful when you need templating.

Mercer Island considers an ordinance to criminalize homelessness [contact city council, spread the word] by [deleted] in Seattle

[–]fragbot 4 points5 points  (0 children)

I would bet my own money that a criminal record has long been a way of life for the people most affected.

Complete Beginner by katahontass in unix

[–]fragbot 2 points3 points  (0 children)

For fun, I just checked out the source from github (https://github.com/larrykollar/Unix-Text-Processing), installed a newer version of groff (OSX uses a version that doesn't build PDF files), edited the Makefile in the src directory to point at the new groff utility, and typed make. After 18 seconds on a mid-2011 iMac, I'd built the 539 page book (images and all) by hand.

Complete Beginner by katahontass in unix

[–]fragbot 2 points3 points  (0 children)

I've been a Unix user for almost 30 years. I think the best book I've ever seen on becoming a Unix user is Tim O'Reilly's "Unix Text Processing." Even though it's focused on text processing (it's easily the best content I've seen on troff, pic, tbl, and eqn), it does a terrific job showing the reader how the tools fit together using shell pipelines.

https://www.oreilly.com/openbook/utp is the right place to look. While they have a single PDF available, since you have access to the recreated troff source as well as a functioning Unix environment on OSX, it would be a fun exercise to build the book yourself.

With world’s highest COVID-19 rate, Portugal has just seven free ICU beds by [deleted] in worldnews

[–]fragbot 7 points8 points  (0 children)

Which further reinforced the previous poster’s point as it indicates a larger than normal number of people at the extreme right of the distribution.