Programming

riokei,

As a newbie dev learning and , I've built a project or two with but have no idea how to implement a demo log-in for it. can anyone who sees this offer some advice?

riokei,

@khalidabuhakmeh I got it working thanks!

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@riokei Awesome! 👍

WebDevGreg,

Just had a go with https://github.com/Juerd/tootpick for adding a mastodon share button to a @getkirby website I am working on as suggested by https://spreadmastodon.org First site using Kirby after years on another CMS and I am loving the way it works. Tootpick looks very professional as well.

nilsmielke,
@nilsmielke@det.social avatar

@WebDevGreg Tell me about it. Perch has been abandoned by its new owners for the second time in two years. That’s why I switched to Kirby—and loving it.

WebDevGreg,

@nilsmielke Same here trying Kirby for my own site first then hope to use for customer sites. Have been paying the Perch subscription for the last few months in the hope I would get support but requests are ignored. I have a couple of larger customer sites on Runway, one with approx 1500 blog posts, that are stuck on ver 3.2 and I am worried about php 8.1 reaching EOL. Shame Perch is no longer viable but I am really enjoying learning Kirby.

RatulMaharaj,

Been trying out the editor as alternative. It’s blazing ⚡️

TiffyBelle,

@RatulMaharaj This is quite the limitation:

"Currently, Zed only supports macOS."

lolzac,

Hey Python people!

pyenv or pipenv? I am using a Mac and want to find a tool to help keep all of my installation clean and make using venvs easier.

cazabon,

@lolzac

Poetry. Dependency management, entrypoints, Python virtual environment management, and more.

https://python-poetry.org/

LinuxGamer,

I have no idea how to make this verticle, anyone know how I can pack a Gtk.Grid into a Gtk.Notebook? Using Python.

nielsdg,

@LinuxGamer you can set the orientation property of a Gtk.Grid. Another similar widget here for your use case would be GtkBox

blakespot,

It's not a CMS, mind.

It's a DXP -- Digital eXperience Platform.

leahawasser,
@leahawasser@fosstodon.org avatar

check out this podcast by down to earth about resources for . It's about my efforts to democratize data science education for everyone. check it out https://grssieee.podbean.com/e/s4e06-down-to-earth-breaking-barriers-with-open-education-and-open-peer-review/

sgillies,
@sgillies@mastodon.social avatar

@leahawasser related to your work, I just saw an interesting lightning talk by Shurui Zhou https://www.eecg.utoronto.ca/~shuruiz/ on the challenges of sustainable open source scientific software. I think some links to her research will appear at https://neverworkintheory.org/2023/04/26/and-thats-a-wrap.html soon.

leahawasser,
@leahawasser@fosstodon.org avatar

@sgillies oh wow!! Thank you for sharing that with me, sean!! Will check it out.

stylus,

I'm at ! Say hi if you see me, especially if you're into it other on hardware!

stylus,

@brainwane thanks for the chat time! Looking forward to catching your play when the videos are available!

brainwane,
@brainwane@social.coop avatar

@stylus Thanks! You can watch it now on Hubilo. The PyCon social media account says videos will be up on YouTube soon. "In the coming weeks" says https://twitter.com/pycon/status/1651649167284903954 and "faster than last year" says https://social.coop/@Yhg1s/110271766074591183 .

8bitTim,

A little quality time with this grand old lady.
-80

8bitTim,

@popey
I must make the effort to go and have a nosy around Neil's gaff!

popey,
@popey@ubuntu.social avatar

@8bitTim Yeah, I took some arcade boards to donate, so some of my time was spent dealing with that. I should go back again sometime. There's so much to play with and look at.

TehPenguin,
@TehPenguin@hachyderm.io avatar

Are there any contributors/reviewers on here? I'm making some changes to improve Windows (CodeView) debug info and would love for someone to have a look. First change is here: https://reviews.llvm.org/D148761

