Jump to content


Goof's Content

There have been 8 items by Goof (Search limited from 30-March 23)


By content type

See this member's

Sort by                Order  

#266753 Insert variables into tables [SOLVED]

Posted by Goof on 01 May 2017 - 06:06 PM in Ask a Pro

Instead of
a = {name = hello) --# the variable 'hello' is not defined. (Use as string form "hello")
tab = {tabl} --# why define this if you do not use it?
table.insert(tabl, a) --# inserts a (Which is just an empty table) to the tabl reference

You could do
tabl.name = "Hello" --# Directly changes the name index of the table to the desired value ("Hello")

That would directly change the tabl reference and add/change the name to the desired string/value.

However I am not entirely sure what your problem is.

I also found a syntax error, which may just be a typo, but who knows :)
a = {name = hello)
                 ^



#266491 Text to Binary converter (API)

Posted by Goof on 20 April 2017 - 01:56 PM in APIs and Utilities

 KidBrine, on 20 April 2017 - 12:56 AM, said:

I fixed my code and tested it, it should be goochie now.
before pointing out an error in the code test it first and tell me how to activate the bug.
As Exerro said, this code is not valid lua. It has syntax error(s) which you would need to fix.
Try and run the pastebin program given in the original post and see the syntax error appearing.

Spoiler

So again, you need to test your program before publishing it. If you're asking for help, I am sure someone would be willing to look through for other mistakes at the Ask a Pro section.

EDIT: King was a bit faster than me, so i guess i got ninja'd



#258501 MarcoDOS

Posted by Goof on 27 August 2016 - 03:21 PM in Operating Systems

View PostAdmicos, on 27 August 2016 - 02:13 PM, said:

Spoiler
I do certainly not see the point of copying in-built source code, modifying it a bit, then posting it in the Operating Systems forum.

Operating Systems should be something functional and creative; not just a copy of the default command line with barely any differences;

My suggestion would be to try and be more creative; Add some features, get to know the code. Maybe even start from scratch and see what you are able to accomplish on your own.



#257666 Post Your Internet Speed!

Posted by Goof on 07 August 2016 - 09:38 AM in General

Finally a "small" upgrade:
Old:
Posted Image

New
Posted Image

B) :ph34r:



#253949 Password protected OS

Posted by Goof on 16 June 2016 - 07:30 PM in Operating Systems

View PostBlue, on 16 June 2016 - 07:26 PM, said:

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?
The salt doesn't have to be stored in a secret place.

You can save the hash of the password+salt in the same file, if you want to. (For example with the salt on the 2nd line)



#253940 Password protected OS

Posted by Goof on 16 June 2016 - 07:14 PM in Operating Systems

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.



#253756 Any possible way to detect user using the PC?

Posted by Goof on 14 June 2016 - 12:17 PM in Ask a Pro

No, in the way ComputerCraft works, this is not possible.

If two players peeked into the computer, which player would be the right to choose? - (this is what computercraft would have trouble doing)
The question has also been arised many times, to allow programs to get the players which are accessing the computer, but this has not been a reality...

I hope this answered your question



#252965 HTTP API Bug

Posted by Goof on 04 June 2016 - 08:33 AM in Ask a Pro

Well. I dont know how you're connecting to your domain, but I am able to connect to your website with ease.
lua> x=http.get("http://budgie.blue/")
lua> x
table: somerandomID
lua> x.close()
I think you might have forgotten to add the http:// and then added www. (which in some cases appear to mess things up a bit, and hopefully in your case not work.)
Posted Image

And here is an example of which methods, in my cases, work

Posted Image
I hope this helped you.

Also the settings for Computercraft should've been fixed, so i dont think the domain you're looking for is being blacklisted by CC. (If so, then change the whitelist to *)

(This is not a replicable bug, unless you prove otherwise with more examples/tests)