chraebsli

joined 1 year ago
[–] [email protected] 2 points 6 days ago

as a swiss german (we capitalize nouns for those who don't know), I sometimes automatically capitalize nouns when writing in english, especially when I just wrote something in german. Its a habit and at least for me, its really hard to prevent me doing it.

Same is for when I wrote mucn in english before, then writing something in german. Then everything is in lowercase.

[–] [email protected] 2 points 6 days ago

Ohh that was a good one. best one I think.

Same as having a good backup strategy but didn't try to restore once.

[–] [email protected] 1 points 3 weeks ago

there are everywhere and everytime excaptios
and yeah like instagram and whatsapp. every update makes the app worse. google assistant too

[–] [email protected] 1 points 3 weeks ago

i already using many alternatives for myself. but for work and hobbies, i still need some of those google apps or social media platforms

[–] [email protected] 1 points 3 weeks ago

it depends about which applications they are and how securitx affined you are. but as a normal user for most apps this is ok

[–] [email protected] 1 points 3 weeks ago (2 children)

I dont really use critical apps on my phone and on some important apps, i cant use them until I update them. So theres not a big risk or danger for not updating them. still there are some apps i update often but for the big all, twice a year must be enough

 

How often do you update your apps on your devices?

me:

  • android: 2x per year, except some app needs an update to work
  • linux/manjaro: every few months, except security stuff (ik its a rolling release distro but I hate updating frequently)

A while ago I updated mostly directly after publish. But since more and more apps (primarily Google services, Social Media, ...) get shitty updates which include AI and bloat, I try to update as less as possible while stil trying to get important and new features.
But many apps freak out when not applying these updates in this timespan, which makes it really annoying when needing an app urgently. Then having to update them with eventually bad network makes me aggressive.

Which are your opinions?

 
  • 200 OK: Life's fine, but let's be honest, it's probably a cached response.
  • 202 Accepted: I heard your idea. Will I do anything with it? Probably not.
  • 204 No Content: The perfect reply when you emotionally check out mid-conversation.
  • 401 Unauthorized: When life keeps asking 'Who even are you?' and you forgot your credentials.
  • 403 Forbidden: Some dreams are just blocked by permissions you'll never have.
  • 418 I'm a Teapot: Some days, I'm just not built to handle your requests.
  • 429 Too Many Requests: Chill, life's rate limit isn't as high as your expectations.
  • 500 Internal Server Error: When you realize your life decisions don't compile, and panic mode kicks in.
  • 502 Bad Gateway: When your thoughts try to connect to logic, but something goes horribly wrong
  • 503 Service Unavailable: My motivation right now is in scheduled maintenance-try again later.

PATCH vs. PUT: Can't decide if I should make subtle changes or just rewrite my entire existence.
Connection Timeout: Sorry, I lost interest before the handshake even started.


Found on Instagram: https://www.instagram.com/p/DBgjeIhTSLh/

[–] [email protected] 2 points 1 month ago

1st of april

[–] [email protected] 1 points 1 month ago (1 children)

Hey 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.

[–] [email protected] 1 points 1 month ago (3 children)

Every 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 just spent 6 hours of debugging some code, just to find out I had to delete a line in a .gitkeep file:

I'm developing a Grav skeleton, which is a kind of template for Grav CMS to easily create sites with it. Such skeletons can include themes and plugins, which can be used to enhance its features and make individual sites.

Now I had this error that the sitemap.xml (used to tell search engines which pages should be indexed and where to find them) threw an error because the XML declaration wasn't on the first line as it should, but on the 2nd line. It came out that every page had this empty line, no matter if html, json or xml.
To find the bug causing this, I first disabled all plugins and enabled them step by step to find out which one produces said bug. It was the shortcode-core plugin, which can be used to style text with more than just markdown. Since this plugin isn't related in any way to the sitemap plugin, I searched for other possible error sources.
After some playing around, I found out that when I remove a theme, the bug simply disappears. With that info, it had to be a problem with said theme. Since themes can include custom shortcodes and the shortcode plugin did make some "noises", I started investigating a bit more with that. While trying to find the bug, I accidentally deleted the shortcode folder, which had only a .gitkeep file in it. This file was necessary that the folder persist with git versioning because if there was no such directory, the plugin would output an error message. I then recreated the folder manually and the error was still gone. Even after recreating the .gitkeep file, there was no empty line in the output.
After trying to find the bug, I checked git to see which edit made the bug resolve. And there was it: the .gitkeep file I recreated had some changes? But I didn't make any changes to the file except for recreating it. Wrong. The file originally had 2 empty lines, probably accidentally. And by recreating the file, it only had one line which resolved the bug.

It came out that somehow the shortcode plugin tried to get shortcodes from this file and likely added the 2 empty lines to the output. And an empty line before the start of the XML declaration causes the XML parser to output an error. Deleting the 2nd empty line from the .gitkeep file removes the empty line from the output and the error is gone. Bug fixed.


And I spent 6 hours today with the help of a kind stranger in a discord channel who was a bit like a 2nd brain to me. It really helped having someone who hasn't worked on this skeleton and could see some bugs you don't see because you're too familiar with it ("Betriebsblind" in German).

Edit: The plugins don't get maintained by me, they're getting maintained by the Grav team. I plan to create an issue on GitHub if I know more and probably identified the code causing the problem.

[–] [email protected] 4 points 1 month ago

didn't know they had this feature all the time😳

[–] [email protected] 11 points 1 month ago (1 children)

I'd just import it as TwitterIcon

[–] [email protected] 1 points 1 month ago (1 children)

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 upcoming months. But thanks for the help.

 

cross-posted from: https://programming.dev/post/19622913

A friend of someone related doesn't have a laptop nowadays, but needs one. Now we have 2 old laptops at home, and we want to give her one so she can do some things on it. Since she isn't used to laptops and the old laptops wouldn't run a Windows 11 (I don't want to install a Win10 because of end of support and lacking security features), I guess installing a simple Linux is fine. Now comes the big question: Which Linux distro should I install? (see requirements below)

