transcript for /dev/random
2020-01-14 23:16:02  Jack Douglas
This is a private beta of a new *nix Q&A community. We need to decide questions of scope and how much content to import from SE, along with various other things, before we go public. Please join in as you see fit!
2020-01-15 09:36:17  David
I'm in. 📞😎
2020-01-16 23:27:51  Jack Douglas
I think we need a question along the lines of 'what should we import from SE', don't we?
2020-01-23 09:17:06  PeterVandivier
is this the kind of chatroom where i can rubber-duck 100-level bash questions?
2020-01-23 09:18:28  PeterVandivier
```  
➜  ~ echo "/usr/local/Cellar/postgresql/12.1/bin/pg_controldata /usr/local/var/postgres | grep max_connections | awk '{print $3}'" > /tmp/foo
➜  ~ vi /tmp/foo # <-- forgot to add the shebang
➜  ~ chmod 0777 /tmp/foo
➜  ~ /tmp/foo
max_connections setting:              100
➜  ~ /usr/local/Cellar/postgresql/12.1/bin/pg_controldata /usr/local/var/postgres | grep max_connections | awk '{print $3}'
100
➜  ~  
```
2020-01-23 09:19:20  PeterVandivier
sort of lost as to why `awk` is bailing from the file call where it's respected in the shell call
2020-01-23 09:25:55  PeterVandivier
🤦‍♂️ `"$3"` <> `"\$3"`
2020-01-23 09:26:04  PeterVandivier
</rubber-ducking>
2020-01-23 16:41:04  Jack Douglas  replying to  PeterVandivier
of course it is :)
2020-01-24 11:48:32  PeterVandivier
so... it's literally exactly the thing I was talking about previously but... does it make sense as a "blog post", "question", or "meta" if I wanted to start a sort of "scratchpad" post to start tracking the various info i can find about the FreeBSD powershell port & my own thoughts about it
2020-01-24 11:48:41  PeterVandivier
the tabs i've got open atm:  
*   https://wiki.freebsd.org/WantedPorts
*   https://wiki.freebsd.org/SummerOfCode2018Projects/PortingPowerShellPorting
* https://reviews.freebsd.org/D16707
2020-01-24 11:49:48  PeterVandivier
thinking blog post?
2020-01-24 11:50:08  PeterVandivier
or "nothing" if off topic 🤷‍♂️
2020-01-28 20:07:36  David  replying to  PeterVandivier
After this chat, I think you need to put up a blog post of *some* kind. I'm bound to learn something, and I can't quite follow what the point of the chat is. Except that there must be a point!
2020-01-29 07:13:29  PeterVandivier  replying to  David
https://youtu.be/Nepysk5rOf4
2020-01-29 08:17:07  David  replying to  PeterVandivier
👍🤓💪
2020-01-29 10:11:45  PeterVandivier
anyone round these parts have a good solution they'd recommend for backing up personal dot-files? preferably across multiple machines / OS's
2020-01-29 10:12:25  PeterVandivier
i imagine it's a solved problem, but everytime i do a bit of cursory googling on the subject it seems like it's gonna take a non-trivial amount of personal testing & work to set up
2020-01-29 10:13:26  PeterVandivier
that or just "do it manually"
2020-01-29 10:13:52  PeterVandivier
was rather hoping for something running in the background though
2020-01-29 14:45:33  David  replying to  PeterVandivier
Manually here - I save them as gists on github which has been helpful on those rare occasions when I get a new machine, or "re-build" an old one.
2020-02-12 11:19:23  PeterVandivier
TIL `zsh` for-loop behaviour is _very different_ from `bash`
2020-02-12 11:19:34  PeterVandivier
might be the thing that finally gets me to uninstall it
2020-02-12 13:37:43  PeterVandivier
https://www.reddit.com/r/zsh/comments/7pn6z3/for_loop_not_looping_over_words_in_variable/
2020-02-14 12:44:08  PeterVandivier
i'm wondering if it's worth posting that `zsh` loop issue as a self-answered question just to contribute 🤔
2020-02-14 12:45:16  PeterVandivier
feels a bit ghost-town-y around here lately, and i'm guessing it's a good idea, not fully sure how i feel about posting 100-level rubber-ducking stuff though just for content generation
2020-02-14 12:45:21  PeterVandivier
maybe i'm overthinking it
2020-02-14 13:43:44  PeterVandivier
:-P "No results found" in tags
2020-02-14 13:43:59  PeterVandivier
does that mean i should do a "FIRST!" post?
2020-02-14 15:39:22  Jack Douglas  replying to  PeterVandivier
yes!
2020-02-17 14:36:55  David
Hmmm... the dark-text-on-#7A8FBA isn't the easiest to read, is it—not for me, anyway. I wonder if either text should be reversed or the BG lightened up? @Jack 
2020-02-17 20:09:42  Jack Douglas  replying to  David
I've lightened up the background a tad, is that better do you think?
2020-02-17 20:44:30  David  replying to  Jack Douglas
I should have made a screen shot, but that makes an appreciable different to my eye — yes!
2020-02-17 21:02:29  David
![_-ta-nix-both.png](/image?hash=3361ba67d94ac49b44287222f71d0b0459ac45bba30a06ef69a161d0476ce659)
2020-02-17 21:03:42  David
Managed to tweak in "console". (I'm such an amateur!)
2020-02-19 12:57:31  PeterVandivier
anyone care to venture a guess as to how i did this?  
```  
~ $ ls -al *C
-rw-r--r--  1 pvandivier  pvandivier  0 Feb 17 15:09 ^C
~ $   
```
2020-02-19 13:00:52  Jack Douglas  replying to  PeterVandivier
is that a file named with ascii character '03'?
2020-02-19 13:15:31  PeterVandivier
i _think_ 
2020-02-19 13:15:37  PeterVandivier  replying to  Jack Douglas
yup!
2020-02-19 13:16:09  PeterVandivier
darn! can't delete typo msg :-P
2020-02-19 13:16:25  PeterVandivier
gonna go upvote that feature request
2020-02-19 13:21:05  PeterVandivier
in any case, what i meant to say is i _think_ i ctrl-c'd out of a redirect and then accidentally copy-pasted `echo > ^C` or something similar into my shell when i was learning about [this annoying iTerm feature](https://github.com/pivotal/workstation-setup/issues/87)
2020-02-19 22:12:01  Jack Douglas
@PeterVandivier we have a new site icon for *nix, but I actually don't know if it is suitable — thoughts?
2020-02-20 07:48:03  PeterVandivier  replying to  Jack Douglas
:-P i have no objection to it
2020-02-20 07:48:36  PeterVandivier
i'm also not a graphic designer or someone with a long history with nix so i'm probs not the person to comment on suitability though
2020-02-20 08:05:35  Jack Douglas
ok it'll do for now then, it's better than a blue blob
2020-02-20 08:25:39  PeterVandivier  replying to  Jack Douglas
[[Citation Needed]](https://en.wikipedia.org/wiki/Citation_needed)
2020-02-20 08:30:14  PeterVandivier
also - yesterday i learned that Macbooks ship with bash 3.2, the team and i were speculating that the reason Apple pushed the zsh cutover is b/c they don't accept the changes in GPL in the version bump from bash 3->4
2020-02-20 08:31:17  PeterVandivier
so... if you have installed bash locally from a package manager you're fine, but if you're using the shipped version you're probably on 3.2 - which kind of bit me in the butt
2020-02-20 08:32:19  PeterVandivier
had to downgrade a nice array search that only became available in bash 4 so i don't force the whole dev team to upgrade their workstations just before a release :s
2020-02-21 09:08:23  David  replying to  Jack Douglas
It is better than a blue blob, and [seems to signal][2] site identity fairly well. Could you get/make a slightly prettier version [from this][1]?  

[1]: https://en.wikipedia.org/wiki/File:X11.svg  
[2]: https://en.wikipedia.org/wiki/X_Window_System
2020-02-21 09:11:06  David
Unless it implies windowing systems rather than the OS's as a whole ... but not quite my world, either. Need some hardcore \*nix person/peoples around here.
2020-02-21 10:04:19  Jack Douglas  replying to  David
I think that is the image I used as a source!
2020-02-21 10:13:13  David  replying to  Jack Douglas
Interesting! I guess it's downsized for "optimum" size in the banner/bar, but when I [looked at it on its own](https://topanswers.xyz/communityicon?community=nix) it seemed pixelated — "upsized" PNG, perhaps? Anyway! Looks good *in situ*. :)
2020-02-28 16:17:10  Max
@Jack I'd like to import [this](https://unix.stackexchange.com/questions/157806/what-is-making-at-in-aix-add-a-cd-some-path-here-prior-to-my-explicit-comma) - are we able to import here?
2020-02-28 17:30:51  Jack Douglas  replying to  Max
you should now be able to import but you might want to link your SE U&L account first in your *nix profile here?
2020-02-28 17:31:21  Jack Douglas
I haven't tested import recently, and never on this site, so please let us know if there are any issues
2020-02-28 17:32:30  Max  replying to  Jack Douglas
roger.
2020-02-28 17:34:59  Max  replying to  Jack Douglas
no issues encountered
2020-02-28 17:35:46  Jack Douglas  replying to  Max
did you intend to bring only the question?
2020-02-28 17:36:44  Max
yah, the answer sucks
2020-02-28 17:36:51  Max
it's not really helpful
2020-02-28 17:37:18  Max
I'm wondering if someone here may see it an provide another answer at some point.
2020-02-28 17:37:35  Max  replying to  Jack Douglas
I could import the answer as a test if you like
2020-02-28 17:39:43  Max
also, perhaps I just don't understand @Giles answer properly, that is always a possibility :-D I just know that behavior isn't being seen by other users on the same system.
2020-02-28 17:45:15  Jack Douglas  replying to  Max
no need, thanks I was just going to check that you know you can import answers after questions but I think you likely knew that already :)
2020-02-28 17:53:26  Max  replying to  Jack Douglas
I did, but I also forgot.  Also, I tried to import Giles' answer, but I presume it won't import since he doesn't have an account here?
2020-02-28 17:54:15  Max
> 23514: ERROR: new row for relation "account" violates check constraint "account_account_name_check" DETAIL: Failing row contains (969, Gilles 'SO stop being evil', 2020-02-28 17:53:58.278126+00, 2020-02-28 17:53:58.278126+00, null, 1432, 6c84d29e-b631-46da-ba8e-c74042d5f2b9, f, 4, 1, 263711, t, \x7a068ecf2119db21a4b9198d739cc7fd5c6fa932e628f3b2f3de02a84c9cc2..., f, f). CONTEXT: SQL statement "insert into account(account_name,account_license_id,account_codelicense_id,account_is_imported) values(trim(regexp_replace(seuname,'-|\.',' ','g')),4,1,true) returning account_id" PL/pgSQL function import._ensure_seuser(integer,text) line 8 at SQL statement SQL function "new_answer" statement 1 
2020-02-28 18:36:42  Jack Douglas  replying to  Max
it would be fine to import it's just his current SE name is invalid here — I'll have a think about whether to relax the criteria…
2020-02-28 18:36:59  Jack Douglas
or manually bring his user over and set his name or whatever
2020-03-02 12:13:48  Jack Douglas  replying to  Max
I've fixed the import issue with names and brought it over as a test
2020-03-02 15:19:35  Max  replying to  Jack Douglas
cheers
2020-05-18 09:58:13  PeterVandivier
i can't seem to reply to messages in this room atm 🤔
2020-05-18 09:58:27  PeterVandivier
@@@ question 712
2020-05-25 11:32:01  निरंजन
Are git questions allowed here?
2020-05-25 12:13:11  Jack Douglas  replying to  निरंजन
yes
2020-06-04 12:30:45  PeterVandivier
for Q 712 above, i was thinking about trying to TIO it, but i'm not 100% sure how to handle it gracefully (a la with hidden batches as in db<>fiddle). is there a sensible way to restructure that question with embedded TIO, or is that just too much setup?  
  
([here's what i've got so far](https://tio.run/##XY@xbsMgFEV3vuIKWUJqwFHcNe7WrP0BhlCDhRUXIrAS202/3QVbWbI86R24R/fN0S6msR5U8W/pDnyU7p3P0lV8ovhA633ZxBsJRmkIDcYywvGIz68TiA/ahFqeB9X1EA676pnAA9GHAUK0nem1iOaqghp8qBlniV7MVB9SRJ5J6wOCv6NzkMVqJNoToO16k9xrPVnkHw@o@wXiRDkF@72Gzg3ppfpjyQKYm@pBy70scrKMliaPMyQ1JduNRSr3vCraDbJ1jizh8QVOGU4vcM5wzpA09sdr7Ea8pXUp95t2Wf4B))
2020-06-04 12:44:45  Jack Douglas  replying to  PeterVandivier
at the moment we've only got the 'input', and tbh I don't understand what the different fields mean or why this doesn't produce output: https://tio.run/##XY/BjsIgFEX3fMUNaUIyQo2drZ3duPUHWMgUGhorGGi0rc63z0AbN7Ig4TzuyX1ztH/pmMZ6UMV/pNvxUbpPPktX8YniC633ZRNvJBilITQYywj7Pb6PBxAftAm1PA2q6yEcNtUrgSeiDwOEaDvTaxHNVQU1@FAzzhI9m6nepYg8kdYHBH9H5yCLxUi0J0Db9Sa5l3qyyD@eUPczxIFyCva4hs4NaVL9smQBzE31oOVWFjlZRkuTxxmSmpJ1xyKVe20V7QrZco8s4fENThlOb3DOcM6QNPbiNTYjPvKz3K7afw
2020-06-04 16:05:34  PeterVandivier  replying to  Jack Douglas
🤔it's entirely possible db<>fiddle is just better fit for purpose at the moment esp. with the `?hide` support. perhaps more complex scripting demos can be a "stretch goal" sort of thing, but not a "right now" thing
2020-06-05 08:10:28  Jack Douglas  replying to  PeterVandivier
I am toying with the idea of creating a variant of TIO which is more like db<>fiddle in it's mechanics
2020-06-05 08:10:45  Jack Douglas
but yes, it's a bit of a longer term thing :)
2020-06-05 11:14:22  PeterVandivier  replying to  Jack Douglas
![](https://media3.giphy.com/media/wi8Ez1mwRcKGI/giphy.gif)
2020-06-13 11:56:17  David
Right, all: this is a "macos" question, but I'm not sure it's a `ta.nix` question. I know that on Ubuntu I can use `ALT+F2` to run a command. Is there an equivalent on OSX? I don't want Spotlight (`command-spacebar`), as it doesn't find what I want to run. So: is there a key combo that runs a command? (As if it was running from command line on terminal, *but not using terminal*...)??
2020-06-13 11:58:24  David
@Jack (You've been really patient with that "DO IT" animated gif! ;) )
2020-06-13 12:06:07  Jack Douglas  replying to  David
I think animated gifs is a browser problem, and I have FF configured to play only once!
2020-06-13 12:08:38  David  replying to  Jack Douglas
Huh. I'm using FF, and can't find any setting for "GIF" or "anim\*"...
2020-06-13 12:09:22  David
And on that `ALT+F2` OSX equivalent, I'm [not the only one who wants to know that](https://apple.stackexchange.com/questions/378841). Doesn't look like it exists, sadly.
2020-06-13 12:10:23  Jack Douglas  replying to  David
Have you considered whether something like this would work for you (though it isn't quite the same thing): https://qsapp.com/index.php
2020-06-13 12:11:38  Jack Douglas  replying to  David
`image.animation_mode` in about:config!
2020-06-13 12:12:08  David  replying to  Jack Douglas
There be dragons, but I'll be careful. Thanks!
2020-06-13 12:12:19  Jack Douglas
I have `once` but you can choose `none` I think
2020-06-13 12:12:40  Jack Douglas
I'd risk any dragons to stop endless gif animations :)
2020-06-13 12:12:45  David  replying to  Jack Douglas
Once *is* enough, in this case. 
2020-06-13 12:13:41  David  replying to  Jack Douglas
A bit sledgehammer for this nut. But thanks! I'm going to try "[script-as-service](https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/MakeaSystem-WideService.html#//apple_ref/doc/uid/TP40016239-CH46-SW1)" and see if that gets me where I want to go.
2020-06-13 14:49:50  David  replying to  Jack Douglas
Well, I've tried QS now, and will probably stick with it. There are some things that Linux/Ubuntu does better (in my world!) than OSX. Ah well!