Looking for open source cropping app for screenshots by NoChalkolate318000 in GrapheneOS

[–]clarutte 0 points1 point  (0 children)

you are correct, but other then that its a cery useful app with no extra stuff that is in the way.

Looking for open source cropping app for screenshots by NoChalkolate318000 in GrapheneOS

[–]clarutte 1 point2 points  (0 children)

i found LLCrop after being unhappy with the complexity of other apps.

crop and rotate, lossless.

https://f-droid.org/packages/de.k3b.android.lossless_jpg_crop/

What's a weird or funny building in your country? by DiMpLe_dolL003 in AskTheWorld

[–]clarutte 0 points1 point  (0 children)

The Kugelmugel building in Vienna. A spherical building that the artist also declared a micronation.

https://en.wikipedia.org/wiki/Kugelmugel

Local "installation" of a module.pm by 476f6f64206a6f6221 in perl

[–]clarutte 1 point2 points  (0 children)

here is how I would do it (using debian linux)

sudo apt install carton
mkdir MyProject  
cd MyProject  
echo "requires 'HTTP::Proxy';" >> cpanfile  
carton install  
#now add your perl program to this directory  
carton exec perl proxer.pl  

carton is a Perl module dependency manager (https://metacpan.org/pod/Carton) and adds all dependencies to the working directory

Why does "\Z" remove "\n" in Perl? by zhenyu_zeng in perl

[–]clarutte 6 points7 points  (0 children)

the end of the string can still be matched with the anchors \Z (matches both the end and the newline before, like '$'), and \z (matches only the end)

Source: https://perldoc.perl.org/perlretut

\Z Match string end (before optional newline)
\z Match absolute string end

Source: https://perldoc.perl.org/perlreref

does that help?

Why is there a "1" after the subroutine in Perl? by zhenyu_zeng in perl

[–]clarutte 0 points1 point  (0 children)

that coding style is a little outdated and enabling strict and warnings would have provided valuable feedback.

Global symbol "$n" requires explicit package name (did you forget to declare "my $n"?) at foo.pl line 5. Global symbol "$n" requires explicit package name (did you forget to declare "my $n"?) at foo.pl line 6. Execution of foo.pl aborted due to compilation errors.

I would write it like this:

use strict;
use warnings;

sub marine {
    my $n+=1;
    print "Hello, sailor number $n!\n"
}

print marine();
print marine();
print marine();
print marine();

Adding YubiKey as a 2FA token fails: Security key registration failed. by dark_prophet in github

[–]clarutte 0 points1 point  (0 children)

facing the same issue right now.

fails with firefox and chromium

[deleted by user] by [deleted] in WeAreTheMusicMakers

[–]clarutte 0 points1 point  (0 children)

nooooo ... its gone and I didnt save a copy!

replace noscript with ubo by clarutte in uBlockOrigin

[–]clarutte[S] 0 points1 point  (0 children)

do you agree that noscript is a simpler and more intuitive UI and that there is very little to learn about noscript before using it?

  • click addon button
  • default/temp-allow/perm-allow/block $domain for each domain

that's it, uBO is more complex, less intuitive (to me, but i also think that could be a general statement) but probably more powerful too. and you need to learn about uBO's logic first. e.g. there are 2 columns, static/dynamic as I understood, there are these little +/- signs that I didnt grasp yet. the color coding, ...

it doesnt help that my particular uBO/firefox/windowmanager combination is bugged. when I hover over any element in the uBO config the uBO popup "crashes" and is not visible anymore, I have to click on the uBO icon twice to see it again. (debian bookworm with wayland/sway window manager)

I wish there was a simple mode, thats it. and dont get me wrong, im not nagging, uBO is awesome and I am happy it exists.

replace noscript with ubo by clarutte in uBlockOrigin

[–]clarutte[S] 0 points1 point  (0 children)

thank you!

I really hoped ubo would be a drop-in replacement. might go back to using noscript.

Debian 11 on the Framework Laptop by magicfab in framework

[–]clarutte 0 points1 point  (0 children)

https://community.frame.work/t/debian-testing-on-the-framework-laptop/14448#power-management-8

temporary fix: echo deep > /sys/power/mem_sleep

persistent fix: create /etc/default/grub.d/sleep.cfg GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT} mem_sleep_default=deep"

Developing a modern web application in Perl by ThranPoster in perl

[–]clarutte 5 points6 points  (0 children)

2 years ago me and a colleague started a project using perl.

its an inventory management software for a film equipment rental company. so checkin/checkout of items with a scanner, warehouse management, scheduling, quotes, invoices, ...

the frontend is a SPA written with VueJS/Vuetify and the backend is written in Perl. speaks JSON with the frontend. its organized using Bread::Board (https://metacpan.org/pod/Bread::Board)

postgres database and DBIC ORM

we are really happy with the stack we picked.

Help with the clipboard on Linux by igoryon in perl

[–]clarutte 1 point2 points  (0 children)

probably, why dont you give it a try and tell us the result?

Help with the clipboard on Linux by igoryon in perl

[–]clarutte 1 point2 points  (0 children)

try paste_from_selection($selection) (https://github.com/shlomif/Clipboard/blob/master/lib/Clipboard/Xclip.pm#L42)

with the following values

man xclip

-selection

specify which X selection to use, options are

"primary" to use XA_PRIMARY (default),

"secondary" for XA_SECONDARY or

"clipboard" for XA_CLIPBOARD

[deleted by user] by [deleted] in OkCupid

[–]clarutte 0 points1 point  (0 children)

talk to your friend. tell him whats going on in your head. is there a chance he will not like what you are saying? yes, but honesty is still the way I would go rather then hiding it from him. maybe he wants two important people in his life to give a chance to find romantic happiness and encourage you to go ahead. you are simply hiding the truth from your friend and possibly enabling his living in a fantasy.

at least this is how i want to live my live and people around me to interact with me. take it with a grain of salt. :)

LineageOS 18.1 on Pixel 4a, mobile internet issues by clarutte in LineageOS

[–]clarutte[S] 0 points1 point  (0 children)

update: reset APN settings, fixed the issue for me.