Skip to content

Instantly share code, notes, and snippets.

@hsiboy
hsiboy / read_floppy.vb
Created Apr 16, 2022
read from a floppy drive using native visual basic (calling kernel32)
View read_floppy.vb
'Ripped from a post by Dragon <thedragon@dewieden.org> 2003
' - Also thanks to the KPD-Team and Arkadiy Olovyannikov
'
Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, lpSecurityAttributes As Any, ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, ByVal hTemplateFile As Long) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Private Declare Function SetFilePointer Lib "kernel32" (ByVal hFile As Long, ByVal lDistanceToMove As Long, lpDistanceToMoveHigh As Long, ByVal dwMoveMethod As Long) As Long
Private Declare Function ReadFile Lib "kernel32" (ByVal hFile As Long, lpBuffer As Any, ByVal nNumberOfBytesToRead As Long, lpNumberOfBytesRead As Long, ByVal lpOverlapped As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
@hsiboy
hsiboy / write_floppy.vb
Created Apr 16, 2022
Write to a floppy disk using native visual basic (calling kernel32)
View write_floppy.vb
'Ripped from a post by The Dragon (Alexander) 2003
'This code is free to use but pls contact me when you use or like it
'This only works under NT/2k/XP (all NT based OS's I think)
'u can contact me for support
'developer@dewieden.org
Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, lpSecurityAttributes As Any, ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, ByVal hTemplateFile As Long) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
@hsiboy
hsiboy / rmid2bin.bas
Created Oct 18, 2021
Convert Roland midi (sysex) firmware update(for Roland sp-808) to binary.
View rmid2bin.bas
' This program extracts the firmware binary from Roland's SP-808EX update
#include "vbcompat.bi"
Dim infil As String
Dim outfil As String
' Dim f1 As Long
Common Shared f1 As Long
Dim f2 As Long
Dim i As UShort
@hsiboy
hsiboy / Majority_KINGS_DAB_Internet_Radio_notes.md
Last active Jan 25, 2022
Majority KINGS DAB+ Internet Radio - notes
View Majority_KINGS_DAB_Internet_Radio_notes.md

Majority Kings Internet DAB+ Radio - Notes

A collection of notes on the inner workings of the majority kings radio.

Features

Media:

View w93.css
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
body{
background:#fff;
font-family: "Press Start 2P", cursive;
}
div#container{
background:#EEE;
font-family: "Press Start 2P", cursive;
font-color: FFF;
@hsiboy
hsiboy / Yamaha_SPX900-Repair_Notes.txt
Last active May 12, 2020
Yamaha SPX 900 - Repair Notes
View Yamaha_SPX900-Repair_Notes.txt
Yamaha SPx900 – repair log
-- FAULT --
Noted fault, "BATTERY LOW" warning on switch on, not passing audio.
Inspection revealed that a new battery was in place (reading 3.1v) and at some point, the 4 electrolytic capacitors on the PSU board had been replaced as well as the reservoir capacitor C163 across the 5v rail on the main board.
The display was very faint, and the LED backlight very dim. The display was original.
@hsiboy
hsiboy / Yamaha_spx90.txt
Last active May 22, 2020
Yamaha SPX90 Repair notes.
View Yamaha_spx90.txt
a "repair " note for a failed to repair one. I even worked out the schematic
but could not find the reason for the slightly linear ps characteristic, not
full switching, and then thermal runaway. Even tried rewinding the secondary
of a generic smps toroid and could get it reliably working but only with a
fan. There was some shorted turns in the original, presumably due to excess
View navtex.ino
/*
* Simple Navtex receiver - https://youtu.be/SwL_ZQ_iBIM
*
* by Martin Kuettner <berry@fmode.de> 03/2016
*
*
* Porting the 80C51 Assembler Program from "A NAVTEX Receiver for the DXer":
*
* Klaus Betke, Am Entengrund 7, D-26160 Bad Zwischenahn, Email: betke@itap.de
* 11-AUG-00/01-OCT-00
@hsiboy
hsiboy / flows_navtex.json
Created Oct 3, 2019
node-red flow for parsing Nasa Marine Navtex
View flows_navtex.json
[{"id":"223620c.0f47ce","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"2c814316.d50d3c","type":"serial-port","z":"","serialport":"/dev/ttyUSB0","serialbaud":"38400","databits":"8","parity":"none","stopbits":"1","newline":"<","bin":"false","out":"char","addchar":false,"responsetimeout":""},{"id":"54bad1ae.f71f7","type":"ui_tab","z":"223620c.0f47ce","name":"Navtex ","icon":"dashboard","order":4},{"id":"414b2950.f5ad28","type":"ui_group","z":"223620c.0f47ce","name":"Messages","tab":"54bad1ae.f71f7","disp":true,"width":"12","collapse":false},{"id":"ab226441.158398","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"re
View Ubiquiti unifi AP - Apple iOS and Mac OSX Incorrect Password - wifi ssid
My Apple devices started stating "incorrect password" for my network, even though they had conncted previously.
So how to fix Unifi network "incorrect password" error on iPhone, iPod, iPad and Macbook pro?
The reason for the error is the WiFi management done on iOS devices.
The default settings for the Unifi AP range are not compatible with iOS 11 and 12 and OSX High Sierra (and maybe more).
The reason for the error is the "DTIM Mode" (beacon timing) setting for power saving.