Jump to content


Blue's Content

There have been 155 items by Blue (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#258924 How can I make a file read-only?

Posted by Blue on 03 September 2016 - 03:07 PM in Ask a Pro

You could overwrite fs.open like this:
local oldFs = fs
local oldOs = os
fs.open = function(file,method)
  if method == 'w'  and file == 'your_read_only_file_here' then
	error('File is read only!')
  else
	return oldFs.open(file,method)
  end
end
os.run = function(env,path,...)
  local args = {...}
  env.fs = fs
  env.os = os
  oldOs.run(env,path,...)
end

Note: I haven't tested this



#254687 A Rather Dapper Mapper – 'Satellite' GPS Maps!

Posted by Blue on 24 June 2016 - 08:04 AM in Programs

I haven't tried this out yet but it looks amazing! :D Also maybe you could use Command Computers to make scanning faster(using commands.getBlockInfo).



#253946 Password protected OS

Posted by Blue on 16 June 2016 - 07:26 PM in Operating Systems

View PostMikk809h, on 16 June 2016 - 07:14 PM, said:

View Postgreygraphics, on 16 June 2016 - 07:11 PM, said:

View PostSGunner2014, on 16 June 2016 - 03:20 PM, said:

Why are the passwords encrypted? Have you thought of hashing them instead?
Yes I did, but hashed codes can be found in pre-made tables. I think this way it is more secure...
Use a salt with the password. That'd prevent lookup-tables from working properly, without also getting the salt.
But where would you securely store the salt?



#252855 Axiom - The easy to use UI/OS

Posted by Blue on 03 June 2016 - 01:05 PM in Operating Systems

This keeps getting better and better! :D



#251278 [FIXED] Custom fs.open: java.lang.ArrayIndexOutOfBoundsException: 256

Posted by Blue on 15 May 2016 - 07:28 AM in Ask a Pro

View PostBomb Bloke, on 15 May 2016 - 07:09 AM, said:

Remember that you can't assign tables to variables - you're instead assigning pointers which lead to tables. Same goes for functions and coroutines.

So because "newHandle" and "oldHandle" each point to the same table, when you tell newHandle.close() to call oldHandle.close(), you're really telling the function to call itself. The resulting infinite loop of calls blows up the function stack - this causes a Java error within LuaJ, and a similar error message from Mimic.

If you want to create a new table with the same content as an existing one, you'll need to specifically make a new table and copy that content over.

Alternatively, you could just preserve your old close() pointer in a local variable:

local oldClose = handle.close

function handle.close()
  oldClose()
  etc...
Thanks,it works! :D I've almost spent a week trying to fix this



#251275 [FIXED] Custom fs.open: java.lang.ArrayIndexOutOfBoundsException: 256

Posted by Blue on 15 May 2016 - 06:39 AM in Ask a Pro

Hi, I've been trying to make a custom fs.open() to upload and download files automatically,but when I try to use it,it errors:

CCEmuRedux:
11: vm error: java.lang.ArrayIndexOutOfBoundsException: 256

Mimic:
11: stack overflow

Code:
(Pastebin)

Does anybody know how to fix this?



#250581 AnonOS - An OS built based on Bundu - READ THE CONTENT TO SEE WHY

Posted by Blue on 20 April 2016 - 02:30 PM in Operating Systems

View PostAnonymous, on 20 April 2016 - 01:47 PM, said:

All APIS provided for this program are originally by Redall, but since he has not licensed them, and I have, I technically own them
Correct me if I'm wrong,but software is automatically copyrighted,even without a license.
EDIT: Just looked it up,found this and this



#250485 Xeon OS

Posted by Blue on 18 April 2016 - 02:37 PM in Operating Systems

I like it,although there's a few things that you could improve:
- "necessary" is spelled incorrectly in the installer
- The installation is a little bit long. Choosing the avatar and colors should be optional and the continue buttons aren't necessary since you can't modify the input.
- Black text on a light-blue background doesn't look very nice
- Menu looks disorganized
Redesign
The login screen looks a bit like Glass UI,but that's ok :P
Posted Image

View PostStrangeGamerHD, on 11 April 2016 - 06:34 PM, said:

-Your Passwords are Save :3 (Thanks to MD5 encryption)
MD5 is insecure,use SHA-256 or SHA-512 instead.

How is the app store going to work? If you want to make a "real" app store like Oeed and DannySMC try learning some PHP.

Also,you should add a logo to your post,maybe something like this:
Spoiler



#250081 Glass Cloud[UPDATED]

Posted by Blue on 13 April 2016 - 09:55 AM in Media

Spoiler
UPDATE:
- Added Google login
- Added dashboard



#249985 Malicous Scripts : We Do What We Want

Posted by Blue on 12 April 2016 - 03:24 PM in Forum Discussion

View PostAnonymous, on 12 April 2016 - 11:31 AM, said:

For one, Anonymous is no organization, but instead a collective. Anyone can be a leader.
That's one thing I don't like about Anonymous,anyone can be a leader,even when they have no clue what freedom of speech is.

View PostAnonymous, on 12 April 2016 - 11:31 AM, said:

Anonymous stands for freedom of the internet. Censorship is considered little freedom.
Even when the majority of the people don't want your so-called 'freedom'?

Please tell me this a joke...



#249890 The forums are compatible with 3DS and other mobile devices. Is this purposeful?

Posted by Blue on 11 April 2016 - 07:53 AM in Forum Discussion

View PosteveryOS, on 10 April 2016 - 10:00 PM, said:

Quote

The forums use IPboards. One of the features is mobility
What about:
Html
Css
Js
Php
I don't quite understand what you mean. But if you're talking about compatibility,PHP is a server side language,so it's compatible with all browsers. As for HTML,CSS and Javascript any decent modern browser(like your DS browser,which is based on Opera) supports those,even your 'awful' mobile browser which is probably based on WebKit(assuming it's the old default Android Browser)



