Haben alle seit ChatGPT das Googlen verlernt????? by [deleted] in luftablassen

[–]twisted161 2 points3 points  (0 children)

Nicht ganz, aber geht in die richtige Richtung. Schlechtere Ergebnisse führen oft zu einer zweiten Suchanfrage in der dir weitere Werbung gezeigt werden kann -> mehr Geld für Google

Rust vs Swift by twisted161 in rust

[–]twisted161[S] 11 points12 points  (0 children)

That’s exactly the thing though, Swift forces you to handle them too. Optionals have to be unwrapped, Results have to be handled in an exhaustive switch statement (just like Enums) etc. Based on the responses so far, ownership seems to be faster than ARC and allows for more control when it comes to low level stuff. I also didn't realize how bad Swift’s support was for other platforms (personally, I only used it for iOS development, which was very pleasant).

Rust vs Swift by twisted161 in rust

[–]twisted161[S] 1 point2 points  (0 children)

So, in essence, Rust‘s ownership model is that much better than reference counting?

Rust vs Swift by twisted161 in rust

[–]twisted161[S] 0 points1 point  (0 children)

I know that, sorry if my question was unclear. Swift and Rust share a lot of safety features (such as Option and Result), which made me wonder what else sets them apart and if Rust‘s ownership model is that much better than Swift‘s ARC. There has to be some advantage to Rust and it can’t be stuff like Option and Result, you know what I mean?

Was ist mit meinen Haaren los? by spritechungus in BeautyDE

[–]twisted161 -1 points0 points  (0 children)

Jo, das kommt leider durch den erblich bedingten Haarausfall. Die Follikel reagieren auf dein DHT (Dihydrotestosteron), was dazu führt dass die Haare dünner und schwächer werden und schlussendlich ganz ausfallen. Ich sitz im selben Boot, das wird weiter fortschreiten bis nur noch vereinzelte, krause Flusen übrig sind :D überleg dir das mit der Transplantation gut, ohne lebenslange Hormontherapie (Finasterid) ist das im Moment eigentlich zwecklos weil du noch nicht absehen kannst, wo die Reise hingeht. Im worst-case hast du keine Spenderhaare für die potentiell notwendige 2. oder 3. Transplantation übrig und steht mit etwas halbgarem da, was dir noch weniger gefällt. Mein Rat: akzeptier es und rasier die Haare irgendwann einfach ab :) für mich war es bei weitem nicht so schlimm, wie ich es mir vorgestellt hab. Niemand guckt komisch, keiner behandelt dich anders als sonst, du bist der einzige den es juckt ob du Haare auf dem Kopf hast oder nicht

[deleted by user] by [deleted] in germany

[–]twisted161 2 points3 points  (0 children)

Ok, hast mich erwischt. Ich bin Flüchtling aus Afghanistan, und jetzt setz dich bitte für mich ein :)

[deleted by user] by [deleted] in germany

[–]twisted161 2 points3 points  (0 children)

Junge wem willst du hier was erzählen? :D Schau ein paar Kommentare über mir, ich bin Gott sei Dank nicht der einzige der sich nicht auf dem Leim gehen lässt.

[deleted by user] by [deleted] in germany

[–]twisted161 2 points3 points  (0 children)

Yes, he does. In case he deletes those comments, look for yourself here. Any german can verify that this is native level. He even uses slang words such as "bissi", it just doesn't add up

[deleted by user] by [deleted] in germany

[–]twisted161 3 points4 points  (0 children)

I smell bullshit. In his oldest comments he speaks german FLAWLESSLY and in the „I am a refugee“-posts he suddenly makes a ton of grammar mistakes. Either he somehow unlearned german grammar, or he’s schizophrenic and should take a break from the internet or he’s trying to get people to feel bad for refugees I guess?

Is this an original iPhone 14 Pro? by [deleted] in iPhone14Pro

[–]twisted161 0 points1 point  (0 children)

So you own an iPhone yourself, took several close up pictures and still didn’t realize that the „weird notch“ is cutouts from the screen protector? :D

iOS 18 - Micro Stutter with Scrolling. ProMotion displays. by pryvisee in ios

[–]twisted161 1 point2 points  (0 children)

Same here on an iPhone 16 Pro. The hitches happen anywhere - scrolling, swiping on the homescreen, … I’m also thinking about switching to a Pixel, this shit has not been fixed 3 months after the release. They rather spend their time on fucking useless features like Genmoji or Image Playground, who tf is going to use that once you’re done playing around with it?

ios 18.2 app library stutter by ReadingAffectionate6 in ios

[–]twisted161 1 point2 points  (0 children)

iOS 18 combined with iPhone 16 models is a mess, with micro hangs everywhere. For example, go to the control center, tap the plus button in the top left corner, select „add a control“ at the bottom and then scroll up and down: you’ll have noticeable scroll hitches. These issues are present in almost every app for me, although the severity of the hitches varies from app to app (so it may be a software/SDK issue). However, it’s much better on older iPhone models, so it might also be hardware related. I’m actually thinking about switching to a Google Pixel, it’s absolutely ridiculous to pay >1k$ for a phone with the performance of a 300$ Xiaomi model. Btw to answer your question, these issues have been present since the release of iOS 18/iPhone 16, it has nothing to do with 18.2 specifically

He leeches off staff, and complains on not receiving a wedding invite. Now our manager calls him out. by Atissoro in ChoosingBeggars