TehPenguin,
@TehPenguin@hachyderm.io avatar

And the second change that adds CodeView debug info for jump tables: https://reviews.llvm.org/D149367/new/

TehPenguin,
@TehPenguin@hachyderm.io avatar

Should also say that it's not just me working on this.

A couple of my coworkers have been working on landing debugger_visualizer (that handles both NatVis and GDB Pretty Printers): https://github.com/rust-lang/rust/pull/108668

And some Rust folks at Microsoft have been working closely with the debugger team to improve how it handles Rust debug info, and making changes to the Rust compiler to make that info easier to work with, for example https://github.com/rust-lang/rust/pull/98393

aristurtle,

Most important question. In this situation are you a hard-coder or a nameof() kind of person?

For what it's worth, I'm a nameof. I will use and abuse it every chance I get.

AngryAnt,
@AngryAnt@mastodon.gamedev.place avatar

@aristurtle As far as I can take it I use nameof. After that I use static readonly string members. Whatever it takes to be auto-included in refactoring operations.

aristurtle,

@AngryAnt Yep, refactoring operations is the big one. I also use it a lot in situations like providing a const for the name of an IConfiguraiton section.

I'm constantly struggling with naming of options, and refactoring them.

jsit,
@jsit@social.coop avatar

@wikipedia Wikipedia should underline its in-article links. Often these are long noun phrases with two or more links in them, and you can’t know which words are links without hovering.

I know removing underlines has been basically de facto design on the web for the last 20 years, but it is bad for usability.

itsjoshbruce,
@itsjoshbruce@phpc.social avatar

@jsit @wikipedia: I use desaturated colors and lower white point (about 80%) and can say that the contrast between regular text and links isn’t enough to notice.

amxmln,
@amxmln@mastodon.design avatar

It’s almost the end of April, but despite a very busy month, I still managed to write down a blog post, even if it’s a bit more of a documentation-entry for myself. Perhaps some of you will find it useful!

It’s about how to automatically a website or app to an using akin to something like :

https://amxmln.com/blog/2023/deploying-websites-with-git-lab-ci-and-uberspace/

/cd

aral,
@aral@mastodon.ar.al avatar

Just released #JavaScript #Database (#JSDB)¹ version 3.0.0

Breaking change²: data is now evaluated in virtual machine contexts.

If you were persisting custom objects³ and referencing classes from global scope (globalThis) to have your objects keep their types when read, you must now explicitly register your list of custom classes using the new classes property of the options object when calling JSDB.open().

¹ https://codeberg.org/small-tech/jsdb#javascript-database-jsdb
² https://codeberg.org/small-tech/jsdb/src/branch/main/CHANGELOG.md#3-0-0-2023-04-28
³ https://codeberg.org/small-tech/jsdb#custom-data-types

aral,
@aral@mastodon.ar.al avatar

PS. I’ll update Kitten¹ with the latest JSDB today.

¹ https://codeberg.org/kitten/app

#Kitten #Domain #JSDB #SmallWeb #SmallTech #web #dev #nodeJS #database

aral,
@aral@mastodon.ar.al avatar

Right, I just updated Kitten so it includes JSDB version 3.0.0 and it now has built-in support for database app modules.

A database app module is an app module¹ for your database where you can provide a schema for it using JavaScript class hierarchies and register those classes with the database so your custom objects maintain their types when they are written and read in.

You can see it in use in Domain here: https://codeberg.org/domain/app/src/branch/main/app_modules/database/database.js#L198

¹ https://codeberg.org/kitten/app#app-modules

mattwilcox,
@mattwilcox@mstdn.social avatar

Hey people... Do you know of any good examples of sites that deal with large volumes of page content, but AVOID the "mega menu" UI system - such as the one here https://www.matalan.co.uk/

I'm of the opinion that they're terrible for performance, hard to use (especially hover triggered), hard to design for flexibility and versatility, and should be avoided.

