Jump to content


Cross_Sans's Content

There have been 63 items by Cross_Sans (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#264077 Claire (screenshot) - A hexadecimal programming language

Posted by Cross_Sans on 26 January 2017 - 05:41 PM in Media

This is just a screenshot of a program written in Claire and its output:
Posted Image
That is it, a preview of a project in development.



#264068 make v2.1 - Lua pre-processor for ComputerCraft

Posted by Cross_Sans on 26 January 2017 - 03:57 PM in APIs and Utilities

After realizating that this program transforms plain lua to byte code, this program has potential !

Good work :).



#264067 cLinux [now with OPTIONAL Desktop Enviroment] [Bye CraftOS, kappa]

Posted by Cross_Sans on 26 January 2017 - 03:50 PM in Operating Systems

View PostAnavrins, on 25 January 2017 - 04:22 PM, said:

View PostRedall, on 25 January 2017 - 02:01 PM, said:

Why the LL command does not exists ?
And what does that command do?
Edit: if you're talking about the ls -l alias, that's simply because both an alias program, nor ls -l has been implemented yet.

Yes, this is the ls -l linked to ll, that should be added to the aliases (because I always use ll).



#264066 "tree" program for ComputerCraft

Posted by Cross_Sans on 26 January 2017 - 03:48 PM in APIs and Utilities

View PostCrazedProgrammer, on 25 January 2017 - 11:07 PM, said:

...

Okay. Anyway, useful program.



#264028 "tree" program for ComputerCraft

Posted by Cross_Sans on 25 January 2017 - 03:37 PM in APIs and Utilities

Interresting, this could be useful if the program has a filter (to display only a certain list of file via a pattern...).



#264026 FLCF - Fast Lightweight Compressed File

Posted by Cross_Sans on 25 January 2017 - 03:05 PM in APIs and Utilities

FLCF - Fast Lightweight Compressed File


Hello !

Today, I created a lightweight API called FLCF which will helps you to compress files.

Download it here:
http://pastebin.com/2rYQaQef
or with the CraftOS shell:
pastebin get 2rYQaQef FLCF

It's really simple to use it:

os.loadAPI("FLCF"); -- Loads our API
FLCF.createArchive("/myArchive.flcf"); -- Create the archive at the root directory.
uarch = FLCF.openArchive("/myArchive.flcf"); -- Opens the archive newly created.
uarch.addFile("/rom/programs/edit", "/edit"); -- Adds the file edit from /rom/programs to the root directory of the archive.
uarch.saveArchive(); -- Save our edited archive.
uarch.extractFile("/edit", "/a_editor"); -- Extracts the file edit from the root directory of the archive.
uarch.removeFile("/edit"); -- Removes the file edit from the root directory of the archive.
uarch.saveArchive(); -- Save our edited archive.


That is it. Note that if you want to add multiple files from a directory, use this code:
os.loadAPI("FLCF");
FLCF.createArchive("/myArchive.flcf");
uarch = FLCF.openArchive("/myArchive.flcf");

for _, file in ipairs(fs.list("/photos")) do
if fs.isDir("/photos/" .. file) then
uarch.addFile("/photos" .. file, file);
end
end

uarch.saveArchive();

License:
Because of a outdated project stolen by Anonymous (click there to see the topic) without any permission (and also my fault because I did not put a license), this API is under MIT license (click here for license details). You can freely edit, modify, share with your friends this program; but do not forget to take credit to me if you are going to use this in a program or a operating system.

Thanks for reading my little post. I hope that you will find it useful. Please take some time to write your impressions and what needs to be added.

Have a nice day, Redall.



#264025 cLinux [now with OPTIONAL Desktop Enviroment] [Bye CraftOS, kappa]

Posted by Cross_Sans on 25 January 2017 - 02:01 PM in Operating Systems

Why the LL command does not exists ?



#263644 KrapFile - File Manager

Posted by Cross_Sans on 13 January 2017 - 05:39 PM in Programs

View PostTheRockettek, on 08 January 2017 - 06:48 PM, said:

View PostRedall, on 08 January 2017 - 08:37 AM, said:

why "KrapFile"Krap = Crap = Rubbish?

That is why :P

Why not xD



#263534 KrapFile - File Manager

Posted by Cross_Sans on 08 January 2017 - 08:37 AM in Programs

The program is useful, but why "KrapFile" ? (Krap = Crap = Rubbish? I still do not understand why this name :lol: )



#263533 [WIP] Helium - My (semi-)developer-friendly OS

Posted by Cross_Sans on 08 January 2017 - 08:34 AM in Operating Systems

Looks great. Good job !



#263488 EMRLD Shell ver 1.0 ALPHA

Posted by Cross_Sans on 07 January 2017 - 12:40 PM in Operating Systems

View PostWeareverylucky, on 29 December 2016 - 01:51 AM, said:

...

Why default programs ? Some users like me do not like default programs pre-installed like LuaIDE because I use external software to edit programs or Ink because I do not have need to write formated documents.



#263487 access denied when deleteing my files

Posted by Cross_Sans on 07 January 2017 - 12:38 PM in Ask a Pro

I tried:
local file = fs.open("/password.txt");
file.close();

and worked.



#263486 StarFormat - simple format software

Posted by Cross_Sans on 07 January 2017 - 12:33 PM in APIs and Utilities

View Postitzstarstruck, on 03 January 2017 - 01:48 AM, said:

View PostRedall, on 01 January 2017 - 03:25 PM, said:

...
Because I felt like it

If you were making a program that delete specific files per date, size, etc... it would be more useful.

EDIT: I looked more with your code, and you were using shell.run("..."); which is not recommended. Prefer using fs.delete("..."); than shell.run("...");.