Jump to content


MKlegoman357's Content

There have been 76 items by MKlegoman357 (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#251896 CraftOS 2.0 - Dan's Secret Project

Posted by MKlegoman357 on 22 May 2016 - 04:27 PM in General

Also, looks like the OS is called CraftOS 2.0, but the game is CCNext. Or not. :D



#257746 CraftOS 2.0 - Dan's Secret Project

Posted by MKlegoman357 on 09 August 2016 - 04:19 PM in General

View PostLego Stax, on 04 August 2016 - 04:45 PM, said:

Like what Bomb Bloke said, what I mean is it would be nice to have a common API (or set of commands, whatever you want to call it) that every separate GUI framework shares (as there will probably be quite a few of them). This would allow a single coder to write their program to work properly with every GUI.
Basically, what I'm saying is that it would be nice for every GUI framework to be like XOrg in that they go as far as sharing the same commands for managing the screen or a window.
GUI frameworks could have other methods of displaying stuff outside of these commands as well, but every GUI would have to share this "common API/system".

View Postthecrimulo, on 09 August 2016 - 12:11 PM, said:

Actually, making standards, would lead to a nicer WM/DE feel, and if OSes could easily switch or simply don't have one, that'd be great

The main standard for drawing pixels will already be there, no need to create one yourself. There actually doesn't need to be any standards for any programs by default, since there will still be something similar to the window API and everything will basically work like in CC. The only thing that programs will need to adapt to is the screen size and dynamic size changes (e.g.: window gets resized, a new CCNext-multishell tab is opened). This works with CC and windowed OSes already, if you make your program adapt to display resolution and listen for "term_resize" events. This way people won't need to search for any standard if they want to make their programs compatible with a windowed OS.

Where there should be a standard, is the actual window controls and properties: allow window to be resized/fixed size, change window's title, enable/disable close/maximize/minimize buttons, etc.. Also, for OSes with a desktop a drag'n'drop functionality would be fun (e.g.: dragging a file from your desktop to a messaging app).



#250976 Idea Exchange

Posted by MKlegoman357 on 25 April 2016 - 07:56 PM in General

View PostAnavrins, on 25 April 2016 - 04:56 PM, said:

I just made this for myself recently, would it be allowed to be posted on the forums, or would it fall in the "no file hiding" rule?

It's the source code of the program that matters, so moderators could see what the actual program does. An encryption program shouldn't be marked as malicious just because it encrypts your files.



#254522 [Results in!] CCJam 2016

Posted by MKlegoman357 on 22 June 2016 - 05:05 PM in General

So I guess I should post this here in case I come up with ideas. I'm in!

GitHub repo



#254577 [Results in!] CCJam 2016

Posted by MKlegoman357 on 23 June 2016 - 07:53 AM in General

 TheRockettek, on 23 June 2016 - 07:26 AM, said:

It starts at the beggining of friday @ UTC+1 (UK TIME) ;p

UTC+0 actually.



#254553 [Results in!] CCJam 2016

Posted by MKlegoman357 on 22 June 2016 - 09:29 PM in General

In which timezone does the competition start. Because the live counter says there's 1 day and 22 hours left, but for me after 23 hours it will be Friday. May I suggest the GMT timezone? Since it's the one and only GMT+0 timezone :D.



#253825 [Results in!] CCJam 2016

Posted by MKlegoman357 on 15 June 2016 - 02:25 PM in General

Just because it has already been done doesn't mean you cannot redo it better, with more features and what not..



#256889 Post the status of your WIP project!

Posted by MKlegoman357 on 25 July 2016 - 07:57 PM in General

View PostExerro, on 25 July 2016 - 03:51 PM, said:

View PostEEVV, on 24 July 2016 - 06:20 PM, said:

I was going to browse the forums, but a while ago I had came up with 3 projects, and they all transitioned to a single project. Some people don't want other to let their source code to be readable, or they don't want to share the code for some reason. Here I am. I'm making an obfuscator for CC.

Obfuscated code is pretty easy to un-obfuscate for anybody, there are tools that do it for you and Lua is fairly easy to parse anyway, and you're not actually allowed to post obfuscated code on the forums.

You're thinking about compiling to Lua bytecode, which isn't really a good way to obfuscate your Lua source, but EEVV might be making a better obfuscator, that doesn't just use string.dump().

A good way to obfuscate the code would probably be to compile said code into a very primitive language, or a very primitive Lua source code, similar to how, for example, C++ is compiled into a Linux program. One complex language is "converted" into a very primitive language and thus it becomes very hard to read.



#256893 Post the status of your WIP project!

Posted by MKlegoman357 on 25 July 2016 - 08:55 PM in General

View PostExerro, on 25 July 2016 - 08:08 PM, said:

Nah, that's why I mentioned Lua parsing. If it can be run in CC standalone, it's most likely in Lua, and so it can be parsed as a Lua program and probably turned into something similar to its original, with the exception of variable names and similar things like that of course.

Like I said, you have to "convert" it into something primitive. For example, converting the Lua code into an assembly-like language and then either converting that into Lua or making a simple interpreter for it.



#249112 Windows 10 venting

Posted by MKlegoman357 on 29 March 2016 - 07:18 PM in General

I myself am using Windows 10 for quite some time now and haven't had many issues with it. I don't care about any privacy issues. I think it looks a lot nicer than any Windows so far and I also like the simple design. It's different for everyone when it comes to design and layout. I'm not using any 'mods' or 3rd party software to replace the default Windows programs or features. I am also not using tiles, too used to the start menu.

If there are ads in the start menu (I haven't noticed them) I doubt it's a core part of the OS. If it's a tile - it's an app, and if it's an app it's not really a part of the actual OS, is it?

Talking about start menu, I'm really used to the search feature, it works super fast and I can open any program I want in just second or two.

The main (maybe the only, for me) problems I have are two: automatic updates and tightened security. The first one bugs me because sometimes I am not connected to an infinite-data internet connection and I like to control when I actually download and install the updates. The second one is annoying when I'm modding games. Most (although not all) games' folders have their security tightened, so that you need to confirm every action you do, like deleting or moving files. It gets annoying with those messages ("You need to provide administrator permission to...") with a simple button to confirm that you're an administrator, which is kinda stupid...

I updated to Windows 10 (from Windows 7) mainly because of:

  • the design looks better
  • windows explorer has a better layout and more features
  • the command prompt got some little changes
  • the default windows apps for videos, music and photos (also calculator), they're awesome!

But of course there are issues with Windows 10, I'm not trying to deny it. When it comes to Windows I think you should be using Windows 7, and unless you have a good reason to update, don't really use Windows 10. There are a lot of hate about it (although a bit too much), and it's not just nothing. You should be aware of what your computer is running and what your needs are. I am satisfied with Windows 10.



#249555 Windows 10 venting

Posted by MKlegoman357 on 06 April 2016 - 01:20 PM in General

View PosteveryOS, on 06 April 2016 - 11:58 AM, said:

I use virtual machines when I'm away from my computer that has any sense to it (I just hate the computer I'm browsing the forums with) and from my experience, windows10, unlike windows7, converts jar files to zip files. So if it's the case that windows10 is essentially windows7 with UI, then why does it convert the files?

Windows doesn't convert any files you download with your internet browser, it's the browser itself that creates the file and thus changes the extension. Neither MS Edge, nor IE does such a thing.



#256241 Windows 10 venting

Posted by MKlegoman357 on 15 July 2016 - 09:44 PM in General

View PostDog, on 13 July 2016 - 09:03 PM, said:

To disable automatic updates in Win10, set your connection to 'Metered' - then you control when updates are downloaded. You still can't pick and choose between updates, but it's better than nothing...

View PostMKlegoman357, on 08 April 2016 - 07:22 PM, said:

Automatic Windows updates never bothered me, until now, as I'll be on a metered connection for about two weeks. So I went online to look for a 'hack' to disable them and instead found that the "Ask me to download and install" option is still actually a part of windows updates.

View PostBomb Bloke, on 08 April 2016 - 11:05 PM, said:

Good to know, but I notice that applies to professional versions only.

View PostDog, on 09 April 2016 - 06:03 PM, said:

Thanks for the link, MKlegoman357 - very informative :)