Amazon's "All" sidebar is better; but what other systems have you seen?

Amazon has a "drill down" single column view instead to deal with this huge Table of Content style data.

yaitorr, (edited )

@mattwilcox I like

https://www.whitehouse.gov/

Similar to Amazon but much more mobile friendly, imo. You trigger its render very easily when navigating with your thumb.

pablolarah,
@pablolarah@mastodon.social avatar

🔵 Learn WebGPU
by Élie Michel @exppad
This documentation walks you through the use of the WebGPU graphics API to create native 3D applications in C++ from scratch, for Windows, Linux and macOS.

https://eliemichel.github.io/LearnWebGPU/

linusable, French
@linusable@mastodon.social avatar

is a popular system that helps you learn new info through spaced repetition. And you can build your own deck using popular tools. In his article, Otavio Ehrenberger helps you harness the power of + to create helpful study cards programmatically:

How to Supercharge Your Studying with Python, Anki, and ChatGPT

https://www.freecodecamp.org/news/supercharged-studying-with-python-anki-chatgpt/

redmp,

@jmct challenge accepted

itsthejoker,
@itsthejoker@fosstodon.org avatar

Okay so I didn't actually get around to giving my lightning talk at , so instead, I wrote up the long-form version on my site as a blog post! Enjoy this dive into zipapps, why they're cool, and why you should totally take a look at this tool called shiv from LinkedIn! https://itsthejoker.github.io/shiv-the-tool-you-didnt-know-you-wanted/

bbelderbos,
@bbelderbos@fosstodon.org avatar

I want to do a YouTube video on Python imports. Any particular things you struggle with to guide my teaching? Thanks!

bbelderbos,
@bbelderbos@fosstodon.org avatar

@cazabon @ZaneSelvans those are great, do you have an example of a circular import issue? Thanks.

cazabon,

@bbelderbos @ZaneSelvans

You can find a lot written about the issue online. This isn't a bad summary:

https://medium.com/brexeng/avoiding-circular-imports-in-python-7c35ec8145ed

dave,


When you're not sure if your script is taking the piss or not, put your excuses/apology in the user agent.

dave,

Just noticed the refactoring makes the .format() redundant, yet it still works for some reason 🙃

dave,

Ah. .format() does nothing, but doesn't tell you it does nothing. I feel like f strings not being usable as templates is a shortcoming, but it would probably break something else idk.

kushal,
@kushal@toots.dgplug.org avatar

What are the good options for text to speech libraries?

kushal,
@kushal@toots.dgplug.org avatar

@mattlehrer @changelog sadly they don’t have Swedish :(

mattlehrer,
@mattlehrer@definitely.social avatar

@kushal oops

anderseknert,
@anderseknert@hachyderm.io avatar

Rather than deciding on a scripting language that only some in the organization understands and enjoys — like — consider a more inclusive option, like , which no one understands or enjoys.

anderseknert,
@anderseknert@hachyderm.io avatar

@joeyguerra interesting. What do you base that suspicion on?

joeyguerra,

@anderseknert linkedin search results.

martin,
@martin@maciaszek.social avatar

Digital Research’s Programmer’s Utilities Guide for CP/M as a cleanly typeset, searchable, and hyperlinked PDF.

https://maciaszek.net/26822/programmers-utilities-guide-recreation/

This is the 4th and (for now) final part of my modern recreations of CP/M manuals in InDesign. I need a break now.

Wintermute_BBS,

@martin thank you very much for your work, it's really appreciated!

kushal,
@kushal@toots.dgplug.org avatar

Do you know level ? Asking as I saw that in the subdomain of a possible influencer on Youtube :)

I just want to ask @godpod if they do any typing mistakes in their code or not!

dpreacher,

@kushal surely gods don't make typing mistake. they create new syntax on the fly. @godpod

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • anitta
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • megavids
  • JUstTest
  • All magazines