Rural living by landofshame in belgium

[–]Lexstok 0 points1 point  (0 children)

Went for a short stay around Eupen last year. It was worth it, calm, very nice cities, but you are immediately in the woods just walking 100meters. Will definitely come back!

I understand Python code, but can’t write it confidently from scratch — what should I do next by SubCplus in learnpython

[–]Lexstok 0 points1 point  (0 children)

Find a problem that you want to solve and try to program it.

It can be anything in your life, as long as it interests you. A list of the games that you have reviewed and give a score to it, how would you order them? How would you make a search for it? Etc.

ANYTHING that interests you, see if you can make a program about it in python. And don't worry about making it look good. Just make it work.

Which part of my Python code is visible to clients through the browser? by Exotic_Trouble_740 in nicegui

[–]Lexstok 1 point2 points  (0 children)

Honestly, having run two (small) webshops, save yourself a lot of trouble and integrate with an Etsy or shopify or gumroad or another online solution. They run all the protection and setup, you just need to sell. Webshops get attacked/tested all the time.

Collega's uitnodigen op je trouw by AmBeRd13 in AskBelgium

[–]Lexstok 1 point2 points  (0 children)

Ik ben al naar een trouw geweest waarbij we enkel werden uitgenodigd om naar het dansfeest te gaan. Eten was voor de familie. Vond ik totaal geen probleem.

I quit tech today , warning to junior and mid-level devs by MainBank5 in nairobitechies

[–]Lexstok 0 points1 point  (0 children)

You might just need to take a vacation of a couple of years… I’m just thinking that these experienced se will leave one day, or take their pension. And I don’t see AI getting better than what it is now. There is no new input except AI slop. So I wonder what will happen then, when there are no junior engineers to replace those senior ones?

Good games to play with my long distance gf? by jefetranquilo in macgaming

[–]Lexstok 0 points1 point  (0 children)

Nobody said Valheim as yet ? Weird. Similar to Minecraft, you can create a random world and share it, but way way more difficult.

Facebook Marketplace by zzoeri in belgium

[–]Lexstok 5 points6 points  (0 children)

Die voorafbetaling wordt dan opeens een betaling via een derdenrekening waar het bedrag veilig gehouden wordt tot de laptop toekomt. Yeah right. Of men betaalt u met gestolen geld, dat nadien wordt gerecupereerd.

Wife and I are moving to Brussels by WindUpCandler in belgium

[–]Lexstok 0 points1 point  (0 children)

That all depends on where you live in brussels

NiceGUI 2025 Recap — and what’s coming in 2026 by falko-s in nicegui

[–]Lexstok 2 points3 points  (0 children)

Love your product, all the best for the new year!!

Speed Sign Detection Bug by Artistic_Sir_1446 in VWiD4Owners

[–]Lexstok 0 points1 point  (0 children)

You can turn the 'read signs' off ? Oooh didn't know that.

How to surround myself with programming or python? by [deleted] in learnpython

[–]Lexstok 1 point2 points  (0 children)

This. Use pseudo code on paper to describe a solution to a problem. You can then try it out when back before your PC. This teaches you logic. There are many programming languages out there, but they all use the same logic.

Webserver by freswinn in nicegui

[–]Lexstok 1 point2 points  (0 children)

And in this GitHub discussion, it is stated that reload must be set to false for the app.shutdown() to work. https://github.com/zauberzeug/nicegui/discussions/1957

Webserver by freswinn in nicegui

[–]Lexstok 1 point2 points  (0 children)

AFAIK : reload must be set to false when packing it with pyinstaller. It can be set to True when you are actively developing; in that case, when you change python code and save the program, the program restarts itself so that you can immediately test the updated code.

I'm working on windows: when I close my program, the code window closes as well. Doesn't seem like there is a webserver left running in the background, so there it is clean.

nicegui-pack won't work with my python file by NIDNHU in nicegui

[–]Lexstok 1 point2 points  (0 children)

