Programming

davidbisset,
@davidbisset@phpc.social avatar
davidbisset,
@davidbisset@phpc.social avatar

CheekyKeys lets you control your keyboard using your face using OpenCV, and MediaPipe.

https://github.com/everythingishacked/CheekyKeys

video/mp4

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

xameer,

The List Monoid
class Monoid m where
mempty :: m
mappend :: m -> m -> m
instance Monoid [a] where
mempty = []
mappend = (++)

https://people.cs.kuleuven.be/~tom.schrijvers/Research/talks/lhug4.pdf

6d03,
@6d03@mathstodon.xyz avatar

@xameer [()], i.e., the type of lists of the empty tuple is equivalent to inductively defined natural numbers. So yes.

faassen,
@faassen@fosstodon.org avatar

Programming language communities are interesting and affect your experience. A little thread.

1/6

faassen,
@faassen@fosstodon.org avatar

I started using Python when it was an language even among programmers. The community therefore consisted of people really attracted to such a language; to me a breath of fresh air of power without a lot of cruft. It connected to anything.

Now Python is such a huge language its community has broadened out. It's less of a self selected group. That has good and bad sides.

2/6

faassen,
@faassen@fosstodon.org avatar

I also like how accepting the Rust community tries to be of human difference, which reminds me a bit of early Python (though that was more "not all Python devs have beards"; times have changed for the better)

6/6

larnius,
@larnius@mastodontech.de avatar

Day 39 of is done, and it was again all about the four different kinds of loops in in action. The sheer amount of helper constants is kind of overwhelming for me, and I think I'll have to repeat some of the lectures before moving on. Day 40 up to day 40 are a milestone project, so I will find out quite quickly how well I understood all the control structure stuff...

rml,

"The focus of my research is applying , in particular , to low-level problems — the type of situations that usually call for or #c"

— highly recommended talk on programming with serialized data from @vollmerm @

https://www.twitch.tv/videos/1803057942

rml,

@theruran @vollmerm
heavy wager:
"While I'm a long time , most of my research deals with using to improve performance... I promise I'll convince everyone here that types are good by the end of this talk"

(quoting from memory, not entirely accurate)

ramin_hal9001,
@ramin_hal9001@emacs.ch avatar

@rml @theruran @vollmerm
I love how the minimal interpreter (without the compiler) on x86_64 Linux is only 346800 bytes. That is small and minimal. But the Chez compiler is best-in-class, producing the among the fastest and smallest binaries of any Lisp.

That said, Guile's licensing and it's use in , and it's extensive collection of libraries and SRFI support, make a superior choice for practical applications (IMHO). Also now I know of someone working on porting the "PreScheme" compiler from Scheme48 (a Scheme subset with no garbage collector) to Guile for use in building low-level performance binaries: https://gitlab.com/flatwhatson/guile-prescheme

> "I promise I'll convince everyone here that types are good by the end of this talk"

As a Haskeller, I do not need convincing at all. One thing that got me to even pay attention to however was a conversation with a friend, William Byrd -- by the way, who's dissertation is in relational logic programming from the University of Indiana under Dan Friedman, same school as the presenter in this video -- explained to me that the power of Scheme comes from both it's minimalism, but also it's macro system which you can use to implement any type system you might want. Byrd told me he is frustrated by the world kind of gravitating toward the Hindley Milner type checking algorithm used by OCaml, F#, Haskell, Typed-Racket, Coalton, Carp, and PreScheme, as if it is the end-all-be-all of type systems.

So anyway, Will Byrd convinced me how cool it is being able to use any type system at all in Scheme. Hindley-Milner, CSP, Pi Calculus, Calculus of Constructs, Separation Calculus, Location Calculus (which I just now learned about!), or maybe even more exotic constraints systems modeled on physics -- use whatever is best for your problem domain.

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! 👍

larnius,
@larnius@mastodontech.de avatar

Day 4 of went deeper into complex data types and type annotations. I can't wait to learn more about Swift and use the things I've learned so far. Hopefully, it will be the same experience as the turtle game was in . Also, I want to know if I'll get used to since it always crashes as soon as I create a new playground page.

jbzfn,
@jbzfn@mastodon.social avatar

「 It’s true that if you’re managing a software project the choice of tools does matter, but this choice pales in comparison to the following simpler ways to mitigate risk:

Offset the risk using as many legal and insurance instruments possible.

Having a highly liquid talent pool.

Factoring software failures into the expectations and economics of projects.

Ability to restart the project with different assumptions and team if it all goes awry 」
— Stephen Diehl https://www.stephendiehl.com/posts/marketing.html

jaandrle,
@jaandrle@fosstodon.org avatar

