Thursday, November 12, 2037

About the projects // О проектах

68k project (under construction)
Idea:here
Read by tag:68kavr

Z80 project (considered complete, but will be updated sometimes)
Idea here
Read about Searle Grant's SBC SD interface (and generally CP/M SD implementation) by tag sgsbcsd

Note, that the early records were imported from Livejournal and should be edited by me sometimes later (I bet that will never happen).
Also, some early records may contain some weird letters - that's russian, but it is always translated, do not be afraid.
Also, sometimes I write about some unrelated (even PC!) but weird hardware, some unrelated but weird network technologies, and some weird things. May be even I'll attempt to write a big post about butterflies. If I ever got interested in butterflies.

Friday, August 12, 2022

Kchibo KK-9803 old & new version

Kchibo KK9803 is known to be an unexpectedly good radio. However, now here is a new DSP ( kt0936 ) version, that is known to be as shitty as shit.
Here are old version an a new one. Almost impossible to guess which is which. However, the old version has a variable capacitor tuning, the new one has a resitor tuning -- and here they are (top is new):
Even more, new version has POWER led, but the old version has TUNE led. Be warned! PS. Unclear why DSP radio is such a shit -- it even has a quartz there.

Friday, July 22, 2022

Basic HTTP auth with lighttpd, mod_authn_dbi and stored PLAIN PASSWORDS

First, if you can avoid storing PLAIN PASSWORDS - avoid them and do not read this at all!

Next,
auth.backend = "dbi"
auth.backend.dbi += (
  "sql" => "select md5(concat(username,':MyRealm:',password)) where username = '?'" ,
  "dbtype" => "mysql",
  "dbname" => "mymydb",
  "username" => "mymylogin",
  "password" => "mymypassword"
)
auth.require = (
  "/" => 
  (
   "method" => "basic",
   "realm" => "MyRealm", # The same realm as in sql statement!
   "require" => "valid-user"
  )
)


Generally speaking, I do not understand the authors of lighttpd (which is my web-server of choice for around 10 years) in this exact logic and their love of Digest auth (I prefer Basic+https).
This works at least for lighttpd 1.4.65
Crossposted to linkedin

Saturday, January 15, 2022

Ikea Tradfri hub loosing connectivity

Ikea Tradfri Zigbee controllers are known sometimes to get offline, a lot of people over inet complaining on that. In case it is rebooted, it is working. The less known thing is the network disconnect also restores availability. However, disabling/enabling port on switch does not work, because some of the devices just stops transmission over ethernet port. The thing that helps is speed changing to 10mbps and back! I have my Ikea Tradfri hubs running for several months. The server pings them and if it loses connectivity, I just change the speed of the ethernet ports -- and viola! - my Tradfri hub is back online. The other problem is when devices goes offline, I have no solution -- and I do not even know how to detect that via COAPS....

Monday, October 25, 2021

Prosody on OpenBSD 7.0

after upgrade OpenBSD to 7.0, I've got " Cannot load driver MySQL. Available drivers are: SQLite3" pkg_add lua52dbi-mysql helped. Yes, that's all I want to say about that!

Saturday, May 8, 2021

Compiling LIRC on Void Linux

After compiling I've noticed that 'default' driver is missing, this makes it unusable on Raspberry PI1. The trick is #include <sys/sysmacros.h> in plugins/default.c somewhere around line 35.

Saturday, April 27, 2019

pmwiki and lighttpd

Just my config, nothing more!
$HTTP["host"] == "wiki.MYDOMAIN.TLD" {
 $HTTP["remoteip"] !~ "^2001:START-OF-MY-IPV6-ADDR" {                                                        
  url.access-deny = ( "" )                                                                      
 }

 $HTTP["remoteip"] =~ "^2001:START-OF-MY-IPV6-ADDR" {
  url.rewrite-once = (
  "^/wiki/?([^?]*)$" => "/pmwiki.php?n=$1",
  "^/wiki/?([^?]*)[?](.*)$" => "/pmwiki.php?n=$1&$2"
 }

 url.rewrite = (                                                                                
  "^/scripts/" => "404.html",                                                                   
  "^/wiki\.d/" => "404.html",                                                                   
  "^/local/" => "404.html",                                                                     
  "^/cookcook/" => "404.html"                                                                   
 )
 fastcgi.server = ( ".php" =>                                                                   
                  ( "php-tcp3" =>                                                               
                     (                                                                          
                       "host" => "127.0.0.1",                                                   
                       "port" => 9003,                                                          
# Do not check file exists on server side                                                       
                       "check-local" => "disable",                                              
# Some php stuff                                                                                
                       "broken-scriptfilename" => "enable",                                     
# Docroot comes from sql in my case "docroot" => "/var/www"                 
                        ,"fix-root-scriptname" => "enable"                                      
                     )                                                                          
                   ),                                                                           
 ) 

}