xw3.org:/blog/../
This is a work in progress... More to come soon!
Latest posts - Blog Feed
/blog/2024/05/29/status/ đź“Ś
Development looks very slow here, but it isn’t!
I am playing around a lot to define a more detailed concept. I have good ideas every day to make this software a helpful framework for low-level web-application development.
I have this running on some customer devices, but I can’t publish the code. I try to make all of the code open-source, but I better reimplement things to make it open and free…
Actually, I am planning an authentication layer and session management. The challenge to me is, to make authentication and session information available to all languages (Bash, C, Lua, PHP and Python basicly). I have tons of ideas, but am not able to decide for a final solution… :(
To make it clear, I am writing this project’s code because it is fun to me… It is an experiment! I want to learn more about CGI/FastCGI and primary the Lua programming language.
/blog/2024/09/25/checkpw/
I created a small C program to authenticate against a UNIX/Pluggable authentication module (PAM) called checkpw. This program is only for verifiying a user’s password, that is registered in /etc/passwd using /etc/shadow, or whatever PAM is configured to use.
The program returns 0 on success, 1 otherwise.
With this program, it will be possible to authenticate an xw3 application user against the system’s user database.
Currently only tested on Linux, but it should work on AIX, DragonFly BSD, FreeBSD, HP-UX, macOS, NetBSD and Solaris operating systems too. I will test API compatibility for all OS’s listed soon maybe some day… ;)
HELP NEEDED! I need some people porting or helping me porting this to other OS’s than Linux. AFAIK it should compile on listed OS’s above and should then work, but I don’t know how… :(
Group permissions will be handled using /etc/group in a seperate program - Maybe just with a small wrapper around the “id” command (not available yet, but it should be easy to implement).
/blog/2024/02/10/code/
This is just a test with syntax highlighting and some examples made by Rouge.
Bash
#!/bin/bash
echo "Hello World!";
C
#include <stdio.h>
int main() {
// printf() displays the string inside quotation
printf("Hello, World!");
return 0;
}
JSON
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
Perl
#!/usr/bin/env perl
use warnings;
print "a: ";
my $a = "foo";
print $a;
PHP
<?php
echo "Hello World!";
?>
Python
#!/usr/bin/env python
def hello(name):
print("Hello ", name)
hello("World")
Ruby
class Greeter
def initialize(name="World")
@name = name
end
def say_hi
puts "Hi #{@name}!"
end
end
Rust
use core::*;
fn main() {
for ["Alice", "Bob", "Carol"].each |&name| {
do task::spawn {
let v = rand::Rng().shuffle([1, 2, 3]);
for v.each |&num| {
io::print(fmt!("%s says: '%d'\n", name, num))
}
}
}
}
SQL
SELECT * FROM `users` WHERE `user`.`id` = 1
/blog/2024/02/06/init/
This is a fun project at the moment… no content actually!