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  

#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.



#250921 print('\someNumber')

Posted by MKlegoman357 on 25 April 2016 - 02:59 PM in Ask a Pro

ComputerCraft can only write the printable characters of 7-bit ASCII. In the latest versions of ComputerCraft Dan extended the printable characters, but as far as I know, they are not really mapped to a certain extended ASCII character set, you'll have to find them manually by printing them on the screen.



#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.



#250858 PHP HTTP

Posted by MKlegoman357 on 24 April 2016 - 03:41 PM in Ask a Pro

Yes you can, using the browsers built-in developer console. You can also inspect the actual HTML to find out how it works.



#250772 Option for Pocket Computers to render similarly to maps

Posted by MKlegoman357 on 23 April 2016 - 08:40 AM in Suggestions

Maybe when the pocket computer is selected it should be rendered like a map, but when you click on it it goes into the normal mode, where you can type and click.



#250440 Can you pass boolean values as command line arguments?

Posted by MKlegoman357 on 17 April 2016 - 09:46 PM in Ask a Pro

View PostChaosNicro, on 17 April 2016 - 08:30 PM, said:

I know it's considered a strength that Lua automatically assigns types to variables...

It's the shell program that parses the arguments and gives you a string, not Lua. There's no such thing as 'automatically assign a type to a variable'. Just wanted to put away this misconception you might have had :)



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

Posted by MKlegoman357 on 11 April 2016 - 01:18 PM in Forum Discussion

View PosteveryOS, on 11 April 2016 - 11:55 AM, said:

It is???

Well, PHP doesn't really 'do' anything with the web browser, it's ran server-side. It really doesn't matter what browser you use, as long as it supports the HTTP(S) protocol.



#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.



#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.



#249597 Poll Section

Posted by MKlegoman357 on 07 April 2016 - 05:54 AM in Forum Discussion

I'd disagree, polls are good as they are. I don't see a problem with their placement.



#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.



#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.



#249081 How do i make a key disk?

Posted by MKlegoman357 on 29 March 2016 - 03:23 PM in Ask a Pro

Do note that anyone who gets hold of the disk can simply copy over all of the data on it and make their own key-disk. You might want to consider combining the two methods: having a keycard-disk and a password/pin code.

EDIT: Oh, I forgot that each disk gets their own unique ID, so that actually might be used for authentication.



#249056 Request help with external editor and installling game wide API's

Posted by MKlegoman357 on 29 March 2016 - 05:20 AM in Ask a Pro

You can find the files of a computer or turtle in the world save folder inside the 'computer' directory. Each computer gets it's own directory there based on it's id. You can type 'id' into the computer to get it's id. Also, you only have to add the resource pack to the server, the client doesn't need it for multiplayer, only for singleplayer.



#248567 A way to find out if a computer is trying to turn it on

Posted by MKlegoman357 on 20 March 2016 - 06:36 PM in Ask a Pro

I can't really see a reason for this. Why do you need it?



#248456 Convert PNG to normal paints? and paint program

Posted by MKlegoman357 on 18 March 2016 - 04:59 PM in Ask a Pro

View PostReBraLaCC, on 18 March 2016 - 02:47 PM, said:

View PostLignum, on 18 March 2016 - 02:33 PM, said:

EDIT: This looks promising.

Currently at dropbox said:

Error (404)

We can't find the page you're looking for. Check out our Help Center and forumsfor help, or head back to home.
Thanks dropbox!

The first comment, seems to be working for me.



#248370 # opperator

Posted by MKlegoman357 on 17 March 2016 - 06:46 PM in Ask a Pro

View PostInDieTasten, on 17 March 2016 - 06:42 PM, said:

I think OP confused it with another language. cant remember which though. does anybody know of such preloading of libraries?

Might be pre-processor directives. They are used in C and C++, as well as many other languages. There are some pre-processors written for CC. Sewbacca, are you talking about these:

#include <string>

#define FOO 1
#define BAR

#ifdef BAR

#endif



#248355 # opperator

Posted by MKlegoman357 on 17 March 2016 - 04:37 PM in Ask a Pro

For tables the length (#) operator counts numerical indexes of a table, starting from the index 1 until it hits a nil value. If you're using a table as an array it will work as a simple array length operator. For strings the length operator counts the number of bytes (characters) of the string. You could write it (for tables) as a function in Lua like so:

local function length (tab)
  local len, i = 0, 1

  while tab[i] ~= nil do
    len = len + 1
    i = i + 1
  end

  return len
end

local t = {
 1, 2, 3
}

print(#t) --> 3

print(length(t)) --> 3

EDIT: got ninja'd and forgot about strings.



#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.



#247666 \n, ...

Posted by MKlegoman357 on 09 March 2016 - 04:45 PM in Ask a Pro

\r - carriage return
\z - the byte 0 (0x0)
\t - tab
\b - backspace (I think it's also called bell, not too sure)

That's some I can remember right now off the top of my head.



#247308 Proper 24-hour time format.

Posted by MKlegoman357 on 05 March 2016 - 07:22 AM in Suggestions

Why does everyone keep refering to it as "military time"? It's simply a 24-hour format.



#247268 Proper 24-hour time format.

Posted by MKlegoman357 on 04 March 2016 - 06:19 AM in Suggestions

I like the current format too.



#246915 listen:6: attempt to concatenate a string and nil

Posted by MKlegoman357 on 28 February 2016 - 08:44 PM in Ask a Pro

View PostTYKUHN2, on 28 February 2016 - 07:49 PM, said:

Numerical arrays and named arrays for example.

In Lua there are no arrays, there are only tables.



#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.



#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.