🎉📹 Relive the magic of WebExpo 2023 with our collection of videos (https://slideslive.com/webexpo/webexpo-2023), and get a head start on next year's event with presale tickets! 🚀👨‍💻 With limited tickets available, this is your chance to secure your spot and join us for another unforgettable experience! https://webexpo.net/sessions/webexpo-conference-presale/

Linkedin source: https://www.linkedin.com/feed/update/urn:li:activity:7057268529963692032/

jaandrle,
@jaandrle@fosstodon.org avatar
flipsideza, (edited )
@flipsideza@fosstodon.org avatar

Asset Turntable is up and running! 💪
Houdini lets you do quite a bit that is not supported directly in USD, so had to work around those... but in the end its working perfectly creating a USD file we can submit directly to the farm.

maxim,
@maxim@mastodon.gamedev.place avatar

I love programming...

I've been doing it for 20 years, but every time there is a moment when you come across a bunch of code that you wrote a long time ago and you don't want to touch it anymore so as not to break it, and you look for a solution for half a day, and then you add one line and everything is fine

:unity:

video/mp4

livingcoder,

@maxim This is why I write unit tests - for future me.

maxim,
@maxim@mastodon.gamedev.place avatar

@livingcoder it can't be covered with unit tests, it's about gamedev, it's a set of logic that I didn't lay down because there were no situations of the behavior of some objects and interaction with others... it is impossible to describe everything, even to think through the situations, until you face it in the game itself

maybe i'm wrong...👽

louis,
@louis@emacs.ch avatar

Damn! I have to write a lot of ETL code today (JSON import, transformation, storing in database etc.) in Go. Now, I must admit that Copilot is writing most of the code for me by now. Over the course of the last few days it seems to have learned quite a bit about my coding style.

This thing is really good at "magically" knowing how to create Go types and funcs from a JSON data model that I have open in another buffer. It proposes full code blocks, not just line by line.

I'm still skeptical but for this kind of coding tasks, Copilot is just a big time saver. It really feels like a second programmer working with me.

I'm not worried that Copilot will replace developers. But as a solo dev, it really helps to get the boring coding tasks done much faster and have time for more interesting problems.

What times we live in!

louis,
@louis@emacs.ch avatar

Just an example of a code block Copilot just proposed while I was thinking about a possible approach.

sqrtminusone,
@sqrtminusone@emacs.ch avatar

@louis Yeah, it works really well for these relatively straightforward tasks. It almost never fails to write the second half of a database migration, for instance.

mdh,

I know that Typescript became the de facto standard of writing large web apps but it’s type system quite often leads me to just wondering wtf I am even looking at.

When Dart finally gets around to releasing their next generation of web support and JS interoperability I hope people will reconsider it.

Take this example of using a mixin in TypeScript vs in Dart.

mdh,

@Aggieborn for what it’s worth I was super Flutter hesitant for quite a while but will say it’s actually quite a nice path to be on (especially with an upcoming compile to WASM on the web functionality) but like you said it’s not super clear how much of that existing code could come with you on that journey depending on what your architecture looks like (but also maybe more than you think too in a best case scenario)

Aggieborn,

@mdh I just need to set time aside to create an web app with it. But it'll be a hard sell as my team is very comfortable with Angular TS and have designed alot around it.

dwarmstrong,
@dwarmstrong@fosstodon.org avatar

Day 60 of - After some more thinking, instead of separate install and configure scripts, I'm going to create a single -powered script that will install with LUKS encryption, BTRFS, and optionally . Today I worked on the python module to be used by script: https://gitlab.com/dwarmstrong/null-to-void/-/blob/main/files/install.py

LinuxGamer,

My app, Realm, is set for a first alpha release on Friday. Unfortunately idk whether it'll go ahead, but I'm going to make a go/no-go decision tomorrow. Documentation still needs to be done and a couple of changes for the homepage tab.

https://codeberg.org/LinuxGamer/realm

LarsFosdal,
@LarsFosdal@mastodon.social avatar
jamalmarlone,

@LarsFosdal probably time for me to get some inc on those thumbs

chris_hayes, (edited )
@chris_hayes@fosstodon.org avatar

Finally realized I should be using dictation more for inputting text.
Having previously used Chrome "Speech Recognition" API for voice-to-text in websites. I'm both surprised and disappointed that the accuracy of MacOS's built-in dictate feature is noticeably worse than Chrome's.
What happened to the Apple that broke new ground with a revolutionary voice assistant?
#accessibility #webdev #apple

chris_hayes,
@chris_hayes@fosstodon.org avatar

On the bright side, this led me to discover Talon Voice for dictation which I am using to dictate this Mastodon post. Talon Voice can do a lot more than just dictation, such as system actions and scripts.
The accuracy of Talon Voice appears to be better than apple dictation.
https://talonvoice.com

fell,
@fell@ma.fellr.net avatar

Casey Muratori debunked 5 excuses for neglecting . Seriously, everyone involved in should watch or read this. Software performance always matters.

Video: https://youtu.be/x2EOOJg8FkA

Written Article: https://www.computerenhance.com/p/performance-excuses-debunked

The guy on : @cmuratori

rodhilton,
@rodhilton@mastodon.social avatar

I think it's fair to say that between the Scala 3 rollout and the lightbend licensing fiasco with Akka, is effectively dead.

Everyone I know with a Scala codebase in a professional setting is either

  1. actively transitioning away from Scala because they need to move away from akka streams

  2. maintaining existing projects but are doing no new projects in Scala

  3. trying to stick with Scala 2 until they no longer can

I don't know of anyone actively doing new dev in Scala.

soc,
@soc@chaos.social avatar

@rodhilton I agree with your analysis and are happy to say that I made some small contributions to make that happen!

rebelwarrior,
@rebelwarrior@mastodon.social avatar

@rodhilton what there is a new version of Scala?

LinuxGamer,

https://codeberg.org/LinuxGamer/realm/releases/tag/alpha-0.1.0
First Alpha release, feel free to check it out, not ready to be used 100% but it works.

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

itnewsbot,

Parametric Design with Tinkercad - Tinkercad is like the hamburger helper of 3D design. You hate to admit you use it,... - https://hackaday.com/2023/04/26/parametric-design-with-tinkercad/

schlagfell,

There are moments when I sometimes don't know how to react.....

Should I laugh? Scream? Cry? Just ignore it?

schlagfell,

@Badscrew that would be quite a fun joke 😂 I‘m actually really close to try it 😁
Reminds me of this package https://www.npmjs.com/package/is-even

TimPurdum,

@schlagfell @Badscrew it's a good joke, but I don't believe Nuget let's you delete packages because of the dangers.

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