Warning: session_start(): open(/var/lib/php/sessions/sess_3gn886gnnijdl5lg27c0f39m5m, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
get("#178") -- PET font
get("#179") -- base64
l = math.ceil(#pixels/8)
t = {}
for i=1, l do
local b, x = 0, 128
for j=0, 7 do
local p = pixels[i*8-7+j]
if p ~= nil and p ~= 0 then
b = b+x
end
x = x/2
end
if i <= 8 then print(b) end
table.insert(t, string.char(b))
end
s = table.concat(t)
print("string length: "..tostring(#s))
compressed = encode64(s)
print("base64 length: "..tostring(#compressed))
code = "grab('#181') -- uncompressor\n"
code = code.."width, height = "..tostring(width)..", "..tostring(height).."\n"
code = code.."pixels = uncompress('"..compressed.."')"
print(code)