mina86

joined 2 weeks ago
[–] mina86@lemmy.wtf 4 points 1 hour ago* (last edited 1 hour ago)

~~You want readlink -f rather than ls -l.~~ ++OK, actually not exactly. readlink won’t print path to the symlink so it’s not as straightforward.++

Also, you want + in find ... -exec ... + rather than ;.

At this point I feel committed to making readlink work. ;) Here’s the script you want:

#!/bin/sh

want=$1
shift
readlink -f -- "$@" | while read got; do
	if [ "$got" = "$want" ]; then
		echo "$1"
	fi
	shift
done

and execute it as:

find ~ -type l -exec /bin/sh /path/to/the/script /path/to/target/dir {} +
[–] mina86@lemmy.wtf 3 points 17 hours ago

I’ve Pulse 14 with plain Debian installation and so far didn’t notice any issues. Though admittedly, I’m not a heavy laptop user. Your mileage may vary I guess.

[–] mina86@lemmy.wtf 4 points 19 hours ago (3 children)
[–] mina86@lemmy.wtf 10 points 1 day ago

I used Claws Mail at some point in the past. Now notmuch+Emacs.

[–] mina86@lemmy.wtf 5 points 4 days ago

Why do you think it would affect performance?

[–] mina86@lemmy.wtf 6 points 5 days ago
  • Short, single sentence paragraphs.
  • Ends article with ‘Sad’ as its own paragraph.

What kind of BS website is this?

[–] mina86@lemmy.wtf 2 points 5 days ago (1 children)

You cannot write setuid scripts. It must be a binary.

[–] mina86@lemmy.wtf 5 points 5 days ago

The thread linked by the OP is Jarkko Sakkinen (kernel maintainer) seemingly saying “show your work, your patch is full of nonsense” in a patch submitted for review to the Linux kernel.

That’s not what he’s saying. He’s saying: ‘You’re using terms which aren’t that familiar to everyone. Could you explain them?’

[–] mina86@lemmy.wtf 10 points 1 week ago* (last edited 1 week ago)

If you have an SVG image you can either embed it directly on the website, or link it using img tag. Whatever the case, there’s no need to export it to PNG.

And yes, that will likely result in a smaller website and furthermore images which can scale smoothly.

[–] mina86@lemmy.wtf 31 points 1 week ago* (last edited 1 week ago) (6 children)

Another interesting part is that HTML5 supports embedding SVG. That is, you can put SVG code directly in your HTML5 document and it’s going to render correctly. You can also style it through your website’s CSS file and manipulate the elements via JavaScript.

Though as others pointed out, it’s technically not HTML but XML. For example, you have to close all the elements and quote all the attribute values. But when you embed it inside a HTML document, those rules get relaxed to adhere with HTML. (I.e., you cannot write <circle r=5> in SVG (it must be <circle r="5" />) but you can when you embed it in HTML).

[–] mina86@lemmy.wtf 1 points 1 week ago* (last edited 6 days ago)

Which is why I haven’t wrote ‘EOF character’, ‘EOT’ or ‘EOT character’. Neither have I claimed that \x4 character is interpreted by the shell as end of file.

Edit: Actually, I did say ‘EOF character’ originally (though I still haven’t claimed that it sends EOF character to the program). I’ve updated the comment to clear things up more.

[–] mina86@lemmy.wtf 2 points 1 week ago* (last edited 1 week ago) (1 children)

Having to type sudo already acts as a molly-guard. Whatever OP wants to do I won’t stop them, but they are doing something strange.

view more: next ›