- Automatic updates
- Improving guest account
- Addition of app store
- General performance improvement and better code readability (Should help me troubleshoot and expand code more easily)
- Improving UI usability and flow while improving multi-thread support (Switching between programs and never leaving the UI)
- ComputerCraft | Programmable Computers for Minecraft
- → Kizz's Content
Kizz's Content
There have been 99 items by Kizz (Search limited from 10-February 22)
#221503 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 15 June 2015 - 07:46 PM
in
Operating Systems
#221477 Discover App (Ver. 7.4) - Apps, Snippets, Cloud Storage, Chat Board, Mail, Pr...
Posted by
Kizz
on 15 June 2015 - 02:24 PM
in
Programs
Also here is my forum thread which will include the credit and links once I have implemented the store. Thanks for letting me spread your program around haha
#221471 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 15 June 2015 - 01:16 PM
in
Operating Systems
#221468 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 15 June 2015 - 12:26 PM
in
Operating Systems
Be warned, however, as the guest account is still undergoing work to make it truly secure.
#221007 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 12 June 2015 - 01:05 PM
in
Operating Systems
#220909 Code Improvement
Posted by
Kizz
on 11 June 2015 - 06:29 PM
in
Ask a Pro
Let me know what you all think!
--Default Variable Settings--
local alrm=true
local lck=false
local light=true
local function cleanup()
term.clear()
term.setCursorPos(1,1)
end
--Object Manipulation Functions--
local function toggleAlrm() --Alarm
alrm = not alrm
end
local function toggleLck() --Locks
lck = not lck
end
local function toggleLight() --Lights
light = not light
end
--Setup--
cleanup()
--MainProgram--
while true do
--Present Choices--
print'Welcome to Base Control'
print'Please make a selection:'
print('1: '.. (alrm and "Disable" or "Enable" ) ..' Night Alarm')
print('2: '.. (lck and "Disable" or "Enable" ) ..' Base Lockdown')
print('3: '.. (light and "Disable" or "Enable" ) ..' Base Lighting')
print'4: Exit'
print''
--Pull Input--
write'Selection:'
local rInput=read()
rInput=tonumber(rInput)
--Get States--
if alrm then
alrmState="Disable"
elseif not alrm then
alrmState="Enable"
end
if lck then
lckState="Disable"
elseif not lck then
lckState="Enable"
end
if light then
lightState="Disable"
elseif not light then
lightState="Enable"
end
--Menu Value Masks--
local chAlrm=1
local chLck=2
local chLight=3
local chQuit=4
--Process Choice--
if rInput==chAlrm then
print(''..alrmState..'ing alarm!')
toggleAlrm()
elseif rInput==chLck then
print(''..lckState..'ing lockdown!')
toggleLck()
elseif rInput==chLight then
print(''..lightState..'ing lights!')
toggleLight()
elseif rInput==chQuit then
print'Closing!'
return
else
print'Invalid choice'
end
--Cleanup--
sleep(1)
cleanup()
end
Pastebin: http://pastebin.com/JH6K4GkE
#220906 Code Improvement
Posted by
Kizz
on 11 June 2015 - 05:51 PM
in
Ask a Pro
I have a terrible habit of forgetting to use local or just adding it in much later than I should. I had no idea that forcing local would improve performance, but it makes total sense!
Again, thanks for the tips. I look forward to releasing more programs with these tips in mind.
#220903 Code Improvement
Posted by
Kizz
on 11 June 2015 - 05:20 PM
in
Ask a Pro
And yea, I often am too lazy to use elseif and the lot. Bad habit!
Thanks for the suggestions!
#220870 Code Improvement
Posted by
Kizz
on 11 June 2015 - 01:33 PM
in
Ask a Pro
I am once again bored at work, doing a bit of programming. I am making a little program to allow me to switch the states of a few objects from on to off and back on. As I have almost always programmed the same way for the last few years, I would like a few suggestions on improving my code.
The functional part of this code hasn't been created. I have no issues doing that. What I would like to know is: Is there a better, more compact or more correct way to build the menu I have created. Is what I have solid, or am I missing a very obvious alternative that could improve my code?
Here is my code:
--defaults
alrm=1
lck=0
light=1
function getAlrm()
if alrm==1 then
alrm=0
return
end
if alrm==0 then
alrm=1
return
end
end
function getLck()
if lck==1 then
lck=0
return
end
if lck==0 then
lck=1
return
end
end
function getLight()
if light==1 then
light=0
return
end
if light==0 then
light=1
return
end
end
while true do
--::home::
if alrm==1 then
alrmState="Disable"
end
if alrm==0 then
alrmState="Enable"
end
if lck==1 then
lckState="Disable"
end
if lck==0 then
lckState="Enable"
end
if light==1 then
lightState="Disable"
end
if light==0 then
lightState="Enable"
end
print'Welcome to Base Control'
print'Please make a selection:'
print('1: '..alrmState..' Night Alarm')
print('2: '..lckState..' Base Lockdown')
print('3: '..lightState..' Base Lighting')
print'4: Exit'
print''
write'Selection:'
rInput=read()
rInput=tonumber(rInput)
if rInput==1 then
print(''..alrmState..'ing alarm!')
getAlrm()
end
if rInput==2 then
print(''..lckState..'ing lockdown!')
getLck()
end
if rInput==3 then
print(''..lightState..'ing lights!')
getLight()
end
if rInput==4 then
print'Closing!'
return
end
if rInput~=1 and rInput~=2 and rInput~=3 and rInput~=4 then
print'Invalid choice'
end
sleep(1)
term.clear()
term.setCursorPos(1,1)
end
Alternatively, here is the pastebin: http://pastebin.com/b8HPJCKE
Again, there is nothing functionally wrong with the menu. It works as intended.
#220724 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 10 June 2015 - 01:19 PM
in
Operating Systems
At the moment, if you throw your tablet at a friend on your server, chances are, they won't be able to hack into it without being given the password. (Granted, the guest account still needs work.) My main goal was to have a secure login system, and I was never really interested in having file restrictions or the lot. It just fell into place due to the guest account.
Also Atenefyr, I took no offense to your criticism. I appreciate any suggestions as long as you don't simply insult me for not being an ace programmer.
#215593 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 27 April 2015 - 11:48 AM
in
Operating Systems
Anavrins, on 26 April 2015 - 07:47 PM, said:
Kizz, on 22 April 2015 - 11:53 AM, said:
Anavrins, on 22 April 2015 - 01:18 AM, said:
https://www.youtube....h?v=8ZtInClXe1Q
Posting this since I am able, even as a Guest, to get the user's hashes.
Yea, I had thought of using a salt as well, but with a sha256 hash on a computercraft OS with no currently seen methods to access the hash without logging in, I am not too concerned. If you really need that much security, then don't allow guests.
My major concern is making sure there are no up front vulnerabilities and fixing any bugs that crash the OS or have unwanted results. I will come back and make it more secure but I would really like to move on to working on a GUI.
Incompetent? Don't be an ass. If you re-read the main post, this is still in development. I'm no professional so stop expecting perfect. If you want perfect, go make it yourself.
Atenefyr, on 24 April 2015 - 09:09 PM, said:
#215321 Touchpoint API
Posted by
Kizz
on 24 April 2015 - 07:30 PM
in
APIs and Utilities
#215319 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 24 April 2015 - 07:27 PM
in
Operating Systems
- Added a new GUI API (touchpoint)
- Improved GUI
- Added guest GUI support
- Fixed several security bugs, improved gui support for programs
#215308 Touchpoint API
Posted by
Kizz
on 24 April 2015 - 05:54 PM
in
APIs and Utilities
I'm sure there is a way to break the loop in touchpoint from my GUI program, but I could not figure it out.
#215185 GUI.API | Simple & Powerful Buttons,Dialogue Boxes, Text-boxes, and More!
Posted by
Kizz
on 23 April 2015 - 01:36 PM
in
APIs and Utilities
It looked promising but is clearly unfinished and no longer active.
#215121 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 22 April 2015 - 07:58 PM
in
Operating Systems
My bad... your name is creator... you bolded creator... my brain... is slow!
#215119 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 22 April 2015 - 07:54 PM
in
Operating Systems
#215113 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 22 April 2015 - 07:41 PM
in
Operating Systems
Edit: I used this (broken) API to help forge my GUI. I would like to credit account.username for the API. I did have to change it a lot though.
#215046 Override Read Only ROM
Posted by
Kizz
on 22 April 2015 - 01:21 PM
in
Ask a Pro
The solution I have chosen works perfectly because you now cannot run, edit or use the old methods of editing/deleting.
Since the user has to use my edit and delete, I can rebuild edit and delete to not allow editing or deletion of my own OS files.
As of this moment, I have found my solution.
#215035 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 22 April 2015 - 12:15 PM
in
Operating Systems
#215029 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 22 April 2015 - 11:53 AM
in
Operating Systems
Anavrins, on 22 April 2015 - 01:18 AM, said:
https://www.youtube....h?v=8ZtInClXe1Q
Posting this since I am able, even as a Guest, to get the user's hashes.
Yea, I had thought of using a salt as well, but with a sha256 hash on a computercraft OS with no currently seen methods to access the hash without logging in, I am not too concerned. If you really need that much security, then don't allow guests.
My major concern is making sure there are no up front vulnerabilities and fixing any bugs that crash the OS or have unwanted results. I will come back and make it more secure but I would really like to move on to working on a GUI.
#215000 KOS- Advanced Secure Handheld PC Operating System
Posted by
Kizz
on 22 April 2015 - 12:46 AM
in
Operating Systems
- ComputerCraft | Programmable Computers for Minecraft
- → Kizz's Content


