[-] squaresinger@feddit.de 79 points 1 year ago

Sure the designers of this monstrosity thought, "There are only black people living there, so it's a win-win" -.-

[-] squaresinger@feddit.de 77 points 1 year ago

I recently had to work with XSLT (may it's inventor burn in hell for their crimes).

That's pretty much programming in XML. It's probably the worst possible thing.

[-] squaresinger@feddit.de 75 points 1 year ago* (last edited 1 year ago)

Interesting how they went for an IoT SoC (Qualcomm QCM 6490), instead for an SoC that's actually meant for usage in phones.

They probably did this to be able to get longer Android updates. As a side effect, that means it natively supports desktop Ubuntu and Windows 11 IoT Enterprise.

On the other hand, this is pretty much the only phone using this SoC. (There are three models by a totally unknown brand from India that use the same SoC.)

It's going to be interesting to see whether that's an advantage or a disadvantage.

[-] squaresinger@feddit.de 69 points 1 year ago

A typo that was translated in kind.

In English it says [Fir], which obviously is a typo, but in German it was translated to [Tanne] which means "fir tree".

While the English version is close to the real thing ([Fr]) and thus could slip through if you are careful, there is no way any decent translator wouldn't ask for confirmation when they are translating "Mon, Tue, Wed, Thu, Fir tree, Sat"

[-] squaresinger@feddit.de 79 points 1 year ago

I love that story! I tell it every time someone tries to sell me on anarchism.

Christiana was an old military complex that the government gave up on, so anarchist squatters moved in.

Soon they realized, that they needed some way to decide matters that concerned everyone. So they formed small councils, and in these councils they each chose some people to represent them in one big council. These people weren't elected politicians, just people chosen to represent them. They then voted on issues, and no, that wasn't a form of democracy. It's still anarchism.

Then then realized, that the upkeep of common areas and infrastructure costs money, so they required that everyone paid their share. That obviously weren't taxes. Just mandatory contributions.

When organized crime started to spread, they decided on some mandatory rules (you read right: these weren't laws, just mandatory rules that you had to keep if you didn't want to face punishment). Then they chose some strong men that should make sure the rules were followed. No, not police men. Just concerned strong men.

They worked together with Kopenhagen's police. Basically, they'd call the cops and then drag the offenders outside of Christiania to the waiting cops.

Part of the rules were that it wasn't allowed to consume hard drugs or to wear motor cycle gang attire.

So in the end, they had no politicians, no government, no taxes and no police force. Just things that where basically identical to these things. The only thing they really don't have is a prison, because they outsourced that to Kopenhagen.

Anarchism directly leads to a form of government, no matter how you call it.

If you want an opposite example, how anarchism lead to an anarcho-capitalistic nightmare, where the community decended into a rule by organized crime, google the Kowloon Walled City. It's equally interesting.

[-] squaresinger@feddit.de 71 points 1 year ago

In the full email he goes on to tell the engineer what a micron is.

I guess, he just read that word somewhere and now feels cool that he knows it.

It would be cute if he was a junior manager, but this way it's just sad.

[-] squaresinger@feddit.de 64 points 1 year ago

If there only was an easy way of understanding what employees wanted... But alas, since there isn't, forcing people to do something and then measuring how many of them resign seems to be the best way to figure it out.

[-] squaresinger@feddit.de 71 points 1 year ago

The problem is discoverability. And that's where I don't get why anyone in their right mind would use Discord for stuff like that.

Say, you have Github, a forum or even a subreddit for your project.

Somebody asks a question, you answer it.

Somebody else has the same question. Either they are intelligent enough to find it themselves or they ask and you just link your old answer. Done.

On Discord, it's basically impossible to find an answer that is more than two screens full of posts ago. So you have to keep answering the very same questions all the time.

[-] squaresinger@feddit.de 73 points 1 year ago

Well, if you ask e.g. ChatGPT for the lyrics to a song or page after page of a book, and it spits them out 1:1 correct, you could assume that it must have had access to the original.

[-] squaresinger@feddit.de 74 points 1 year ago* (last edited 1 year ago)

WIll this also affect all other .ml domains? Or is this some anti-piracy thing? (I don't know fmhy, but from the name I guess it's about piracy.)

[-] squaresinger@feddit.de 68 points 1 year ago

As evidenced by the brief moment in history when Netflix was all that and it drove video piracy all but to extinction.

[-] squaresinger@feddit.de 64 points 1 year ago

So they are literally forced labour camps? How can anyone in the US still complain about Russia? (Just as a disclaimer, this is not a defence of Russia. I think the conditions there are terrible, but the US doesn't seem far behind, if at all)

1
submitted 1 year ago by squaresinger@feddit.de to c/android@lemmy.ml

geteilt von: https://feddit.de/post/1591834

It's all free (if you make it yourself) and open source.

https://github.com/Dakkaron/Fairberry

199

It's all free (if you make it yourself) and open source.

https://github.com/Dakkaron/Fairberry

90
submitted 1 year ago by squaresinger@feddit.de to c/memes@lemmy.ml
2

Crossgeposted von: https://feddit.de/post/1185964

Please excuse my sub-par JavaScript, I am a backend dev.

All you need to do is paste this into Tampermonkey and enter your username and your instance url (on two locations).

This is not showing other users' scores and it doesn't make your score visible to anyone else than yourself.

So no need for karma farming. This is just for fun.

// ==UserScript==
// @name         Lemmy score
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Shows your total post/comment score at the top right.
// @author       You
// @match        ENTER INSTANCE URL HERE (leave the asterisk after the URL)*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=feddit.de
// @grant        none
// @run-at       document-idle
// ==/UserScript==

(function() {
    'use strict';

    var USERNAME = "ENTER USERNAME HERE";
    var INSTANCE_URL = "ENTER INSTANCE URL HERE";

    var totalScore = 0;
    var currentPage = 1;

    function postResult() {
        var navbar = document.getElementsByClassName("collapse navbar-collapse")[0];
        console.log(navbar);
        var ul = document.createElement("ul");
        ul.className = "navbar-nav";
        ul.id = "karma-ul";
        var li = document.createElement("li");
        li.id = "karma-li";
        li.className = "nav-item";
        li.innerHTML = '<div id="karma-div">' + totalScore + '</div>'
        navbar.appendChild(ul);
        ul.appendChild(li);
    }
    function callPage() {
        var userRequest = new XMLHttpRequest();
        userRequest.onreadystatechange = function () {
            if (this.readyState == 4) {
                if (this.status == 200 ) {
                    var res = JSON.parse(this.responseText);
                    if (res.posts.length==0 && res.comments.length==0) {
                        postResult();
                    } else {
                        totalScore += res.posts.map(x => x.counts.score).reduce((partialSum, a) => partialSum + a, 0);
                        totalScore += res.comments.map(x => x.counts.score).reduce((partialSum, a) => partialSum + a, 0);
                        currentPage++;
                        callPage();
                    }
                }
            }
        }
        userRequest.open("GET", INSTANCE_URL + "/api/v3/user?username=" + USERNAME + "&limit=50&page=" + currentPage, true);
        userRequest.send();
    }

    setTimeout(callPage, 200);
})();

2
Lucky Patcher (feddit.de)

I'm thinking about getting Lucky Patcher. Is it safe? Where is the official place to get it from?

17
submitted 1 year ago* (last edited 1 year ago) by squaresinger@feddit.de to c/technology@beehaw.org

I was frustrated by the lack of decent phones with physical keyboards. The phones that are currently available are hard to buy, crap, expensive, are old, outdated, have bad software support and/or disappointing hardware.

So I decided to design and build one myself.

This is a Fairphone 4 with a DIY, open source keyboard attachment. It uses a spare Blackberry Q10 keyboard and a custom, self designed Arduino-compatible mainboard, which translates the keyboard matrix to regular USB HID.

This means, it works on any phone without the need of any software modification at all. If the phone can handle a USB keyboard, it can handle this one.

All that's necessary to make it compatible to any other phone is to adjust the case to fit that phone.

(And yes, that's XFCE running on Ubuntu in a chroot jail.)

14
submitted 1 year ago* (last edited 1 year ago) by squaresinger@feddit.de to c/technology@beehaw.org

Please excuse my sub-par JavaScript, I am a backend dev.

All you need to do is paste this into Tampermonkey and enter your username and your instance url (on two locations).

This is not showing other users' scores and it doesn't make your score visible to anyone else than yourself.

So no need for karma farming. This is just for fun.

// ==UserScript==
// @name         Lemmy score
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Shows your total post/comment score at the top right.
// @author       You
// @match        ENTER INSTANCE URL HERE (leave the asterisk after the URL)*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=feddit.de
// @grant        none
// @run-at       document-idle
// ==/UserScript==

(function() {
    'use strict';

    var USERNAME = "ENTER USERNAME HERE";
    var INSTANCE_URL = "ENTER INSTANCE URL HERE";

    var totalScore = 0;
    var currentPage = 1;

    function postResult() {
        var navbar = document.getElementsByClassName("collapse navbar-collapse")[0];
        console.log(navbar);
        var ul = document.createElement("ul");
        ul.className = "navbar-nav";
        ul.id = "karma-ul";
        var li = document.createElement("li");
        li.id = "karma-li";
        li.className = "nav-item";
        li.innerHTML = '<div id="karma-div">' + totalScore + '</div>'
        navbar.appendChild(ul);
        ul.appendChild(li);
    }
    function callPage() {
        var userRequest = new XMLHttpRequest();
        userRequest.onreadystatechange = function () {
            if (this.readyState == 4) {
                if (this.status == 200 ) {
                    var res = JSON.parse(this.responseText);
                    if (res.posts.length==0 && res.comments.length==0) {
                        postResult();
                    } else {
                        totalScore += res.posts.map(x => x.counts.score).reduce((partialSum, a) => partialSum + a, 0);
                        totalScore += res.comments.map(x => x.counts.score).reduce((partialSum, a) => partialSum + a, 0);
                        currentPage++;
                        callPage();
                    }
                }
            }
        }
        userRequest.open("GET", INSTANCE_URL + "/api/v3/user?username=" + USERNAME + "&limit=50&page=" + currentPage, true);
        userRequest.send();
    }

    setTimeout(callPage, 200);
})();
6
submitted 1 year ago* (last edited 1 year ago) by squaresinger@feddit.de to c/technology@beehaw.org

Just save this as karma.py and run it with Python 3.6 or higher.

import requests
import math

INSTANCE_URL = "https://feddit.de"
TARGET_USER = "ENTER_YOUR_USERNAME_HERE"

LIMIT_PER_PAGE = 50

res = requests.get(f"{INSTANCE_URL}/api/v3/user?username={TARGET_USER}&limit={LIMIT_PER_PAGE}").json()

totalPostScore = 0
totalCommentScore = 0
page = 1
while len(res["posts"])+len(res["comments"]) > 0:
	totalPostScore += sum([ x["counts"]["score"] for x in res["posts"] ])
	totalCommentScore += sum([ x["counts"]["score"] for x in res["comments"] ])
	
	page += 1
	res = requests.get(f"{INSTANCE_URL}/api/v3/user?username={TARGET_USER}&limit={LIMIT_PER_PAGE}&page={page}").json()

print("Post karma:    ", totalPostScore)
print("Comment karma: ", totalCommentScore)
print("Total karma:   ", totalPostScore+totalCommentScore)
59

With all these new options springing up, I'm a little outdated. What's the best app to use right now?

99
submitted 1 year ago* (last edited 1 year ago) by squaresinger@feddit.de to c/technology@beehaw.org

There are lots of articles about bad use cases of ChatGPT that Google already provided for decades.

Want to get bad medical advice for the weird pain in your belly? Google can tell you it's cancer, no problem.

Do you want to know how to make drugs without a lab? Google even gives you links to stores where you can buy the materials for it.

Want some racism/misogyny/other evil content? Google is your ever helpful friend and garbage dump.

What's the difference apart from ChatGPT's inability to link to existing sources?

Edit: Just to clear things up. This post is specifically not about the new use cases that come from AI. Sure, Google cannot make semi-non-functional mini programs automatically, and Google will not write a fake paper in whole for me. I am specifically talking about the "This will change the world" articles, that mirror stuff that Google can do exactly like ChatGPT can.

6
submitted 1 year ago* (last edited 1 year ago) by squaresinger@feddit.de to c/nostupidquestions@lemmy.world

Related to the question about whether facial expressions are universal.

Are there words/verbal expressions/sounds that exist in every language and have the same meaning in every language?

(I'd also count words that are very similar.)

One example, that I believe is universal is M followed by a vowel followed by another M and optionally another vowel, meaning "Mother".

At least in any language I know, this seems to hold true (mom, Mama, mamma, Mami, ...).

Any other examples?

Edit: To clarify, I am not looking for very popular words that have been imported into most languages (like how almost everyone worldwide knows what Ketchup is), but about words that are "native" to humans. So if you pick someone from an uncontacted native tribe and tell them nothing, they would be able to understand/use that word/sound/verbal expression.

22

Say I want to link to community x on instance y.org. How do I post this so that someone from instance z.org will end up at z.com/c/x@y.org, but someone from a.org ends up on a.com/c/x@y.org?

view more: ‹ prev next ›

squaresinger

joined 1 year ago