[-] [email protected] -2 points 4 days ago

This is not a demonstration and this does not qualify as a scientific proof. 🤷

They polled teachers. It ir like I polled religious and conclude that God exists because God speaks to most of the people I polled. This is not science, sorry not sorry.

[-] [email protected] -1 points 4 days ago

Yeah, except science does not work like that. 😐

2
submitted 2 weeks ago by [email protected] to c/[email protected]

La question est dans le titre. J'investis dans 2 EFT de BNP PARIBAS ASSET MANAGEMENT Europe : le S&P 500 et l'Eurostox 600 mais je ne sais pas si ça me fait bénéficier des intérêts composés ? Comment le savoir ?

21
submitted 3 weeks ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]

J'ai vu un commentaire sur Lemmy disant qu'il n'y a rien à voir comme contenu sur Peertube. Je suis plutôt d'accord. À part quelques vidéos destinées à des tech, des vieilles vidéos politiques dans des qualités pas ouf, il n'y a pas grand chose à voir. Mais je me suis demandé-e : qu'est-ce que les utilisateur-rices souhaiteraient y voir ? Des let's play de jeux vidéo ? Des stream de programmation ? Des dégustations ? Des "j'ai acheté ces objets des pubs TikTok" ?

Alors, je vous le demande, que voudriez-vous voir sur Peertube ?

Edit: je parle bien de type de contenu et non de chaînes en particulier qui pourraient être mirrorées (ou transférées, soyons rêveur-euses) sur Peertube.

24
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

Je suis tellement content-e du résultat ! La représentation n'est pas issue de la série mais du clip de "Ma Meilleure Ennemie".

Photo de mon mur avec Jinx et Ekko peint-es sur un fond vert foncé avec quelques confettis. La scène est triste. Ekko est derrière Jinx, un bras autour d'elle, la tête contre la sienne, les yeux fermés, alors qu'elle est les bras ballants, yeux fermés avec le fard à paupière qui a coulé.

1
Où transferer mon PEA ? (lemmy.blahaj.zone)
submitted 1 month ago by [email protected] to c/[email protected]

Bonjour,

J'ai une question simple, j'ai un PEA à la BNP. Je l'ai ouvert là-bas car c'est ma banque où j'ai mon emprunt immobilier et mes comptes mais je crois qu'il y a des différences d'un établissements à un autre, que sur certaines banque en ligne il y a moins de frais.

Y a-t-il des recommandations de où détenir son PEA ?

Merci par avance !

[-] [email protected] 45 points 1 month ago
  1. Supervise command (run every 2s)
watch "ls -larth"
  1. Kill program using one port
sudo fuser -k 8000/tcp
  1. Limit memory usage for following commands
ulimit -Sv 1000       # 1000 KBs = 1 MB
ulimit -Sv unlimited  # Remove limit
  1. Rename selected files using a regular expression
rename 's/\.bak$/.txt/' *.bak
  1. Get full path of file
readlink -f file.txt
  1. List contents of tar.gz and extract only one file
tar tf file.tgz
tar xf file.tgz static
  1. List files by size
ls -lS
  1. Nice trace route
mtr google.com
  1. Find files tips
find . -size 20c             # By file size (20 bytes)
find . -name "*.gz" -delete  # Delete files
find . -exec echo {} \;      # One file by line
./file1
./file2
./file3
find . -exec echo {} \+      # All in the same line
./file1 ./file2 ./file3
  1. Print text ad infinitum
yes
yes hello
  1. Who is logged in?
w
  1. Prepend line number
ls | nl
  1. Grep with Perl like syntax (allows chars like \t)
grep -P "\t"
  1. Cat backwards (starting from the end)
tac file
  1. Check permissions of each directory to a file

It is useful to detect permissions errors, for example when configuring a web server.

namei -l /path/to/file.txt
  1. Run command every time a file is modified
while inotifywait -e close_write document.tex
do
    make
done
  1. Copy to clipboard
cat file.txt | xclip -selection clipboard
  1. Spell and grammar check in Latex
detex file.tex | diction -bs

You may need to install the following: sudo apt-get install diction texlive-extra-utils.

  1. Check resources' usage of command
/usr/bin/time -v ls
  1. Randomize lines in file
cat file.txt | sort -R
cat file.txt | sort -R | head  # Pick a random sambple

# Even better (suggested by xearl in Hacker news):

shuf file.txt
  1. Keep program running after leaving SSH session

If the program doesn't need any interaction:

nohup ./script.sh &

If you need to enter some input manually and then want to leave:

./script.sh
<Type any input you want>
<Ctrl-Z>          # send process to sleep
jobs -l           # find out the job id
disown -h jobid   # disown job
bg                # continue running in the background

Of course, you can also use screen or tmux for this purpose.

  1. Run a command for a limited time
timeout 10s ./script.sh

# Restart every 30 minutes

while true; do timeout 30m ./script.sh; done
  1. Combine lines from two sorted files
comm file1 file2

Prints these three columns:

Lines unique to file1.
Lines unique to file2.
Lines both in file1 and file2.

With options -1, -2, -3, you can remove each of these columns.

  1. Split long file in files with same number of lines
split -l LINES -d file.txt output_prefix
  1. Flush swap partition

If a program eats too much memory, the swap can get filled with the rest of the memory and when you go back to normal, everything is slow. Just restart the swap partition to fix it:

sudo swapoff -a
sudo swapon -a
  1. Fix ext4 file system with problems with its superblock
sudo fsck.ext4 -f -y /dev/sda1
sudo fsck.ext4 -v /dev/sda1
sudo mke2fs -n /dev/sda1
sudo e2fsck -n <first block number of previous list> /dev/sda1
  1. Create empty file of given size
fallocate -l 1G test.img
  1. Manipulate PDFs from the command line

To join, shuffle, select, etc. pdftk is a great tool:

pdftk *.pdf cat output all.pdf        # Join PDFs together
pdftk A=in.pdf cat A5 output out.pdf  # Extract page from PDF

You can also manipulate the content with cpdf:

cpdf -draft in.pdf -o out.pdf      # Remove images
cpdf -blacktext in.pdf -o out.pdf  # Convert all text to black color
  1. Monitor the progress in terms of generated output

# Write random data, encode it in base64 and monitor how fast it is being sent to /dev/null

cat /dev/urandom | base64 | pv -lbri2 > /dev/null

# pv options:
#   -l,  lines
#   -b,  total counter
#   -r,  show rate
#   -i2, refresh every 2 seconds
  1. Find packages that have a given file in Ubuntu
apt-file update
apt-file search dir/file.h
13
submitted 2 months ago by [email protected] to c/[email protected]

Je sais qu'ici on n'est pas efficace sur la planification des repas et donc on va souvent en courses car on décide ce qu'on mange 2h avant de manger ou la veille.

16
submitted 2 months ago by [email protected] to c/[email protected]

Moi c'est médicaments, Posca, de quoi prodiguer des premiers soins, une clef USB, un stylo, du gel hydroalcoolique.

Je pense rajouter des bouchons d'oreille et un éventail l'été.

[-] [email protected] 19 points 3 months ago

This Arcane scene : https://www.youtube.com/watch?v=bU15Tk3UZwc

It's like they made 0 effort censoring it correctly 💀

15
submitted 4 months ago by [email protected] to c/[email protected]

It's been a while since I noticed that but I can't find the reason. I selfhost :

  • a linkding with docker
  • a writefreely
  • a bludit blog
  • a CalDav (radicale)

There is a syncthing running for backups done with borg at night (automated with a crontab).

When I htop, I don't see anything to hint me to what is causing the heating.

Any ideas of what I could do to investigate that?

Thanks a lot.

[-] [email protected] 24 points 5 months ago

"My hammer is not well suited to cut vegetables" 🤷

There is so much to say about AI, can we move on from "it can't count letters and do math" ?

[-] [email protected] 18 points 6 months ago

Discovered about rg recently and it is cool!

[-] [email protected] 44 points 7 months ago

Ending capitalism to embrace a system where we end poverty, consumerism and discriminations.

19
submitted 7 months ago by [email protected] to c/[email protected]

Hey there! I'm starting my journey to the learning of Rust. I have been coding only with Python for 6 years now and last year, I had to code in JavaScript using VueJS for my job (I never workedeon frontend).

Now, I have a personal project idea which I'd like to create. I could do it in Python but I want to learn Rust. I've looked up on the Internet but may be some answers are too old or someone here can point me to something I haven't seen yet.

What do you recommand for webdev? I guess I need to code the back in Rust and use a JavaScript framework for the front. My backend will be for a REST API (my app will need to manage users and organisations).

Bonus question if you can recommend a BDD framework. I think there is something named Cucumber. Is it good?

Thanks a lot ♥️🦀

15
What do you code in Rust? (lemmy.blahaj.zone)
submitted 7 months ago by [email protected] to c/[email protected]

I've only been coding with Python/Javascript since I started my career. I do APIs and websites frontend. I don't really understand what is interesting in learning an other language. For example, I could learn Ruby, but I'd do the same thing I already do.

Rust, C/C++ tho seem to me to be languages to code other things. Hence my question : what do you code? If possible, make distinction between personal projects and professional projects.

[-] [email protected] 22 points 9 months ago* (last edited 9 months ago)

Alien.

"Waow what the f-!"
"- DON'T KILL IT!"
*kills it* "- Sorry, you were saying?"

Still can't figure why they didn't kill it when they had opportunity. 😬

117
submitted 10 months ago by [email protected] to c/[email protected]
[-] [email protected] 21 points 1 year ago

Here you go !

[-] [email protected] 19 points 1 year ago

While calling terrorists everyone who stands for Gaza and sending the police, which mutilated many people under Macron's regime, to interrupt protests.

Classic Macron.

[-] [email protected] 72 points 1 year ago

Intersting how we can "undress any girl" but I have not seen a tool to "undress any boy" yet. 😐

I don't know what it says about people developing those tools. (I know, in fact)

107
submitted 1 year ago by [email protected] to c/[email protected]

I'm always so exhausted, I can take an hour to wake up. How do you wake up quickly ?

[-] [email protected] 18 points 2 years ago

Mine is really weird and hard to describe. I'll try to be concise. I close my eyes (no shit Sherlock) and I imagine faces of people. It can be someone close, a star of a TV show, anything. Then I change element of their face one by one (e.g. their eyes). And I keep going. And everytime the face changes enough I question myself "I know this person, who is this ?". And when I answer the question, the face is clearer (because I've put a name on the face so it is easier to imagine it and correct it) and I can go on again until I fall asleep.

view more: next ›

ClusterBomb

0 post score
0 comment score
joined 2 years ago