Skip to main content

Search

Items tagged with: Programming


Today, we had a fire alarm going off at @tudresden when I was just working on a local :git: repo.

This reminded me on the popular meme:

In case of fire 🔥

1. git commit
2. git push
3. leave building

I always had some mixed feelings about it. Thus, I wrote down whats wrong with this meme on several levels (technical and social):

cknoll.github.io/git-fire-en.h…

The essence is to create a #git-alias 'git fire' (consisting of multiple commands) to:

- create a new branch with an unused name,
- add every change to the staging area,
- commit (including message)
- push new branch to remote

Also: helping to mitigate fire damage to humans and infrastructure should be preferred over antisocially running away 🏃‍♂️‍ ("leave building")

#git #programming #software


Fun with PHP: Changing Readonly Properties and Other Shenanigans



Of course this exists...

github.com/azac/cobol-on-wheel…

#Cobol #Programming


How do people "type" text into Labels in Godot? What about RichTextLabels?

I've gone through a few techniques for that over the years and have landed on a pretty simple solution, but it's one I don't think many people are aware of. I'm interested in hearing what other techniques people are trying.

EDIT: I mean animating text appearing in, say, a dialogue box one character at a time.

#godotengine #godot4 #programming #gamedev


Programming Tip: Never recurse into your self, or you will curse, and curse, and curse...

#programming #ITHumor


Nixcraft has written clear and consise instructions on many sh commands both internal {sh bash csh ksh} & external

Here's an example of the usage of dd an important powerful command which does everything the Unix way.

Here you're taught how to use dd safely to clone drive images. ddrescue dcfldd are also covered

You can use dd in any shell you like. You can also use them in your BSD OS

#Programming #bash #csh #ksh #fish #sh #commands #dd #BSD #Unix #Linux

cyberciti.biz/faq/linux-unix-c…


Contrary to what you may think, the PieCore Player is just as powerful as other players, yet needs a fraction of the processing power, a fraction of the memory and because it was so neatly coded, it can run on the smallest of the smallest of Raspberry Pi SBCs

I should note that you can have different versions of the PieCore Player, which is a server, in different rooms and they can communicate with each other. This enables you to decide from one point what music you want to play where
The moment it comes out of your audio digitizer and goes through direct Box, the XLR output can go to your PA speakers in a professional PA configuración. you can have such a setup also in an upscaled fashion

#Raspberry #Pi5 #SBC #technology #piCore #Player #Linux #OpenSource #programming #audio #RetroMusic #NowPlaying



This is where a nice part of the sequence progresses;

* giving control to your boot loader

That can be Grub Lilo or even your own self coded loader

mastodon.bsd.cafe/@Dendrobatus…

#Programming #OpenSource #Linux #POST #X86 #technology #protocol


A detailed post about the Startup-Sequence of the Linux kernel from power button to Shell prompt

This is a joy to read & study

0xkato.xyz/linux-boot/

Source @nixCraft

Programming OpenSource Linux POST X86 technology protocol



I chose to use my trusty wget to download the image of Recall Box.

Getting it up and running is as easy as writing the image on a microSD card and booting the SBC from that card.

Apart from the SBC you also need to connect a USB game controller, since that is the primary mode of interaction in most games

There are a lot of systems available and for some systems you of course need the ROM.

For the Amiga I have the ROMs for the A4000T the A500 the A1200.
Having the physical ROM doesn't mean that you can already use them, because you need to be able to boot the machine after 20 to 30 years, have a video output that works in 2025.

Only then can you extract the ROM and put it in a file which should then put in the correct directory on your recall box

There are many gaming systems which do not need a separate ROM. On those you can execute games immediately. Just scrolling through the system directory will take you many minutes that's how many systems there are available.

#Raspberry #Pi5 #SBC #technology #RecallBox #Linux #OpenSource #programming #gaming #RetroGaming


A fascinating article on brainrot in LLMs when trained on certain types of datasets

#LLM #AI #programming #OpenSource #ClosedSource #dataset

llm-brain-rot.github.io/


I just updated 8 libraries I maintain to run on PHP 8.5.

None of them required any changes for 8.5. One had two deprecation nitpicks left over from 8.4 that I'd not previously caught, trivially fixed.

It took me a little over an hour to do all 8, including some other maintenance at the same time.

PHP upgrades rock if your code is good. 🙂 :elephpant:

