2014年6月24日 星期二


-- LUA string.dump and loadstring usage

-- [[  
function func_1()
  print("I am func 1")
end
function func_2()
  print("I am func 2")
end

-- [[
func_s = {}
func_s[1] = string.dump(func_1)
func_s[2] = string.dump(func_2)
-- ]]
print("output:")
for i=1,2 do
    local exe = loadstring( func_s[i] )
    exe()
end
stop()
-- ]]

--[[
output:
I am func 1
I am func 2
]]

Ubuntu 18.04 讀卡機 driver , ( IT-500U )

# ubuntu 18.04.06 , Let   (info-think it-500U card-reader) driver work $sudo apt-get install build-essential libusb-1.0-0-dev libpcsclite-de...