• 1 Post
  • 25 Comments
Joined 18 days ago
cake
Cake day: March 13th, 2025

help-circle


  • mina86@lemmy.wtfOPtoLinux@lemmy.mlIs Ctrl+D really like Enter?
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 day ago

    Yeah, it’s a bit philosophical.

    • In graphical applications, Ctrl+M, Ctrl+J and Return/Enter are all different things.
    • In a terminal in raw mode, Ctrl+M and Return/Enter are the same thing but Ctrl+J is something different. You can for example run bind -x '"\C-j":"echo a"' in bash and Ctrl+J will do something different.
    • In a terminal in canonical mode, they are all the same thing. There probably are some stty options which can change that though.





  • 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 {} +
    




  • Everything you’re describing is further speculation and unfalsifiable statements for events which already have a simpler explanation. That’s a tell-tale sign of a conspiracy theory.

    Google buying the company as some kind of plot to get spies into Google requires more assumptions than Google buying the company for the technology (as it has done with plethora of other companies). If Google is somehow complicit in it, they could just hire those people directly. And if it’s all covert operation, Israel is capable of training and coaching their spies to pass Google’s interviews. Google interviews aren’t trivial, but it’s also not some super-elite company which hires only the top 0.01% of software engineers.

    If you want to convince me otherwise, you need to demonstrate why your explanation is more likely than the obvious one.








  • mina86@lemmy.wtftoLinux@lemmy.ml*Permanently Deleted*
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    9 days 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.wtftoLinux@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    30
    ·
    edit-2
    9 days ago

    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.wtftoLinux@lemmy.mlLinux Terminal: CTRL+D is like pressing ENTER
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    9 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.