#PHP #Programming


"I'm a programmer with a Fediverse account. I spend *most* of my programming hours on this OS:"

Please consider boosting for a more statistically significant result.

#poll #programming #operatingsystems

  • Microsoft Windows (14%, 68 votes)
  • MacOS (30%, 142 votes)
  • Linux or Unix (54%, 249 votes)
  • Other (Please comment.) (0%, 2 votes)
461 voters. Poll end: 3 weeks ago


TIL about the existence of smolBSD an amazing minimal BSD Unix system. It boots in {milli}seconds!

Site:

smolbsd.org/

GitHub: github.com/NetBSDfr/smolBSD

#netBSD #BSD #UNIX #OpenSource #programming #quemu #bash #sh

Thanks to @nixCraft


Important article on IRL Free Software status.

You still have a lot of appliances that need to be treated as computers.

Android is treated as a throw away appliance

Manufacturers Stop giving updates to Android devices with then a few years, obsoleting a perfectly good working mobile computer

You also have a lot of hardware parts which need open software to run them

We have not really won yet

#OpenSource #programming #Linux #Android

dorotac.eu/posts/fosswon/


Who needs Ruby on Rails when you can have Ruby on Nails?! 💅🏼✨

#Ruby #RoR #RubyOnRails #Programming #Nails


The purpose of an ORM is to use an SQL database without benefiting from SQL database.

#ORM #SQL #Programming


TIL about the existence of gem.coop

If you do any programming in Ruby {on rails} the name will make perfect sense to you

#Programming #OpenSource #Ruby #Rails #gems #Linux

gem.coop/


Happy 25th Birthday to Knoppix, one of the first #CD and #USB bootable #Linux distros! 🐧🎂🎉

Based on @debian, Knoppix is a historic part of #opensource, and a classic community favorite. Thanks Klaus Knopper and the Knoppix community for helping shape the future of #FOSS!

@knoppix95 #Knoppix #Debian #Sysadmin #LPI #tech #IT #programming


After weeks of R&D even with AI assistance, I finally invented and stabilized the #programming #source-codes #generator with reliable maintainability. Currently I support #c, #go, #nim, #powershell, #python, #rust, and #shell. Continue pressing on...

salsa.debian.org/chewkeanho-te…


🚀 Codeberg just hit 300,000 projects!

Born in Berlin in 2018, this non-profit, community-driven forge is proving that open source hosting can scale without selling out. From Gitea to Forgejo, from early ideals to modern resilience, Codeberg is climbing higher than ever. 🌍✨

dropletdrift.com/codeberg-hits…

#OpenSource #Codeberg #Forgejo #FOSS #Git #GitHub #GitLab #SourceHut #SoftwareFreedom #Developers #Programming #TechNews #Community #Nonprofit #Linux #Coding #Privacy #Ethics #FreeSoftware


The product triad is obsolete. The ideal software development team actually has four members:

#tech #agile #softwaredevelopment #programming



What I had thought, has been said publicly by the fdroid project. The verification process which shall be rolled out in a couple of weeks and be enforced later in time, globally, will effectively kill the fdroid repository.

#OpenSource #Alphabet #Android #Google #verification #death #End #programming #Repository #Monopoly #Enshittification


Sensitive content


PHP: a fractal of bad design / eevee (2012)

「 Virtually every feature in PHP is broken somehow. The language, the framework, the ecosystem, are all just bad. And I can’t even point out any single damning thing, because the damage is so systemic. Every time I try to compile a list of PHP gripes, I get stuck in this depth-first search discovering more and more appalling trivia. (Hence, fractal.) 」

eev.ee/blog/2012/04/09/php-a-f…

#php #programming


As you can guess deno also has a good localization for languages. I'll leave it up to you to research that

Fa wakka means how are you in Sranan tongo, one of the many of languages is SR SA

On this site a sample is given of the languages we have. There are many many more than stated!

worldschoolbooks.com/the-langu…

#programming #deno #localization #languages #typescript #javascript #bash #secure #OpenSource #POSIX


Starting with deno is easy

type

`deno init`

This creates three files in the directory
deno.json main_test.ts main.ts

Open the files with vim emacs cat or any pure editor of your coice

cat deno.json
{
"tasks": {
"dev": "deno run --watch main.ts"
},
"imports": {
"@std/assert": "jsr:@std/assert@1"
}
}