Laptops:

  • Acer Aspire ES 15, AMD dual-core E1-7010 @1.5 GHz, 4GB RAM, 1000 GB HDD
  • HP Pavilion 17-e030ez, Intel Pentium @2.4 GHz, 4GB RAM, 10000 GB HDD (I'd choose this)

Tasks:

  • Office Stuff (I thought about OnlyOffice)
  • Internet surfing
  • Banking via Web

Requirements:

  • needs to have full German support
  • needs an easy software installation center
  • should be easy to learn
  • optionally, her friends (which probably use Windows/ Mac) should be able to help her (since she never had a laptop before)
  • eventually German forum/ German Guides

I'm using Linux/ Manjaro for myself but don't have any experience with beginner-friendly distros. I used a KDE neon for some time and also have used Ubuntu, and to be honest, they seem beginner-friendly too.

Please let me know your opinions, thanks!

 

A friend of someone related doesn't have a laptop nowadays, but needs one. Now we have 2 old laptops at home, and we want to give her one so she can do some things on it. Since she isn't used to laptops and the old laptops wouldn't run a Windows 11 (I don't want to install a Win10 because of end of support and lacking security features), I guess installing a simple Linux is fine. Now comes the big question: Which Linux distro should I install? (see requirements below)

Laptops:

  • Acer Aspire ES 15, AMD dual-core E1-7010 @1.5 GHz, 4GB RAM, 1000 GB HDD
  • HP Pavilion 17-e030ez, Intel Pentium @2.4 GHz, 4GB RAM, 10000 GB HDD (I'd choose this)

Tasks:

  • Office Stuff (I thought about OnlyOffice)
  • Internet surfing
  • Banking via Web

Requirements:

  • needs to have full German support
  • needs an easy software installation center
  • should be easy to learn
  • optionally, her friends (which probably use Windows/ Mac) should be able to help her (since she never had a laptop before)
  • eventually German forum/ German Guides

I'm using Linux/ Manjaro for myself but don't have any experience with beginner-friendly distros. I used a KDE neon for some time and also have used Ubuntu, and to be honest, they seem beginner-friendly too.

Please let me know your opinions, thanks!

 

Stop comparing programming languages

  • Python is versatile
  • JavaScript is powerful
  • Ruby is elegant
  • C is essential
  • C++
  • Java is robust
 

I'm searching an android app to mark the locations of multiple parked cars. It should be possible to mark different cars somehow to identify them. It would also be cool if there is a feature to share the location with someone on another devica (like a sync between users, NOT copy of coordinates or link on maps

In other words, I need an app to tag multiple locations on a map. It doesn't require to be designed for parked car locations. The app must have these features:

  • GPS Tracker with map
  • support to tag multiple locations
    • mark them somehow uniquely (like note, category, color, icon, ...) The following features would be nice to have:
  • sync with other devices, for example family
  • history of locations
  • set date/time since location is active (can be timestamp)

I'm ok with paying/ ads or require to self host.

923
Songs about Vim (programming.dev)
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]
 

.

 
 

After i joined the Fediverse, i deleted my accounts on Reddit, Twitter & Facebook a few days later. Yesterday, i deleted TikTok too and i will delete Instagram more or less soon. I hope some friends will change to the Fedi until then.

Ive had enough of all the ads and people just want fame. Make Social Media better!

 
view more: next ›