Skip to main content

Search

Items tagged with: programming


I am playing with the NaturalLanguage framework in #Swift and I am having some interesting results. Here are the most similar words to the word „Dictatorship”. The left column are the words, the right is the distance. The more distant, the less similar the word is.

dictator 0.7791867852210999
autocracy 0.7871801853179932
dictatorial 0.7904724478721619
regime 0.7980139851570129
democracy 0.8397299647331238
totalitarian 0.845069408416748
repressive 0.8523193001747131
oligarchy 0.8619794845581055
despotism 0.8681145310401917
despot 0.8691430687904358
Here is the code I used.
import NaturalLanguage
guard let embedding = NLEmbedding.wordEmbedding(for: .english) else {
print("Nic z tego nie będzie.")
fatalError()
}
let words = embedding.neighbors(for: "dictatorship", maximumCount: 10)
for word in words {
print("\(word.0)\t\(word.1)")
}
#apple #swift #programming #CodingFun #iOS #macOS


We got up to 71 followers in not even a day. That is honestly meteoric.
Tomorrow at 3 PM EST I'll do a first #stream. We'll make us a #TryHackMe account, go through the new user flow, maybe do a room or two while looking at the various #accessibility gotchas we run into. In future streams we'll do similar for HTB, HTBA etc. as well as more #programming related things but tomorrow ...we leave pallet town all mozie-like. See you all then! #twitch #infoSec #selfPromo


So ...let's face it. A LOT of folks in tech circles are somewhat amazed a fully #blind person can even find the power button on a computer, let alone operate it professionally. I am such a person, and I'd like to bust that myth.
It's also true that many #hacking tools, platforms, courses etc. could use some help in the #accessibility department. It's a neverending vicious circle.
Enter my new twitch channel, IC_null. On this channel, I will be streaming #programming and #hacking content including THM, HTB and who knows what else, from the perspective of a #screenReader user.
What I need, is an audience. If this is something you reckon you or anybody you know might be interested in, drop the channel a follow or share this post. Gimme that #infoSec Mastodon sense of comradery and help me out to make this idea an actual thing :) https://twitch.tv/ic_null #tryHackMe #streamer #selfPromo


Lessons learned after 3 years of fulltime Rust game development, and why we're leaving Rust behind

https://loglog.games/blog/leaving-rust-gamedev/

Discussions: https://discu.eu/q/https://loglog.games/blog/leaving-rust-gamedev/

#games #programming #rustlang


A part of #Rustlang that doesn't get mentioned but is a ridiculous quality of life boon:

dbg!()

Just #[derive(Debug)] on a struct and print it. Suddenly you get insight into what's going on. Very rarely do you need to write your own print.

Insert a dbg in the middle of anything

let diffi = debug!(diffs).iter();

and you get a message with line number and the name of variable:

[src/lib.rs:192:19] diffs = [16, 86, 11]

Not even #Python has that!

#coding #softwareengineering #programming


This is why I don't do front-end dev:

https://www.youtube.com/watch?v=aWfYxg-Ypm4

#Javascript #FrontEnd #Programming


Coding Matrix in Rust | 2023-03-14


Coding our Matrix bot in Rust. This time:

  • Finished !greet, making sure it only affects this room
  • Started on a schema upgrade for the arnie plugin, so we can have multiple personalities

Next time:

  • More work on allowing multiple people, so we can !arnie !person !add and make a new one


I'm going to make a prediction. In less than five years, Microsoft is going to give up on C# even on the backend, in favor of multiple languages such as Typescript/Javascript, Rust, Go and even Java. You're going to see them writing their newer backends primarily in Typescript and Rust. #dotnet #programming


Rust web frameworks have subpar error reporting

https://www.lpalmieri.com/posts/rust-web-frameworks-have-subpar-error-reporting/

Discussions: https://discu.eu/q/https://www.lpalmieri.com/posts/rust-web-frameworks-have-subpar-error-reporting/

#programming #rustlang


This should be the default in #git


[branch] sort = -committerdate

Adding it to your git config will make the command `git branch` sort by last used branches instead of alphabetical. No more trying to remember what I called that last branch!

#programming #tips


We used to have programming books.

(patch notes: added a more detailed description of the man to the alt text)

