A whole library which was meant to to 10 things, but you only use one. And that for x libraries
chraebsli
IT enthusiast & web developer from Switzerland
- 8 Posts
- 20 Comments
chraebsli@programming.devOPto
Programming@programming.dev•I just spent 6 hours of debugging some code, just to find out I had to delete a line in a .gitkeep file
1·1 year agoHey thanks for the comment!
The plugins don’t get maintained by me, they’re getting maintained by the Grav team. I’m not very good in PHP too.
I plan to create an issue on GitHub if I know more and probably identified the code causing the problem.
chraebsli@programming.devOPto
Programming@programming.dev•I just spent 6 hours of debugging some code, just to find out I had to delete a line in a .gitkeep file
1·1 year agoEvery shortcode is a PHP class and looks like this:
<?php namespace Grav\Plugin\Shortcodes; use Grav\Common\Utils; use Thunder\Shortcode\Shortcode\ShortcodeInterface; class ClearBothShortcode extends Shortcode { public function init() { $this->shortcode->getHandlers()->add('clearboth', function (ShortcodeInterface $sc) { // Get shortcode content and parameters $str = $sc->getContent(); $output = '<div style="clear: both;"></div>'; return $output; }); } }with that, it should be possible to only call these classes.
I’d just import it as
TwitterIcon
chraebsli@programming.devOPto
Linux@lemmy.ml•Which Linux distro for beginners (with requirements)
1·1 year agoShe doesn’t have much money for a new laptop and since she won’t use it often, it’s enough to check mail, e-banking, … And we have some old laptops at home nobody uses, so we thought we could give it to her as a gift.
Eventually, she’ll buy a new ~400$ laptop later with some good specs, but that’s not in the upcoming months. But thanks for the help.
chraebsli@programming.devOPto
Linux@lemmy.ml•Which Linux distro for beginners (with requirements)
9·1 year agoYeah, it’s an old laptop. She doesn’t have much money for a new laptop and since she won’t use it often, it’s enough to check mail, e-banking, … And we have some old laptops at home nobody uses, so we thought we could give it to her as a gift.
Eventually, she’ll buy a new ~400$ laptop later with some good specs but that’s not in the next few months. But thanks for the tips.
chraebsli@programming.devOPto
Linux@lemmy.ml•Which Linux distro for beginners (with requirements)
4·1 year agoWow… thanks for this detailed info & guide! I’ll probably use the HP laptop with Mint Cinnamon, cause I don’t like that old retro look of xfce. A friend told me to try Lubuntu too, so let’s see.
I didn’t know about that Chrome/ Firefox performance “issue” on old laptops, so thank you! Isn’t there a way to disable flatpak at all? Thought on my Manjaro I could disable it, so eventually there is an option there too. OnlyOffice and uBlock were my guesses too. I’ll probably set up NextDNS and KDE Connect too.
chraebsli@programming.devOPto
Programmer Humor@programming.dev•Stop comparing programming languages
2·2 years agoActual definitions (my opinion):
- HTML is website
- CSS is style
- JS is everywhere
- SQL is data
- Python is simple
- PHP is backend
- Markdown is README
- YAML is config
chraebsli@programming.devOPto
Programmer Humor@programming.dev•Stop comparing programming languages
1561·2 years ago- PHP is old
- HTML is NOT A PROGRAMMING LANGUAGE!!!
- CSS is
︎ ︎ ︎ not alig-
︎ ︎ ︎ ned
my laptop probably has very similar specs to your laptop. also, windows just uses more computing resources than linux in general.
i dont care about if its few seconds faster at booting or has few percents more resources availabe after hours of configuring.
all i need for my apprenticeship is just a windows laptop to work with office365 and a few specific apps, which dont need full resources. but it has to be windows because of domain policy from ADDS.
my apprentice will end in a few weeks and since i wont need these apps anymore tomorrow in a week, ill delete the windows partitions from my laptop.
id appreciate you helping me and others with articles how to get a bit faster windows system, if id asked for it, but i didnt.
i love that comment😂
my laptop is pretty good, its just windows using much resources. yeah i’d be able to but i only use it like 3h per week for one buggy app. its not worth it
similar here. im still ‘new’ to linux but have to use windows for my apprentice. also my father uses windows. so often i have to click a button multiple times, ads, or window not responding, ads, sometimes its slow af. did I already mention ads?
RIP to people who never shutdown or restart their PCs
chraebsli@programming.devto
Fediverse@lemmy.world•Does it feel like the fediverse is exclusively used by older tech nerds?English
2·2 years agoas a young IT with friends who dont know much about IT i have to say that most around 20 use reddit, instagram, … cause its the only thing they know. everyone they know uses them and many of them want likes, …
if they would join the fediverse:
- they wouldnt understand how it works. what is a server? why choose an instance? its just too complicated
- all their friends dont use the fediverse. they would be alone and have nobody who they can share things to
- they would mostly see tech stuff and less in categories they are interested in
- none of the people they follow on instagram are here. the cant follow their celebrities, … and see their content
- the fediverse still has to less users to be successful worldwide. its growing. and just like facebook in its first years, its growing slow.
=> give it a few more years and get your friends, family & collegues on here and see the fediverse grow
less really is more with more features. and more IS less with less features
I dont like Instagram at all, just all my friends are over there. And I hope some of them join here soon.
Yeah… todays social media is more a commercial ad platform than social media.
the fediverse is the new ‘futuristic’ social media since its main goal is to connect people and make social media more social
Glad you like it!


$ sudo walk north