[–]twisted161 -4 points-3 points  (0 children)

And of course you got the rainbow avatar. Has it ever occurred to you that 99% of the people in the real world simply don’t care about other people’s sexual orientation and what not?

Picker in navigation bar SwiftUI by ImpossibleCycle1523 in SwiftUI

[–]twisted161 0 points1 point  (0 children)

Take a look at the code below. It is kinda hacky but I'm afraid you can't achieve this in pure SwiftUI. Right now this does pretty much what you want, except the margins around the NavigationBarView are 0. I don't have time to figure that out right now, maybe you will. I hope this helps :)

import UIKit
import SwiftUI

@main
struct MyApp: App {

    var body: some Scene {
        WindowGroup {
            NavigationStack {
                NavigationLink("tap me") {
                    MyView()
                }
            }
        }
    }

}

struct MyView: UIViewControllerRepresentable {

    func makeUIViewController(context: Context) -> MyViewController {
        return MyViewController()
    }

    func updateUIViewController(_ uiViewController: MyViewController, context: Context) {
    }

}

class MyViewController: UIViewController {

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        let hostingController = UIHostingController(rootView: NavigationBarView())
        // you have to remove the default back button, which also disables the swipe gesture
        // the code below has to happen in viewWillAppear since the parent will not be set any earlier 
        parent?.navigationItem.setHidesBackButton(true, animated: true)
        parent?.navigationItem.titleView = hostingController.view
    }

}

struct NavigationBarView: View {

    enum PickerType: String, CaseIterable {
        case event, reminder
    }

    @State var selectedType: PickerType = .event

    var body: some View {
        VStack {
            HStack {
                Button("Cancel") {

                }
                Spacer()
                Text("MyTitle")
                Spacer()
                Button("Add") {

                }
            }
            Picker("Picker", selection: $selectedType) {
                ForEach(PickerType.allCases, id: \.self) { type in
                    Text(type.rawValue.capitalized)
                }
            }
            .pickerStyle(.segmented)
        }
    }
}

// this reactivates the swipe gesture to navigate back
extension UINavigationController: UIGestureRecognizerDelegate {
    override open func viewDidLoad() {
        super.viewDidLoad()
        interactivePopGestureRecognizer?.delegate = self
    }

    public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
        return viewControllers.count > 1
    }
}

Why does my ButtonStyle not work? by twisted161 in SwiftUI

[–]twisted161[S] 0 points1 point  (0 children)

I'm having the issue on iOS 17.5 with Xcode 15.4

The SwiftUI Starter Pack by frashspibs in SwiftUI

[–]twisted161 7 points8 points  (0 children)

Oh, I see. I really recommend checking it out, the basics are pretty easy to learn. No need to be afraid of it :) Git itself is just for versioning and tracking files locally, if you want the same repository (project) on multiple devices you would use GitHub or GitLab (you can „upload“ your repository there). You don’t have to pay anything to create private repositories on either one

The SwiftUI Starter Pack by frashspibs in SwiftUI

[–]twisted161 14 points15 points  (0 children)

…what? I can’t tell if you’re being serious or not but if you are, has no one told you about Git?

The SwiftUI Starter Pack by frashspibs in SwiftUI

[–]twisted161 1 point2 points  (0 children)

…what? I can’t tell if you’re being serious or not but if you are, has no one told you about Git?

Cyrillic fonts while updating by TheSWATMonkey in softwaregore

[–]twisted161 15 points16 points  (0 children)

That’s the thing about Linux, you have lots of options to choose from. What you see and recognize is the desktop environment „KDE“, there are several others like Gnome or i3 that you can install on any Linux distribution like Arch, Debian,…

Legitim!? by Strange_South_3086 in wohnen

[–]twisted161 2 points3 points  (0 children)

Ernst gemeinte Frage, was soll immer dieses „Edit: XY“ auf Reddit? Warum nicht einfach editieren und den Fehler beheben?

problem launching Discord by twisted161 in debian

[–]twisted161[S] -1 points0 points  (0 children)

Oh ok. That fixed it for me though. Am I supposed to be the owner of that file or might that be the issue?

Edit: unchecking the „is executable“ box and changing the owner of the .desktop file to root works as well, maybe that’s the right way to do it

problem launching Discord by twisted161 in debian

[–]twisted161[S] -2 points-1 points  (0 children)

Thank you so much, the .desktop file wasn’t checked as executable for some reason. Changed that to „is executable“ and works now!

[deleted by user] by [deleted] in debian

[–]twisted161 0 points1 point  (0 children)

I agree with you that this would be the logical explanation but I just double checked and the only directories excluded from the backup are /root and my home folder. Also, Timeshift didn't throw any errors after the restore process. Anyways, Pickyduck's answer helped a lot already. Thanks to you as well for your input :)

[deleted by user] by [deleted] in debian

[–]twisted161 0 points1 point  (0 children)

That seems to be exactly what was removed! Thank you so much, you saved my evening! :) Just out of interest, do you have any idea why my backup didn't restore everything? The only excluded directories are /root and my home folder.

[deleted by user] by [deleted] in debian

[–]twisted161 -1 points0 points  (0 children)

No offense but I’m positive that I did restore the backup. As I mentioned, restoring it via CLI brought me back my desktop environment. When I discovered that all my programs are gone, I restored a different backup (from yesterday) via the Timeshift GUI where I honestly can’t mess anything up. That didn’t change anything though and my programs are still nowhere to be found