Disabling automatic updates worked fine for me. When there are updates Windows will pop a notification and wait for you to actually approve you want to download those updates. Though you cannot select which updates to install.



#249701 Windows 10 venting

Posted by MKlegoman357 on 08 April 2016 - 07:22 PM in General

Automatic Windows updates never bothered me, until now, as I'll be on a metered connection for about two weeks. So I went online to look for a 'hack' to disable them and instead found that the "Ask me to download and install" option is still actually a part of windows updates.



#249773 Windows 10 venting

Posted by MKlegoman357 on 09 April 2016 - 05:57 PM in General

View PostStekeblad, on 09 April 2016 - 08:36 AM, said:

Their is a setting to tell Windows that a connection is metered and then Windows will reduce its own traffic over that connection. I don't know how this affects Windows Update but it will probably save you some data.

Yes, I'm aware of that setting.



#258591 BLAST AntiMalware Suite - 'Yet another' string.find antivirus

Posted by MKlegoman357 on 28 August 2016 - 08:48 PM in Programs

View PostLuca_S, on 26 August 2016 - 09:02 PM, said:

Also it doesn't detect fs.delete("*") as a virus?

That doesn't work, all fs functions (with the exception of fs.find()) don't handle wildcards. But shell.run("rm *") would probably be dangerous.



