melimosa

joined 1 week ago

( command | sloooower 0.000277 is pretty much a 3600 bauds output)

[–] melimosa@piefed.blahaj.zone 2 points 1 day ago (1 children)

That's very good.

Generalization and line feed customisation :

function sloooower() {
	BASE_INTERVAL=${1:-0.05}
	RET_ADD_INTERVAL=${2:-0.1}
	CHAR_ADD_INTERVAL=${3:-0}
	while IFS= read -r -n1 char; do
		if [[ -z "$char" ]]; then
			sleep "${RET_ADD_INTERVAL}"
			printf "\n"
		else
			sleep "${CHAR_ADD_INTERVAL}"
			printf "%s" "$char"
		fi
		sleep "${BASE_INTERVAL}"
	done
}
alias sl='ls | sloooower'
[–] melimosa@piefed.blahaj.zone 1 points 1 day ago* (last edited 1 day ago)

I try to organise my data in the cleanest way possible, with the less double possible etc... I end up using a lot of symbolic links. When doing maintenance, sometimes I want to navigate in the "unlogical" way the data are organized, but the PWD variable is not necessarily very cooperative. This alias is really useful in my case :

alias realwd='cd -P .'  

Here is an example :

$ echo $PWD  
/home/me  
$ cd Videos/Torrents/  
$ echo $PWD  
/home/me/Videos/Torrents  
$ realwd  
$ echo $PWD  
/home/me/data/Torrents/Video  

I also do some X application, compositor and WM development, and I have a few aliases to simplify tasks like copying from an Xorg session to an Xnest (and the other way around), or reload the xrandr command from my .xinitrc without duplicating it.

alias screenconf='$(grep -o "xrandr[^&]*" ~/.xinitrc)'  
alias clip2xnext='xclip -selection clip -o -display :0 | xclip -selection clip -i -display :1'  
alias clip2xorg='xclip -selection clip -o -display :1 | xclip -selection clip -i -display :0'  

I have an alias for using MPV+yt-dlp with my firefox cookies :

alias yt="mpv --ytdl-raw-options='cookies-from-browser=firefox'"  

I can't stand too long lines of text on my monitor, particularly when reading manpages, so I set the MANWIDTH env variable.

# Note : if you know that *sometimes* your terminal will be smaller than 80 characters  
# refer to that https://wiki.archlinux.org/title/Man_page  
export MANWIDTH=80  

I use null-pointers a lot, with a shorthand.

