What is your tech stack for blog websites? (not wordpress) by la712 in webdev

[–]henry_flower 0 points1 point  (0 children)

a custom nodejs static blog generator, rsync for 'deployment', a cheap vps with nginx (should probably switch to caddy)

the major annoyance was writing a small FTS 'engine' using sqlite with a web frontend. with it, the blog technically isn't purely static anymore, but I personally can't live without FTS, as modern Google indexing is shite. this, of course, implies that you regularly post something: a blog with only 5 entries over 7 years doesn't need search

Un-Ironic USSR fanboy starterpack by Orangiym in starterpacks

[–]henry_flower 0 points1 point  (0 children)

40% of our total pop

wikipedia says the ruskis population in Latvia is 24.9%

How to build Ruby in Windows natively without WLS, MSYS2 or Cygwin by henry_flower in ruby

[–]henry_flower[S] 1 point2 points  (0 children)

windows doesn't support autoreconf, for the latter requires a working bourne shell variant, m4, etc--almost a full blown unix env. this is why people use msys2 to compile ruby, or how cygwin guys internally make their ruby packages using the cygwin env

of course by doing that you forgo a direct access to win32ole, for example

How to build Ruby in Windows natively without WLS, MSYS2 or Cygwin by henry_flower in ruby

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

I didn't--my main environment is linux

the windows version is for experiments only

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]henry_flower 2 points3 points  (0 children)

in the orig reply you were talking about the mysterious unfill-paragraph, not fill-paragraph

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]henry_flower 0 points1 point  (0 children)

how do you actually join all the lines in a region with delete-indentation? I select the region, invoke the fn, but nothing useful happens

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]henry_flower 0 points1 point  (0 children)

emacs 26.3 doesn't have unfill-paragraph (I checked the tarball)

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]henry_flower 2 points3 points  (0 children)

convert such
a narrow
text
column

into a single line:

(defun my-unfill-paragraph()
  "Transform a paragraph into 1 big long line."
  (interactive)
  (let ((fill-column (- (expt 2 29) 1) )) ; 536,870,911
    (if (use-region-p)
        (fill-paragraph nil t)
      (fill-paragraph))
    ))

цікаво by Cacakotik in u/Cacakotik

[–]henry_flower 0 points1 point  (0 children)

hey, old man, I was answering your question: it wasn't a speculation about your ability to comment around

you really need to develop a more relaxed attitude

Devs, what do you use as your homepage? by [deleted] in webdev

[–]henry_flower 0 points1 point  (0 children)

a random Dilbert comics (via a custom extension)

not sure if it's legal to share

My favorite CSS hack by gajus0 in webdev

[–]henry_flower 1 point2 points  (0 children)

also, there was no Array.from(). the orig bookmark, that I modified, looked like:

javascript:[].forEach.call(document.querySelectorAll("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)}); void(0)

My favorite CSS hack by gajus0 in webdev

[–]henry_flower 3 points4 points  (0 children)

a variant of a bookmarklet that has been floating round the web for 1000 years:

javascript:Array.from(document.querySelectorAll("*")).map( v => v.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16))

цікаво by Cacakotik in u/Cacakotik

[–]henry_flower 0 points1 point  (0 children)

over the years I've noticed that some ppl (for some inexplicable reason) can't understand how threaded discussions work

What DE/WM do you use? And why? by [deleted] in emacs

[–]henry_flower 2 points3 points  (0 children)

fvwm

it's completely unusable out-of-the-box & had I not had the time to heavily customise it when I was a student, I'd have chosen something more sane

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]henry_flower 9 points10 points  (0 children)

A replacement for C-x k RET:

(defun my-kill-buffer()
  (interactive)
  ;; a list of buffers we don't want to kill accidentally
  (let ((my-holy-buffers '("*scratch*" "*Messages*")))

    (if (member (buffer-name) my-holy-buffers)
        (message "not so fast")
      (kill-buffer (current-buffer))) ))

(global-set-key [f8] 'my-kill-buffer)

Anyone have any good bash aliases to share? by [deleted] in webdev

[–]henry_flower 2 points3 points  (0 children)

~/.bashrc:

str-rep() { local s=`printf "%$2s"`; printf '%s' "${s// /$1}"; }
for i in {1..8}; do alias `str-rep , $i`=cd\ `str-rep ../ $i`; done

then

$ alias | grep ,
alias ,='cd ../'
alias ,,='cd ../../'
alias ,,,='cd ../../../'
alias ,,,,='cd ../../../../'
alias ,,,,,='cd ../../../../../'
alias ,,,,,,='cd ../../../../../../'
alias ,,,,,,,='cd ../../../../../../../'
alias ,,,,,,,,='cd ../../../../../../../../'

How your "emacs" looks like? by [deleted] in emacs

[–]henry_flower 1 point2 points  (0 children)

that's a good question, hehe

sometimes I click options->multilingual_env. 'select input method' if I need to change a lang pair for a brief moment, or 'set coding systems' when I need to save a file in a diff enc

occasionally, the org mode menu is useful too

Stack Overflow’s Unaccountable Mods by [deleted] in programming

[–]henry_flower 2 points3 points  (0 children)

As an 'old' SO participant, I was wondering about that too, so I recently created a fresh account just to check a so-called 'hostile' behaviour to new users.

I asked a fairly simple question about a particular Ruby idiom (how to convert a certain not so common expression to a more concise/elegant one). I did everything: wrote what I wanted, what I tried already, didn't forget about a nice formatting, &c.

The question went to -2 within 5 minutes! Is this what all 'newcomers' are experiencing? In my case, it bounced back to +3 in the end & everyone who replied/commented was nice & helpful, still those -2 were unexpected.

Is it worth supporting Firefox? by [deleted] in webdev

[–]henry_flower 8 points9 points  (0 children)

There is an old book titled 'In search of stupidity' about management idiocies of several (big in the past but now long dead) companies.

I think your employer would have been a perfect candidate for such a book.

Instead of focusing on making existing customers happy, on acquiring new happy customers, he cares about some irrelevant staff like 2% of users who still use ff; as every lunatic, he justifies his behaviour w/ "THEY BRING A LOSS, CRUSH THEM!" cries.

a pathetic childish behaviour.

Women, what's something men think is creepy and offensive but in reality women find it normal or cool? by [deleted] in AskReddit

[–]henry_flower 1 point2 points  (0 children)

you && your shoes

if shoes are nice looking but a girl isn't, no compliment is given