Fork me on GitHub
#clojure-uk
<
2019-05-31
>
dominicm07:05:42

@lady3janepl when I finally meet you, it will be weird if you aren't cartoon Velma. That's my only image of you in my head.

3Jane07:05:19

that is... actually not a bad approximation XD

3Jane08:05:30

scooby doo is very much not a London flat sized dog though 😞

dharrigan08:05:22

How about scrappy?

3Jane08:05:01

yeah, that's more doable

3Jane08:05:02

my neighbour has a yappy scrappy

3Jane08:05:16

(Chinese Crested)

penryu08:05:35

@lady3janepl I read the :language [:pl, :en, :jp] entry of your introspection and initially thought it said Perl until I didn't see :clj 😳😂

penryu08:05:51

(perl has damaged me)

3Jane08:05:56

:rolling_on_the_floor_laughing:

3Jane08:05:51

i do have a soft spot for perl due to its development philosophy, so ...

3Jane08:05:56

wear the damage with pride 😄

jasonbell08:05:32

I like Perl.

4
3Jane08:05:58

with the natural idea of acquiring fluency, dialects

3Jane08:05:21

we even say "idioms" and "idiomatic" at things which are seen to be "in the spirit" of a certain language

3Jane08:05:06

Perl and Lisp were the two languages that I encountered which felt like I was downloading my brain directly into a program, fluently

penryu08:05:14

Ah, yes. The "context" aspect of Perl was the most frustrating (initially) and powerful (permanently). But also really prone to misinterpretation.

3Jane08:05:28

with the side effect that if you read that a year later, it sometimes read like binary -.-

penryu08:05:25

otoh, the ability to grasp $foo, @foo, and %foo representing 3 distinct variables came in handy when I encountered Lisp-2 languages.

3Jane08:05:39

it's like pre-IDE ide

3Jane08:05:31

