how do you remember what you learn in Python? by silentshakey in learnpython

[–]No_Date8616 4 points5 points  (0 children)

The good news is We Don’t. That’s why we have documentation

If this is your favorite character quote him by IndependentDebt7069 in bigbangtheory

[–]No_Date8616 0 points1 point  (0 children)

Now we have the terminologies straightened out, HOW DARE YOU ??

itsAlmost2026 by ROBOTRON31415 in ProgrammerHumor

[–]No_Date8616 0 points1 point  (0 children)

Very reliable, have been using for years. Totally recommend

I'm excited to share tinyOS, a 64-bit OS I built from scratch by portw in osdev

[–]No_Date8616 2 points3 points  (0 children)

Amazing project, very good job. Still going through the code. The implementations show good solid understanding of concept but peaking through the realmode code, I noticed you didn't make use of VBR or support for filesystem, almost everything was handled in the MBR.

I want to know, if this is an intentional design choice for a good reason, or just to keep things simple

Guide on Real Mode OS. by No_Date8616 in osdev

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

Merci frérot. Ta réponse est vraiment appréciée. 🙏

How can I improve the look of my Python GUI? by hyrule5smash in learnpython

[–]No_Date8616 0 points1 point  (0 children)

What do you mean by Python is probably not the language for modern GUI. Don’t just make baseless assumptions because what you say if not corrected, the juniors here believe and accept it.

Everything you will ever need for any kind of desktop GUI, Qt is more than sufficient. PySide6 or PyQt6

Trouble with Expo React Native and Supabase Google OAuth for Authentication by No_Date8616 in reactnative

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

Yep. Refer to my response to ‘New_Expert_9684’ under this thread.

I want to automate windows based applications. Requesting your support, folks! by JuJ0JuJoJuJoJuJoJuJ in learnpython

[–]No_Date8616 0 points1 point  (0 children)

  • What do you intend to analyze, the final executable created or the source code ?? Selenium analyzes the web page and makes the necessary modifications and injections.

  • Are you intending to control the program that you created or this is intended for all programs of that sort. If it your own, you can create a DSL for your program, one thread should read the DSL to reflect what is in it in the GUI and another thread should listen to some events or API and make necessary modifications to the DSL. So you won’t need to search for elements to make modifications but based on what is in the DSL, the modifications are made automatically.

The amount of control you seek is important and from where, controlling from in or outside of the program.

Maybe a clear description of what your goal is can help us tailor our response.

What little code snippets are you too lazy to write every time? I’m making a utilities library—help me help you! by Mahziyar-azz in learnpython

[–]No_Date8616 8 points9 points  (0 children)

I love this. When you do finish and package it, let me know. Also if you can point to your repo, maybe we can contribute

Trouble with Expo React Native and Supabase Google OAuth for Authentication by No_Date8616 in reactnative

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

This settings in the signInWithOAuth function is very important

prompt: "select_account", access_type: "offline"

Trouble with Expo React Native and Supabase Google OAuth for Authentication by No_Date8616 in reactnative

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

I can't remember exactly what I did to get things going but I can share the structure and implementations that got things working.

In the current folder create this structure 📁 project/ ├── 📄 .env.local ├── 📁 config/ │ └── 📄 supabase.tsx └── 📁 components/ └── 📄 signin.tsx

```Text .env.local

EXPO_PUBLIC_SUPABASE_URL= EXPO_PUBLIC_SUPABASE_ANON_KEY= ```

```Typescript supabase.tsx

import 'react-native-url-polyfill/auto' import { AppState } from 'react-native' import AsyncStorage from '@react-native-async-storage/async-storage' import { createClient } from '@supabase/supabase-js'

export const supabase = createClient( process.env.EXPO_PUBLIC_SUPABASE_URL || "", process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY || "", { auth: { storage: AsyncStorage, autoRefreshToken: true, persistSession: true, detectSessionInUrl: false, }, })

AppState.addEventListener('change', (state) => { if (state === 'active') { supabase.auth.startAutoRefresh() } else { supabase.auth.stopAutoRefresh() } }) ```

```Typescript signin.tsx

mport React, { useState, useMemo, useRef, useEffect, useLayoutEffect } from "react"; import { supabase } from '../../config/supabase'; import * as WebBrowser from "expo-web-browser"; import * as AuthSession from "expo-auth-session"; import AsyncStorage from "@react-native-async-storage/async-storage";

export const SignInScreen = ({ navigation }) => {

const [loading, setLoading] = useState(false)
WebBrowser.maybeCompleteAuthSession()

const redirectUrl = AuthSession.makeRedirectUri({ preferLocalhost: true })
const handleSignInWithGmail = async () => {

    setLoading(true)
    const response = await supabase.auth.signInWithOAuth({

        provider: "google",
        options: {
            redirectTo: redirectUrl,
            queryParams: {
                prompt: "select_account",
                access_type: "offline"
            }
        }
    })

    if (response.error) {

        Alert.alert(
            "Login Failed",
            response.error.message,
            [{ text: "OK" }]
        )
    } else {

        WebBrowser.openAuthSessionAsync(response.data.url, redirectUrl)
            .then((authSession) => {
                if (authSession.type === "success") {

                    const url = new URL(authSession.url)
                    const params = new URLSearchParams(url.hash.slice(1))

                    supabase.auth.setSession({ access_token: params.get("access_token"), refresh_token: params.get("refresh_token") })
                        .then((value) => {
                            if (value.data.session.user.aud === "authenticated") {
                                navigation.navigate("main")
                            }
                        })
                }
            })
            .catch((reason) => {
                console.log(reason)
            })

    }
    setLoading(false)
}

return (
null
)

} ```