cat main_test.ts
import { assertEquals } from "@std/assert";
import { add } from "./main.ts";

Deno.test(function addTest() {
assertEquals(add(2, 3), 5);
});

cat main.ts
export function add(a: number, b: number): number {
return a + b;
}

// Learn more at docs.deno.com/runtime/manual/e…
if (import.meta.main) {
console.log("Add 2 + 3 =", add(2, 3));
}

As you can see the excellent docs along with the sample files will get you going fast in deno

docs.deno.com/runtime/getting_…

#programming #typescript #javascript #bash #secure #OpenSource #POSIX


Thanks to Alphabet's toying with yt-dlp capabilities and clients like newpipe tubular & pipepipe to use youtube without privacy invasion, I now am playing with deno, a full blown typescript & javascript runtime ENV:

Deno is *awsome*

deno.com/

#programming #typescript #javascript #bash #secure #OpenSource #POSIX


Hot take: A REST API does not have "endpoints." It has one start point, and then links.

"Endpoints" are what RPC-style APIs use, where each distinct URL is essentially a distinct function call.

That's a fine way to design an API. You're not wrong for doing it. But it's not a REST API. It's RPC, even if it's using HTTP verbs and error codes.

Terms matter.

#REST #API #Programming #HotTake


Make sure you patch your OS on security level. Don't chase uptimes on machines facing the internet. We did that in the 80's and 90's. Back then we even used telnet over the internet. Strangers could trust eachother,

Times have changed

#patching #programming #telnet #port23 #bots #security #trust


I will continue my journey in Julia an awsome programming language, which I have extensive tweet series that I still need to convert to the fediverse format.

I tweeted as I studied blocks of the language. I love the structure of Julia

Here is a start on JuliaLang

docs.julialang.org/en/v1/

🖋️ #julia #julialang #bash #sh #zsh #ksh #csh #Linux #BSD #POSIX #Programming


Being thankful is important, esp. when you use opensource software.

I'm thankful to the coder(s) of gping a command which sends a nice graphical output in *sh when you invoke it of the ping reponses of your favourite server

In the same line I again want to thank the coder(s) of httping which can send you ping responses in an awsome way

I had spoken about httping before

Thank you all

🖋️ #bash #sh #zsh #ksh #csh #ping #IPv6 #IPv4 #gping #httping #Linux #POSIX #OpenSource #Programming


I'm a computer programmer with a Fediverse account, and I am this many years old.

Please consider boosting for a more representative sample.

#programming #poll #demographics #fediverse #age

  • 10-20 years old. (3%, 49 votes)
  • 21-30. (19%, 262 votes)
  • 31-40. (27%, 368 votes)
  • 41 or older. (49%, 675 votes)
1354 voters. Poll end: 1 month ago


If I want to turn a mastodon list into an RSS feed, what skills or programs do I need? #programming #mastodon


Hey, do you program in #python, and live in or around Los Angeles? There's a conference called PyBeach happening next Saturday September 27th in Santa Monica, where you can learn cool things!

Details are at: 2025.pybeach.org
#losangeles#santamonica#programming#pybeach #2025


I've gotta say, I really love #Python. It's a joy to write, and it works for so many purposes. I'm starting to run up against some performance issues, but having worked on this project for nearly a year now it feels like a really solid base for pulling out some performance-critical stuff to another language.

I especially enjoy generators and generator expressions.

#Python3 #Programming #softwaredevelopment


Inquiry: Is there a way on the GitHub PR list to see "this issue has commits since you last looked at it"? Or some other indication of "I should look at this issue again"?

Similarly, filter out Draft PRs? Trying to get a list of just "things I should look at."

(Asking for a colleague.)

#GitHub #Programming


peer-to-peer networks that worked
core challenges, routing, and privacy

draketo.de/software/p2p-talk
#slides: draketo.de/software/p2p-talk.p…

This 90 minutes talk describes how peer-to-peer networks managed to interactively search 4 million computers with the bandwidth of 2004, which goals they failed to reach, and what information the networks expose as part of their operation.

#p2p #networking #programming #lecture #openeducation #creativecommons #ccbysa #freesoftware #bittorrent #hyphanet #freenet

Diese Webseite verwendet Cookies. Durch die weitere Benutzung der Webseite stimmst du dieser Verwendung zu. https://inne.city/tos