#249334 Glass UI Dev 1.3 - Draggable icons,new sidebar and more!

Posted by Blue on 02 April 2016 - 01:56 PM in Operating Systems

In order to make way for new features,multitasking will included in the next update(1.5). It's one of the main reasons Glass UI is being delayed so often.



#249326 Glass Cloud[UPDATED]

Posted by Blue on 02 April 2016 - 04:43 AM in Media

View PostH4X0RZ, on 02 April 2016 - 12:11 AM, said:

It looks nice. The only thing is don't like is the "Login" button after you registered. It's the same color as the background.
Thanks! I'll fix the login button.



#249284 Glass Cloud[UPDATED]

Posted by Blue on 01 April 2016 - 04:45 PM in Media

View PostNothy, on 01 April 2016 - 04:44 PM, said:

I love that design, it's absolutely amazing.
Thanks! :D



#249282 Glass Cloud[UPDATED]

Posted by Blue on 01 April 2016 - 04:22 PM in Media

Glass Cloud(I haven't made a logo for it yet)
I've been designing(and coding) a website to save Glass UI settings(themes,apps,options etc...).
If I get it to work(the only server-side code I've done is the login system) it will be included in Glass UI 1.4
Here's what I've done so far:
Spoiler
Note: A lot of the components come from Material Design Lite.
So,do you like or dislike the design? If not,what could I do to improve it?
UPDATE:
- Added Google login
- Added dashboard



#248081 Glass UI Dev 1.3 - Draggable icons,new sidebar and more!

Posted by Blue on 15 March 2016 - 06:14 PM in Operating Systems

For those who haven't seen the status updates on my profile,Glass UI is being delayed until CC 2.0 comes out :)



#246020 Glass UI Dev 1.3 - Draggable icons,new sidebar and more!

Posted by Blue on 18 February 2016 - 12:13 PM in Operating Systems

View PostRedall, on 16 February 2016 - 01:40 PM, said:

I :wub: this OS, it's the best i've seen ! Very good work :D
Thanks!



#245563 How to download from pastebin?

Posted by Blue on 14 February 2016 - 09:26 AM in Ask a Pro

View PostTigerAlen, on 14 February 2016 - 08:06 AM, said:

i entered pastebin get JtiSzjC2 connect 4
You can't add spaces in file names,try "connect_4".



#244612 TechOS 1.0 Is out 1/31/2016

Posted by Blue on 31 January 2016 - 01:12 PM in Operating Systems

Instead of making everything white,use a custom download function like this:
local download = function(id,file)
local code = http.get("pastebin.com/raw/"..textutils.urlEncode( id))
local h = fs.open(file,"w")
h.write(code)
h.close()
end
download("r8M5Y8pz","TechOS")



#243742 [0.7d] Northbridge Terminal OS - Back-ported Functions, Multitasking and more!

Posted by Blue on 20 January 2016 - 12:43 PM in Operating Systems

You forgot to change the Y position for mouse clicking. Apart from that,this looks like an awesome OS! :D



#243578 Glass UI Dev 1.3 - Draggable icons,new sidebar and more!

Posted by Blue on 18 January 2016 - 08:37 PM in Operating Systems

Posted Image
Glass UI isn't dead!



#243556 SifOS 0.7 beta

Posted by Blue on 18 January 2016 - 05:20 PM in Operating Systems

Screenies please! :)
Also,there's a little typo:
pastern run ismFndXE
Should be:
pastebin run ismFndXE
EDIT: The pastebin ID doesn't seem to be valid. It might've got marked as spam. You can try opening %appdata%/.minecraft/saves/< your world >/computer/<id>/<filename> in a text editor and pasting it at http://pastebin.com/



#243014 CCEmuRedux - ComputerCraft Emulator Redux

Posted by Blue on 13 January 2016 - 06:44 PM in General

Is there any way to turn off the auto-updater to run this offline and change files?



#242785 MD5 Hash

Posted by Blue on 10 January 2016 - 12:09 PM in Programs

It's not very secure(passwords and their hashes could be stored in a huge database,like this one),you'll need to salt it if you're really worried about security(it still use plain SHA-256 in my OS,BTW).



#242436 CCEmuRedux - ComputerCraft Emulator Redux

Posted by Blue on 05 January 2016 - 08:27 AM in General

Great emulator! :D Are you going to be porting it to ARM(Raspberry PI)? There seems to be a Raspberry PI port of libgdx. Not sure if it works,though.
Edit: Oops! Didn't see the issue tracker,sorry.