# Note: env.sh actually provide other helpful aliases on their homepage  
function envs.sh() {  
	if [ $# != 1 ]; then  
		1>&2 printf "Error, need one argument.\n"  
		return 1  
	fi  
	curl -F'file=@'"$1" https://envs.sh/  
}  

The usual fake editor in my path, so that browsers and other applications open Vim the correct way.

#!/bin/sh  
# st_vim.sh - executable in my ~/.local/bin  
# for example in firefox's about:config :  
#   - view_source.editor.path : set to the value of $(which st_vim.sh)  
#   - view_source.editor.external : set to true  

st -- $EDITOR "$*"  

My .xinitrc is quite classical, I still have this in it (setup for dwm's title bar, people usually install much complicated programs) :

while true; do xsetroot -name "$(date +"%d %H:%M")"; sleep 60; done &  

I also have a lot of stupid scripts for server and desktop maintenance, disks cleaning etc... those are handy but are also very site-specific, let me know if your interested.

[–] melimosa@piefed.blahaj.zone 1 points 4 days ago

Thanks for this !

I've found a couple models in the 20-30€ range, I will try those.

[–] melimosa@piefed.blahaj.zone 1 points 4 days ago

Hello !

I don't know a lot about CSS. But I what I was trying to do was : putting the side bar before the mainbar, with the same width as the main ; and hiding / showing it with an interaction (here hover a rectangle shown above the main bar).

A proper way to do it would certainly be having a page template that has a sidebar hide/show checkbox (or in HTML <details>, <summary> etc...), but this would mean a slightly different page layout (and as non-front-end dev I think I'm not the right person to ask ahah).

[–] melimosa@piefed.blahaj.zone 5 points 5 days ago (1 children)

« Pouvoir s'affranchir d'une entité tierce » c'est bien beau mais dans les faits c'est bien plus complexe en fonction de ton niveau, lieu ou mode de vie.

Aujourd'hui pas mal de produits de vie ne sont accessibles à des coûts abordables que via des plateformes en ligne.

Si on peut se débrouiller en liquide pour les produits du quotidien dans les villes, là où je vie le premier distributeur est à 35km. Le meilleur moyen d'en obtenir c'est via du cashback à l'épicerie du coin, avec des frais assez importants.

D'autant plus que ton salaire, si tu veux avoir accès à la protection sociale, cotiser etc. bref déclarer, tu es dans l'obligation d'avoir et d'utiliser un compte en banque, donc une entité tierce, centralisée.

Je souhaites pas défendre ce système, que je trouve à chier, mais le fait est que c'est non seulement compliqué, et pas réaliste pour une bonne part de la population de simplement refuser de l'utiliser.

[–] melimosa@piefed.blahaj.zone 2 points 1 week ago

Thanks !

Yes I've been thinking a lot about lighting. My sight problems are greatly impacted by the lack of light.

I already have a 2 led lamps, they provide enough light and have a great range of motion.

Maybe one day I'll go with a ring lamp w/ or w/out a magnifier on it, but I already know that for soldering this is not enough for me (a friend of mine lent me one a couple of years ago).

[–] melimosa@piefed.blahaj.zone 1 points 1 week ago (2 children)

Thanks !

That's the kind that most friends advised me. But their is a lot of models, and I'm not entirely sure which one are wearable with glasses or not.

I guess I'll go with a on-table device later.

 

Hello,

I am a student / cleaner worker in EU. I do digital (mainly Intel 8051 and 6502) and analog (for mod synth) electronic, in a very low budget DIY way.

The thing is, I mainly work on breadboards, because my bad sight don't allow me to do very good soldering. However, I've been desoldering, scrapping and repairing PCB and electronics for like 5/6 years now, and it is still very hard despite this (little) experience.

I have success on THT with big components, although this is not the cleanest work. I would like to reduce the form factor of my work / stabilise it, but this often means smaller components, maybe SMD, and tight spaces, which I currently can't work well with.

In the last 2 years I've been searching for accommodations, things like better soldering iron, smaller tips (Currently for tight spaces and small pads I use thin Pinecil tips), better quality tin (with lead), flux, building helping hands, desolderings tools and consumables etc... This helps a lot but this is really not enough. I know that, in the end, I need some sort of magnification device.

The thing is, magnification devices are not cheap, at least for good quality and usability. I also don't have the money to "just try" one. I've been reading review, watching videos about some, talking to some friends etc.. but most people either don't have sight issues, or have "this very expensive microscope that only engineers can afford". This also comes with the fact that I fear to need to wear my glasses when using the device.

Soooo, I was wondering if there was some people out here with the same issues, or with experiences on some tools etc... any tips is welcome :)

I'm sorry if this question has already been answered, I didn't find it. If so, please link to the thread I'll be very happy :)

xoxo
~melimosa

[–] melimosa@piefed.blahaj.zone 7 points 1 week ago

Was high, and reading the journal. Phased on the name of somebody and then choose.

It was like "Yeah... this one, I like it"

[–] melimosa@piefed.blahaj.zone 1 points 1 week ago

Oh thanks, didn't know about this community, I might post it there :)

[–] melimosa@piefed.blahaj.zone 2 points 1 week ago (4 children)

So I come up with a way better solution, remember that I'm not a JS/CSS dev at all. This is done through some flex container manipulation, height manipulation and :hover magic.

It hides the sidebar below the main panel, and by hovering the grey rectangle it allows you to show it. I find it to work really well.

.main_pane, #side_pane {
  order: 1;
  width: 90%;
  max-width: unset !important;
  margin: 0 auto !important;
  overflow-y: hidden;
}

#side_pane {
  order: 0;
  
  display: flex;
  
  flex-direction: row;
  flex-wrap: wrap;
  
  margin-top: 1rem !important;
  gap: 1em 0.5em;
  
  height: 3rem;
}

#side_pane:before {
    display: block;
    content: close-quote;
    height: 3em;
    width: 95%;
    margin: 0 auto;
    background-color: #eee;
}
  
#side_pane .card {
    order: 1;
    margin-top: unset !important;
    height: fit-content;
    max-width: calc(100% - 1em);
    width: 100%;
}
  
#side_pane .card#about_community {
    order: 0;
    width: 100%;
}

#side_pane:hover {
    height: unset;
    margin-bottom: 1rem !important;
}
    
#side_pane:hover:before {
  display: none;
}

PieFed custom CSS system doesn't allow & and ' symbols, which is pretty inconvenient for recursives selectors and for content clauses.

[–] melimosa@piefed.blahaj.zone 2 points 1 week ago* (last edited 1 week ago)

here is some screenshots, notice how the filters for the post feed are not properly aligned. This is not much of an issue for me, but can be improved

Screenshot of a feed using the CSS, the middle column now takes the full width, without the right bar

Screenshot of the community message feed, the filters are not properly aligned, but are usable

Screenshot of comments, those are correctly aligned and takes the full width

view more: next ›