#programming #atari #forth


So I've been working with GTK4/Libadwaita in Python (in Flatpak), and I'm trying to get notifications to work.

I keep getting this error: "gi.repository.GLib.GError: g-io-error-quark: Error calling StartServiceByName for org.freedesktop.Notifications: Timeout was reached (24)"

Am I missing Flatpak overrides? (Docs seem to say no https://docs.flatpak.org/en/latest/portals.html )

Am I doing this wrong? (Code at https://github.com/TheKrafter/Groupings/blob/rewrite/src/groupings/internal/push.py#L31 )

#AskFedi #GTK4 #Python #LibAdwaita #gnome #Programming


loco-rs: releasing a framework inspired by Rails on Rust

https://loco.rs/

Discussions: https://discu.eu/q/https://loco.rs/

#programming #rails #ruby #rustlang #webdev


I've been looking at this for 20 minutes and I am still not sure whether this is real programming language or extremely sophisticated trolling.

Uiua https://www.uiua.org/

#programming


Since other people are discussing these things, always a good reminder that on #scala using cats-effect library and using #FunctionalProgramming these thing are properly abstracted away nowadays and on daily usage one finally barely has to care at all about it. - https://typelevel.org/cats-effect/docs/thread-model

----

Two kinds of threads pools, and why you need both | Lobsters - https://lobste.rs/s/k8knw4/two_kinds_threads_pools_why_you_need_both

#programming


I've written a #tutorial on how to program #accessible #native #gui #windows applications in #rust using the native-windows-gui library: https://modulus.isonomia.net/tech/nwg/

Also available in Spanish: https://modulus.isonomia.net/tech/nwg-es/

#a11y #programming


Bueno, ya he sacado tutorial. Aquí os explico como programar una aplicación de #gui nativa para #windows con #rust, y #accesible. https://modulus.isonomia.net/tech/nwg-es/

#a11y #programming


Feedback wanted: I made a drop-in JSON replacement that produces smaller payloads. It's for busy programmers who want a quick win. https://evanhahn.com/jsos-proof-of-concept/

It might be a bad idea! Please let me know what you think.

#JSON #compression #programming


Announcement: All-in-one JMAP, IMAP and SMTP server written in Rust

https://github.com/stalwartlabs/mail-server

Discussions: https://discu.eu/q/https://github.com/stalwartlabs/mail-server

#programming #rustlang #selfhosted


Let's get this show on the road, then. In my early days of composition, I used a #midi #programming #language called Zel, which I first found in June of 2001. In fact, you can still find it at its website! https://zelsoftware.org This youtube video is the first completed tune in Zel, from december of 2001. Its simple, I don't do any fancy synth tricks, except some delay on the final piano line, and it's rendered with my #Roland sc-8820. Well, i say simple, at least in comparison to what I'd pull off later. https://www.youtube.com/watch?v=lK9dg5CMWxc


#Yaga #mod for the #Gothic #game status update.
Recently the Open Gothic reimplementation of the ZenGin engine became quiet stable which let me to wonder whether it wouldn’t be easier to port YAGA to this engine, instead of relying on the Union SDK which is basically a set of reverse-engineered classes of the original ZenGin engine. This way, we get macOS compatibility, future-proof support for future Windows releases, ETC. That means a lot of Yaga’s code base would have to be rewritten from scratch, but that’s with the benefit.
Tell me what you guys think, and let’s comment on this issue if you have some valuable insights

https://github.com/try/opengothic/issues/479
#programming #GameDev #accessibility #blind


Coders: keep your computer responsive while building the #LibreOffice source code! Learn how: https://dev.blog.documentfoundation.org/2023/07/04/parallel-build-tuning-the-performance/ #coding #programming #foss


Early #Perl luminary and author (#OReilly camel and llama books, many magazine articles, etc.) Randal Schwartz, a/k/a merlyn, is in dire financial straits.

He needs gainful #employment NOW of any kind, and although his #programming language of choice now is #Dart and the #Flutter framework, he’s willing to fall back on his @Perl chops.

Refer or reach him at https://linkedin.com/in/randalschwartz

Or do what I’m doing and sign up for his #Patreon at https://www.patreon.com/randalschwartz

#OpenToWork #FediHire