liztai, to ADHD
@liztai@hachyderm.io avatar

So happy I took the time to learn #Dataview. It's going to be revolutionary for my vault. It'll help me create main topic pages to keep track of my notes. I used to manually link every note to a "MOC" but I kept forgetting and found it tedious. This is going to be a "leave it and let grow" thing, and it suits my #ADHD brain immensely lol.
And how great it is that the
#Obsidian anticipated our annoyance with YAML and come up with the properties feature? Genius.

secupriv,
@secupriv@mastodon.nl avatar

@liztai Your dataviews wil evolve and that might be a challenge when you have dataviews in your templates that you then want to update as well.

My solution to that is to put a snippet in the template that loads the another note (call it a where the actual Dataview lives.

The code to load that other note:

dv.span(await dv.io.load("/full_path_to/note.md"))  

Works like a charm and it makes life much easier.

@obsidianmd

philsplace, to random
@philsplace@mastodon.sdf.org avatar

Dropping some Perl right in the middle of some Template::Toolkit code is the best thing about TT

mjgardner,

@philsplace
@perl “[ languages have] two problems: First, their little language is crippled. If you need to do something the author hasn't thought of, you lose. Second: Who wants to learn another language? You already know , so why not use it?“

Cut out the middleman and use Text::Template: https://metacpan.org/pod/Text::Template

minioctt, (edited ) to wordpress Italian

Non l’ho messo nel post di ieri perché sarebbe venuto un papirone e comunque interessa solo ai wordpressisti, non anche a chi usa altri sistemi, però…. questo è quello che ho dovuto fare per sistemare le #serie, lo scrivo anche per reference. Mezzo casino, ma in genere coi plugin è sempre così, sono tutti diversi… invece, le categorie sono una funzionalità di #WordPress, quindi tutto si integra in automatico. 👌

  • Quasi 5 minuti spesi a orientarmi tra i menu di PublishPress Series… e ancora adesso non riesco a capire non solo perché ci siano due pagine di gestione “Serie” e “Gestione delle serie” sotto il menu Articoli che potevano essere benissimo una (la seconda è virtualmente una copia della prima, eccetto che manca il form per creare una serie), ma poi neanche perché ci sia un menu Serie separato che ospita solo la pagina Impostazioni (e allora c̛̄a̬r̷͜i̲ss̞i͈͝m̜i͚̒, o evitate il menu Articoli e mettete tutto tutto sotto il vostro, o̔̋͆p̠̫͔̆̓p̶̡̛̙̭̑ͬ̄ͮ͌͜ű͇̪̅ͭ̋r͇̙̼̙͇̥ͦͮͯ̍ͬé̛̞ͨͨ̒̍̑ͅ n̹o͇ͅṋ̶͠ m̴̤̭̾̇ͧͅe̹͈͙͌̄t͎̼͉͕̬̔̇ͤt̡̳̐ē̴̝̦̱ͪ̈́̋ͭ͘t̛̙̩̪̤̄͆̍͌e̞̟̲̥ u̸̬̣̘̹ͤ̏ͩͭn̫̼͔̟ͤ̈́̓͊͜͜͞ a͍̜͊̇ͬl̫̤͊t̵ró̶̩͌ m̡̺̩̳͔̰̬͆̉e̦n͎ͣ̀͛ṵ̡̲̻̳͉̾̚͜ͅ e il singolo tasto per le impostazioni lo mettete… beh, sotto la voce Impostazioni del CMS)… 🤧

  • Aggiungendo #post ad una serie, in automatico in cima alla pagina di ognuno di loro viene aggiunto un riquadro che indica di quale fa parte ciò che si sta leggendo, con link sia che rimandano alla pagina della serie, sia agli altri articoli, e puntata precedente e successiva in fondo alla pagina.

    • One small issue: gli articoli senza titolo non prendevano spazio nel riquadro, essendo sia invisibili che incliccabili. E, seppur il #plugin abbia una sezione di templating per personalizzare l’HTML generato, non c’è modo di far apparire il collegamento al post preso singolarmente. Per fortuna, me la sono cavata senza modificare il codice, con una hack accettabile: CSS custom per scrivere del content nella parte :after dei link sfigati. 🤯
  • Il box comunque usciva in troppe (2) pagine dove proprio non dovrebbe, nell’anteprima degli #articoli fuori dalla loro effettiva visualizzazione, rubando spazio a schermo e (credo) causando confusione. Anche qui, in realtà, l’unica opzione non rognosa è il CSS, e per fortuna con tutta la munnizza che viene scritta nel corpo di un’intera pagina dal server è facilissimo costruire dei selettori che agiscano solo nei contesti che mi interessano.

  • La pagina di ogni serie usava di default il template di #tassonomia del sito, che sarebbe ok… se solo mostrasse la descrizione. Quindi ho dovuto attivare il template lista del plugin, che invece lo fa, ma ecco altre rogne con questo… e inizialmente credevo di potermela risolvere senza modificare il #template PHP, ma alla fine ho dovuto. Per fortuna, anche se ci ho messo 3 minuti tosti a capirlo dalla documentazione fatta malino, mi è bastato creare una copia del file nella cartella root del mio tema, e modificare quella. 🔥️

    • Prima, la completa assenza della sidebar del #sito, quindi anche del link per tornare alla home o del menu di navigazione… ho dovuto modificare il sorgente. Chiamando wp_nav_menu() faccio comparire almeno la navigazione, ma il link normale l’ho messo a parte.
    • Poi, di nuovo il problema dei collegamenti senza titolo, e anche in questo caso il CSS sarebbe stato sufficiente, ma, visto che ormai c’ero già, ne ho approfittato e modificato proprio l’HTML…
  • E in tutto questo, la pagina indice delle serie usa in ogni caso il suo template e per ora quindi non c’è neanche un rimando alla home. Forse posso modificare il template senza rompere gli aggiornamenti usando lo stesso metodo dell’altro, però penso non mi sbatterò nemmeno, perché lì onestamente il link è superfluo.

    • Btw, il suo permalink default è /series-toc/, e io l’ho cambiato in /series/ perché è più logico considerando che le serie (sempre di default) stanno sotto /series/<la-serie-qualunque>/… ma ora che ci ripenso, ho scartato l’occasione per cambiare il percorso di tutto in /t-series/ in memoria di un meme che non fa più ridere… dovrei per caso rimediare solo per il funny, o lasciare così? 🕷

Aggiungere gli articoli vecchi alle serie però, e soprattutto alle categorie, come accennavo, è si semplice, ma non facile… è il lavoro cinese di aprire la dashboard con la lista di tutte le centinaia di post, e scorrere, a volte cercando cose che già ho in mente e altre seguendo il flusso, vedendo se qualcosa attira la mia attenzione. A quel punto a volte mi basta guardare l’anteprima, altre però è troppo corta e devo aprire decine di nuove schede per rendermi conto se il contenuto è quello che penso, per capire cosa selezionare. Almeno, unica cosa buona, selezionando gli elementi su questa schermata posso aggiungerli in blocco al gruppo che mi interessa, altrimenti non immagino la sofferenza di andare uno ad uno… 🙏 (questa cosa btw non è inclusa nemmeno in molti #software di note più personali, stavolta Worpres vince)

https://octospacc.altervista.org/2024/04/12/octtseries/

#articoli #plugin #post #serie #sito #software #tassonomia #template #WordPress

iamdtms, to security
@iamdtms@mas.to avatar
mereteresa, to opensource French
@mereteresa@mastodon.tetaneutral.net avatar

Je découvre que quelqu'un a créer un calendrier annuel qui remplit une page de papier. Cela s'oriente selon Portrait/Paysage et s'adapte au format ( A4 ou autre)

https://github.com/neatnik/calendar

Desmoric,
@Desmoric@mastodon.zaclys.com avatar
angrox, to Meme
@angrox@chaos.social avatar

This is too good not to be shared (h/t memes@lemmy.world ):

Historical representation of the 'unfaithful boyfriend' meme!
#meme #template

hpkomic, to Notion
@hpkomic@horrorhub.club avatar

My latest article for discusses making character information templates in and CharacterHub to build OC profiles.

https://characterhub.com/blog/character-resources/notion-character-template

tomarciamae, to lightroom
MickaelCanouil, to typst
@MickaelCanouil@fosstodon.org avatar

Here is a small Quarto extension using Typst to generate invoices as PDF.

It's pretty simple to use and configure. (You need Quarto 1.4 https://quarto.org/docs/prerelease/1.4/typst.html)

https://github.com/mcanouil/quarto-invoice

Side note: if you do not know Typst (https://typst.app/), you should really take a look. It's a bit like LaTeX but without headaches.

iamdtms, to random
@iamdtms@mas.to avatar
ramenos, to webdev French
@ramenos@framapiaf.org avatar

You are looking for a minimalist clean simple HTML template?

This one looks great, I like a lot the approach of its author.

"This website is a single HTML file. It simply uses the #anchor suffix (from 1992) and the :target CSS selector to show and hide pages/content.

This setup is databaseless, javascriptless, and buildshit-free, so you can edit your website with a text editor and upload it somewhere like a normal person."

https://john-doe.neocities.org/

#HTML #template #minimalist #css

danjac, to django
@danjac@masto.ai avatar

Handling #Django messages with #alpinejs and #htmx

  1. For normal page rendering, we just render the messages in an include in the base template.
    https://codeberg.org/danjac/radiofeed-app/src/branch/main/templates/_messages.html

  2. For HTMX requests, the snippet is injected into the response with some middleware, using the hx-swap-oob tag.

https://codeberg.org/danjac/radiofeed-app/src/branch/main/radiofeed/middleware.py#L35

  1. AlpineJS uses x-show and x-transition tags to fade out the messages once they are displayed.
robertmx,

@danjac

In my never ending quest to keep it simple, I usually take advantage of the fact that you can pass a variable to the extends template tag.
Thus for #htmx requests I simply have an empty in-memory base #template, resulting in just the snippet being rendered, while the default includes the full base template.
Thus I get something like template partials without any plugins / extensions / middlewares. Might not be better but a possible solution.

#django #python

teachpaperless, to ukteachers

This is such a cool and simple yet brilliant little template!

Thermometer Goal Setting Template

#edtech #education #template #googlespreadsheet #google #googleworkspace

https://alicekeeler.com/2023/11/07/thermometer-goal-setting-template/

michaelaye, to python
@michaelaye@mastodon.online avatar

Why would this #cookiecutter #Python #template need my #Github password? I never saw a cookiecutter template needing my password before. Hacked? https://github.com/digimach/cookiecutter-python-package

jimmac, to pixelart
@jimmac@mastodon.social avatar

New XDG Desktop portal website just landed!

https://flatpak.github.io/xdg-desktop-portal/

-component-website

JF, to random
@JF@mastodon.codingfield.com avatar

Since we delivered the new weather 🌤️ feature in , some users noticed that their would crash after a few hours.

We figured that those crashes were caused by a memory overflow : InfiniTime stores too many weather events in memory!

https://github.com/InfiniTimeOrg/InfiniTime/pull/1822#issuecomment-1712842416

Let's fix this!

JF,
@JF@mastodon.codingfield.com avatar

Then let's refactor and improve the weather service : create weather events in dedicated functions and write a #template function (and multiple specializations) to handle the QCBOR deserialization.

image/png

maartenballiauw, to dotnet
@maartenballiauw@mastodon.online avatar

Was going through some older videos on my hard drive and found this unofficial commercial I recorded years ago 😅

Was bored in between recording screencasts and needed something else. I recall being inspired by something else, but can't remember.

video/mp4

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
juanan, to random

Nuclei Templates AI Generator
https://templates.nuclei.sh

Nuclei Template Editor - AI-powered hub to create, debug, scan, and store templates. Covering a wide array of vulnerabilities using public templates & rich CVE data.

📝 Note:
Current focus is HTTP, more protocols coming soon

🌐 Docs:
https://docs.nuclei.sh/editor

#nuclei #template #generator

video/mp4

basxto, (edited ) to ich_iel in ich🖼️iel
@basxto@discuss.tchncs.de avatar

Z und ersten N von Hurensohn gefixt, den Abstand bei „ein“ auch. Und noch irgendwas dazwischengepackt damit die Flagge nicht so schnurgerade verläuft.

Jetzt mit Vertikal/Horizontal: 0

canvas.toast.ooo/#template=https%3A%2F%2Fbasxto.d…

https://basxto.de/leinwand.png

terjefjelde, to random
@terjefjelde@mastodon.social avatar

Another #musicProduction note. Apologies to non-musicians – done soon!

This year I finally settled on a routing #template that fits my workflow, and it really saves a bunchload of time.

The gist of it for non-orchestral: Three room verbs, three plates, and three halls with close, medium and far settings – then a duplicate set of those with chorus, and a bass bus.

7 drum channels that go to a drum bus. 4 Delay sends: 1/4, 1/8, 1/16 and Ping Pong.

All go to analog tape or clean pre-master.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • Durango
  • megavids
  • InstantRegret
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • lostlight
  • All magazines