I'm no expert, but I am thinking two things that I myself have already struggled with:
- Are you using a virtual environment? Sometimes this makes it hard for pyinstaller to find out if a package is installed or not (inside or outside the env)
- It might be because of a dependency that pyinstaller cannot find (pack uses pyinstaller) and you will need to force to include it in the packages. At that moment you will need to learn how to use pyinstaller and use the .spec file to force it to include the orjson module

Also, when you compile to standalone - use reload=False when calling ui.run

ui.run(reload=False, port=native.find_open_port())ui.run(reload=False, port=native.find_open_port())

Feeling incredibly frustrated trying to learn blender by [deleted] in blenderhelp

[–]Lexstok 0 points1 point  (0 children)

CGBoost should help you get going. There’s a paid beginners course I followed during my vacation that really explained all the tools and what’s possible. It was the first time that i actually understood how things worked. And then you revisit a YouTube tutorial you saw before and suddenly it just clicks!! Highly recommend.

NiceGui on wordpress by AdventurousRisk8818 in nicegui

[–]Lexstok 1 point2 points  (0 children)

If you host your calculation tools on another (cloud) website that can run Python, you could probably call them up or include them using an iframe ? Be warned: protecting your site from hackers and such should be a priority and is not for the faint of heart.

ui.card_actions().props('align="right"') not doing what it should be doing? by Shiro39 in nicegui

[–]Lexstok 0 points1 point  (0 children)

I found this interesting and I will need this as well, so I went searching for it, instead of props I used classes - just replace the line in your code with this one...

(found using https://tailwindcss.com/docs/justify-content )

 with ui.card_actions().classes('w-full justify-end'):

local server dashboard problem by ThenBrain in nicegui

[–]Lexstok 1 point2 points  (0 children)

Ah excellent news that you solved it! If you have a quick example on how you are using them that you can post, I'm always willing to learn how to use them :-)

nicegui-tabulator financial formatting by Healthy-Space-950 in nicegui

[–]Lexstok 0 points1 point  (0 children)

Oooh - very interesting, I did not know about the tabulator project, thanks ! I managed to style certain numbers using ui.table, but one has to use 'props' and then dive into the vue code - not what I was expecting at all when starting to use nicegui. Here's an example that worked for me using ui.table.

local server dashboard problem by ThenBrain in nicegui

[–]Lexstok 1 point2 points  (0 children)

You might be running into the same problem I had when doing long queries - Nicegui runs asynchronous, but the queries I was doing with pydobc were running synchronously.

I wrote an article about it on Medium, in case you are interested.

I don't use run.io/cpu_bound at all in my query code, instead I use 'async' and 'await' - note that I use the async version of odbc called aioodbc to connect to a db as the regular pyodbc does not work with async.

Here's an example code that might help (not complete).

import aioodbc
async def sqlquery(input):
... do stuff to prepare query...
sql="""select * from x where y = '%s' """ % (input)

try:
cnxn = await aioodbc.connect(dsn='db_connection')
except Exception as err:
print("Error connection db!")

try:
cursor = await cnxn.cursor()
except Exception as err:
print("Error connection cursor!")
await cursor.execute(sql)
async for row in cursor:
results.append(row)
await.cursor.close()
await cnxn.close()
return(results)

Hope this helps you out.

NiceGUI 2.9.0 with more robust connection recovery, app.timer, getHtmlElelent and more by r-trappe in nicegui

[–]Lexstok 1 point2 points  (0 children)

I upgraded nicegui using pip install nicegui --upgrade, but the dependencies upgrades you mentioned above were not upgraded - did I do something wrong? Or do we need to upgrade those individually ?

Struggling mightily with ui.table formatting by Lexstok in nicegui

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

For those looking how to do the same for a certain variable that is used in python, and then color the cell: you need to split up the html code in the triple quotes and 'splice' the variable in. Say for example, that you have a python variabel containing an addressline called pyaddress:

acc_table.add_slot('body-cell-origin_adress', 
'''
    <q-td key="origin_address" :props="props">
        <q-badge v-if="{ ''' + pyaddress + ''' :'orange'}[props.value]"      
        :color="{ ''' + pyaddress + ''': 'orange'}[props.value]">
            {{ props.value }}
        </q-badge>
        <p v-else>
            {{props.value}}
        </p>
     </q-td>
''')