#246198 Can't wrap head around prototyping and metatables, how to implement this...

Posted by MKlegoman357 on 20 February 2016 - 09:45 PM in Ask a Pro

Lua is more like JavaScript: even though it doesn't have a class system it gives you tools to create your own. In Lua, you can implement OOP in any way you want. Your class system can support operator overloading, function overloading, multiple inheritance and any other features you might think about. Since most of your OOP system will need tables and probably metatables you'll want to learn those. Tables are the best feature of Lua. Metatables allow you to extend them even more.

Both, tables and metatables, should actually be easy to understand, since they are quite basic (but powerful) things. A table is simply a container, where you can store any value under any key. Because of the lack of OOP, tables and functions can actually work together using the "colon" syntax:

local object = { --# define a simple object
  bar = "Hello World!";
}

function object:foo () --# create a function inside that object
  print(self.bar)
end

object:foo() --# prints 'Hello World!'

You can extend tables using metatables. Metatables define what a table should do in certain situations. For example if, when assigning a new value to a table:

local object = {}

object.foo = 1

..you'd want to modify that value before actually assigning it, you could use the '__newindex' metamethod:

local object = setmetatable({}, { --# create a table and change it's metatable
  __newindex = function (t, k, v) --# define the metamethod'
    rawset(t, k, v + 1) --# modify the value
  end;
})

object.foo = 1

print(object.foo) --# prints '2'



#246304 Can't wrap head around prototyping and metatables, how to implement this...

Posted by MKlegoman357 on 21 February 2016 - 08:12 PM in Ask a Pro

A table can only have one metatable, which should be enough. When defining a function like this:

local object = {
  bar = "test";
}

function object:foo (param)
  print(self.bar .. " " .. param)
end

It is equivalent to this:

local object = {
  bar = "test";
}

object.foo = function (self, param)
  print(self.bar .. " " .. param)
end

The color operator automagically adds the 'self' parameter as the first argument to the function. And no, the 'self' identifier is not a reserved keyword.



#246325 Can't wrap head around prototyping and metatables, how to implement this...

Posted by MKlegoman357 on 21 February 2016 - 10:40 PM in Ask a Pro

The problem is that the 'self' argument passed to the constructor is the 'Rectangle' object itself. It's not creating a new table for you, it's simply passing the 'Rectangle' table. In the object's initialization (the __call metamethod) you should crate a new table, setup it's metatable and then call the constructor on that table.



#250920 Codeable MP server apis Suggestion

Posted by MKlegoman357 on 25 April 2016 - 02:51 PM in Suggestions

Are you suggesting a way for the ComputerCraft computer to create an actual internet server? So you could use for things like hosting actual websites? Please rephrase your idea (the whole idea, not just a part of it), because nobody here seems to understand what your suggestion is.



#254177 CCEmuRedux Character Sheet

Posted by MKlegoman357 on 18 June 2016 - 08:24 PM in General

Oh, I see. Well, a euro sign (€) would be useful to have as another very common currency.



#253311 Speadersheet program - updated!

Posted by MKlegoman357 on 08 June 2016 - 12:01 PM in Programs

View Postrandomdude999, on 07 June 2016 - 06:50 PM, said:

Some new laptop keyboards don't even have an insert key. (For example my laptop (came preinstalled with win7))

All keyboards have an insert key. It might be hidden as a function key (fn). Or it's name might be shortened to something like "ins".



#254011 CCEmuRedux Character Sheet

Posted by MKlegoman357 on 17 June 2016 - 03:55 PM in General

View Postbauen1, on 17 June 2016 - 03:32 PM, said:

CC has a lot of unicode or something characters, a map of those chars would also be nice :)

This is the map those characters.



#254143 CCEmuRedux Character Sheet

Posted by MKlegoman357 on 18 June 2016 - 12:09 PM in General

I see a bunch of duplicate characters, like 20 and 182 or 0 and 9 and 10 and 13 and 128, which could be used to expand the character set even more.

EDIT: 21 and 167.



#254189 CCEmuRedux Character Sheet

Posted by MKlegoman357 on 18 June 2016 - 10:06 PM in General

I'm not really sure about the usefulness of signs such as 180 (´ - Acute accent - spacing acute) and 184 (¸ - Spacing cedilla). Where exactly would you use them? They're quite specific to my mind and maybe could be replaced with some more usable and generic

BTW, I noticed that the characters 238 and 206 look like nice torches.



#247723 Keep it day - A groundhog program

Posted by MKlegoman357 on 10 March 2016 - 07:57 AM in Programs

There's a /gamerule command made just for this thing.