(as in, plaintext, but expressive of what you're dealing with)

jasonbell08:05:39

@lady3janepl I can’t begin to tell you how many times perl -i -p -e "s/thing/thang/g;" myhugefile.txt has saved my life.

3Jane08:05:05

and the whole concept of $_ and being able to skip it in expressions

penryu08:05:14

oh man. perl -n / perl -p have saved me so many times

3Jane08:05:23

ahhh on that subject

3Jane08:05:24

forget :flag-no: silver searcher

dharrigan08:05:41

I must use rg hundreds of times a day

dharrigan08:05:54

tis amazing, in fact, I was looking at the man page right now to figure something out

dharrigan08:05:18

(coupled with fzf)

👍 4
3Jane08:05:39

must work, see you guys later 🙂

👋 8
practicalli-john09:05:01

I use ripgrep from Spacemacs, SPC /, it's great for searching through specific project files

alexlynham09:05:33

I use helm-do-ag and it’s pretty slick actually

alexlynham09:05:27

can you integrate ripgrep with helm?

flefik09:05:23

i have it in my user-config one sec

flefik09:05:33

(setq helm-ag-base-command "rg --vimgrep --no-heading --smart-case")

minimal09:05:09

i use helm-projectile-rg

flefik09:05:23

that’s probably a better way …

alexlynham09:05:56

maybe I will have to give it a spin

rickmoynihan09:05:27

@minimal: thanks for reminding me… I forgot I had that installed and hadn’t bound it to a key.

rickmoynihan09:05:29

it’s awesome

minimal09:05:10

yeah it’s super fast

alexlynham09:05:37

I’ve got regexp buffer search as C-s and helm-do-ag (interactive search) as M-C-s which makes finding something super simple

danielneal09:05:31

I use counsel-projectile-git-grep, counsel-recent-f and counsel-projectile-find-file and I am a happy bug

otfrom10:05:02

I'm pretty happy with deadgrep, but I'm not a big helm user

practicalli-john11:05:26

Any requests for the type of workshops wanted the day before ClojureX this year, Sunday 1st December (or we could try Saturday 30th if preferable). Its a still a long way away, but creating new workshops takes time... Workshops are usually 2-4 hours in length and highly practical / minimal theory. Also any volunteers to give a workshop this year ? If not, I can always do a whole day of Spacemacs indoctrination 😂😂😂😂😂😂

spacemacs 4
maleghast11:05:53

@jr0cket - I am going to have to say that if I can__ I will come along and help, and nearer to the time I will be able to be more concrete, but for now it's too far out to plan.

maleghast11:05:17

You have reminded me that I need to start putting my talk proposal together though...

alexlynham11:05:06

I could do something with serverless cljs, but I’ll probably have to rewrite it twice by then haha

practicalli-john12:05:40

@alex.lynham only twice 😁 I usually refactor many times... In fact I changed the ClojureBridge curriculum for almost every event we have done (I like to see if the coaches are paying attention).

alexlynham12:05:13

haha no I don’t mean revise, I mean start from scratch - I find anything cljs is out of date p quick!

Ben Hammond13:05:31

I have an embarrasingly n00b linux question. I have updated my ~/.profile to enable ssh daemon for Yubikey. I use gnome terminal which runs bash. When I create a new gnome terminal, it doesn't auto-pickup the change I made; I have to manually source ~/.profile to make it work. What am I doing wrong?

maleghast13:05:20

@ben.hammond - use .bashrc instead of .profile

Ben Hammond13:05:46

do they not coexist?

maleghast13:05:07

they do - I have NEVER manged to get anything to run in .profile using a terminal emulator

Ben Hammond13:05:46

I just chucked out ~/.bash_profile

maleghast13:05:57

I am aware that I am almost certainly showing my own ignorance, but if you put it in .bashrc it will at least work. I believe it to be the case that one should__ use .profile, but I've never made it work.

maleghast13:05:31

(For the record I use zsh, not bash 😉 )

Ben Hammond13:05:42

getting ssh to reliably talk to yubikey is my achievement for the day

Ben Hammond13:05:02

I'll not take up the .proffile/.bashrc fight today

Ben Hammond13:05:38

(it was export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" if that helps anyone)

dharrigan13:05:20

the .profile stuff is to do with whether bash is being invoked as a login shell or interactive shell, suffice to say that a .profile is only read during login

☝️ 4
dharrigan13:05:50

if you keep launching terminals within your window manager, they're not login

Ben Hammond13:05:36

oh right; you mean that it would work the next time I rebooted

Ben Hammond13:05:52

and then be applied to every terminal window thereafter

Ben Hammond13:05:47

that's very helpful

dharrigan13:05:28

There may already be a ".profile" in your home, if you cat it, you'll see it sources in your .bashrc

dharrigan13:05:36

(depending on distro of course!)

Ben Hammond13:05:08

i'm on ubuntu

dharrigan13:05:12

for more hairy details, if you man bash and go to the invocation section, you'll see it there in it's glory

party-corgi 4
dharrigan13:05:36

but perhaps a fight for another day, as you say 🙂

Ben Hammond13:05:15

perhaps its Friday afternoon and I'm feeling lucky

dharrigan13:05:33

don't chance your lluck - at our place, fridays are no-deploy days 🙂

rickmoynihan13:05:13

man bash and read the 3 paragraphs in the middle of the INVOCATION section. But @dharrigan is bang on. FTR I find .profile etc pretty useless on macos. They make more sense on Linux in some situations… IIRC some login managers would source .profile etc for you when starting an X session after logging in.

rickmoynihan13:05:35

which would provide a way to set environment variables etc that are visible to all processes including graphical ones.

rickmoynihan13:05:30

e.g. if you want your gui Emacs to see the same env you set at the terminal in .bashrc you can wire things up by moving that to .profile and sourcing it in the right way.

rickmoynihan13:05:43

but it’s been a while

otfrom14:05:15

/.profile or /.bash_profile should be sourced every time you log in. ~/.bashrc should be sourced everytime you start bash (IIRC)

practicalli-john15:05:00

In Ubuntu, .profile in the root of your home directory should contain lines to source the .bashrc file

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi
This allows you to put all your settings into .bashrc and have them for both login (and gui apps) and terminal shell.

rickmoynihan15:05:45

ahh yes that’s the wiring I meant :thumbsup:

dotemacs21:05:53

Confused by bash initialisation? You need not be after this straightforward and easy to follow diagram: http://www.solipsys.co.uk/new/BashInitialisationFiles.html

practicalli-john19:05:05

I am doing a broadcast on regex with Clojure on Saturday morning, 10am UK time... so its time to learn regex properly (at least for a day) https://www.youtube.com/watch?v=iTimmZcNToY

zyxmn19:05:28

Do you record your broadcasts and upload them on Youtube aswell ?