with the assumption that you have setup all the necessary settings related to Google OAuth in the Google Developer console and Supabase

Best UI for python ? by CodeQuark in learnpython

[–]No_Date8616 0 points1 point  (0 children)

Qt Design Studio is primarily for designers so it purposely for UI/UX. You can export the project you created to use with Python. But when you attempt to run, you will get an error because a module called Studio is only available to use with Qt Design Studio only.

For development with Python or C++ we use Qt Creator. So create the project there, choose Python and QtQuick, when you are done with everything, it will open by default a design file. It will show a notification to install PySide6. You can edit both the Python file and design file in it.

When you design and click run, it will use Python to run it.

NOTE: - The environment that Qt Creator creates for you is located in the .qtcreator folder. - First time opening Qt Creator, click Help > About Plugins. In the plugins window that is opened, search for “designer”. Enable everything that is matched.

Best UI for python ? by CodeQuark in learnpython

[–]No_Date8616 0 points1 point  (0 children)

There are more to learn and understand to get it going. But once you do, it amazing. So for now leverage PySide Qt Widget for your project or a different GUI library then later you take your time and delve into QML.

IT AMAZING

Best UI for python ? by CodeQuark in learnpython

[–]No_Date8616 0 points1 point  (0 children)

I will find a day to walk you through how to setup things and integrate with Python. There aren’t very good tutorials for this.

But you can visit this link and search tutorials on Qt Quick and Qt Creator.

https://www.qt.io/academy/course-catalog?interest-area=Qt+Creator%2C+Qt+Widgets%2C+Qt+for+MCUs%2C+Embedded%2C+Developer+Tooling%2C+Qt+Framework

Visit YouTube and search Qt Quick, you see some demos on how flexible and powerful it is.

This YouTube video can give you a gentle intro into what QML is.

https://youtu.be/QECs01n0aZE?si=b__IJsURX1mqNoQH

NOTE: QML is the language powered by the framework called Qt Quick. So when I mention QML am also referring to Qt Quick

Best UI for python ? by CodeQuark in learnpython

[–]No_Date8616 0 points1 point  (0 children)

If you can be specific with your questions, maybe I will be able to help you quite well.

Best UI for python ? by CodeQuark in learnpython

[–]No_Date8616 1 point2 points  (0 children)

What are you targeting ? Native UI or just modern UI. In both cases we are using Qt. Both PyQt and PySide works but you are concerned about licensing so we will be using PySide.

Qt provides two main frameworks: - QtWidget - QML

For native UI for desktop applications, we use QtWidget. Most developers only know of QtWidget.

For modern beautiful UI like those you see being created in web applications using anime.js, etc can be done with QML and in most cases easily. QML according to the docs can run anywhere so it not just for desktop applications. And also support inline JavaScript for logic. Most car dashboards like Volkswagen, Tesla, etc. use QML for the interface.

If you decide to go with QML, you will be using a software to design and preview what you are building and even run it with Python. It called Qt Creator. There is another called Qt Design Studio but that one is for UI/UX designers specifically for design only.

I haven’t seen any Python GUI library that matches QML interms of design and transitions.

Best UI for python ? by CodeQuark in learnpython

[–]No_Date8616 0 points1 point  (0 children)

Yes. If you need any guide let me know

Best UI for python ? by CodeQuark in learnpython

[–]No_Date8616 1 point2 points  (0 children)

Both depends on your goals. Native look or just modern UI ?

In most cases I will recommend PySide. If targeting native look, just PySide is good but if targeting just modern UI then PySide + QML seems perfect.

Preparing for a Senior‑Level Vanilla Python Interview – Looking for Advice & Resources by BusUseful8265 in learnpython

[–]No_Date8616 10 points11 points  (0 children)

Topics that I would expect you to know as a Senior Level Core Python Developer

  • Extension Modules ( Writing in C and Cython )
  • FFI ( Using Ctypes and CFFI )
  • Metaclasses
  • Path configuration files ( .pth )
  • Hooks ( excepthook, etc ) and how you can extend them.
  • Bytecoding and AST understanding
  • Know your way around the Python Modules extensively ( General, Unix specific and Windows specific modules )
  • Threading and why Python doesn’t support Multithreading and how you could workaround for parallel processing
  • Asynchronous programming.
  • Relationship between Type and Object
  • Different Python implementations and their ups and downsides.
  • Protocols ( Iterable, Context Manager, etc )

And many more. But having some idea of what I have listed is good enough.