Jump to content

  • Log In with Google      Sign In   
  • Create Account

Tutorial Doctor

Member Since 19 Oct 2013
Offline Last Active Jul 20 2016 06:11 PM

#5288494 Total Begginer needs lot of advice

Posted by Tutorial Doctor on 24 April 2016 - 02:15 PM

No prob about the down vote. You are on the right track though.

 

I learned programming concepts using Python with Pythonista (an IOS IDE on the iPad). From learning the various libraries included with Python, that lead into other areas of programming (networking, databases, regular expressions etc.), all of which are topics used across the board. That lead to research in web development for a little while. I eventually found the Godot game engine which uses a scripting language based on Python (perfect!). This engine can also be extended using the C++ programming language (great for getting more in-depth programming experience). An easy intro to C++ programming with this engine is making extensions. I could also use Python to make plugins for Blender 3D.

 

My next goal is to learn Ruby for web app development with Ruby on Rails and also for building plugins for Trimble Sketchup. All of these skills will be useful in creating content that I believe in. The story goes on. The best to you in your pursuits. 

 

My github repo gave me writing experience and got me a job as a technical writer. 

 

I have no college education.




#5288475 Total Begginer needs lot of advice

Posted by Tutorial Doctor on 24 April 2016 - 12:41 PM

Hello.

 

Imagine that you want to live in your dream house. You have a few options:

 

1. You could go into the forest and cut down trees to build tools to cut the trees into perfect wooden planks so that you can build your dream house. 

2. You could go to a hardware store and buy both tools and pre-cut wooden planks to build your house.

3. You could buy a house and renovate it.

4. You could search all over the world and find your dream house has already been made and purchase it.

 

I think backwards. If it is already built, I just buy it. For example, if there is a game out already that was in my head, I play that game and I enjoy whatever entertainment I sought.

 

I could use templates and hack them to fit my needs.

 

I could use frameworks and libraries.

 

I could build something from scratch.

 

Get a good idea of what you want to do. Find the best way to do it (I like the easiest and fastest myself). Then, learn the languages or tools you need to learn in order to make your dream game. No need to build it from scratch when there are tools that already exist to help you build your idea.

 

And if you need a bit of help:

 

https://github.com/TutorialDoctor/Software_Development




#5275156 Visual scripting vs Coding?

Posted by Tutorial Doctor on 10 February 2016 - 11:58 AM

In my continuing study and practice of programming, I have found that the true "skill" of programming is logic and reasoning; problem solving.

 

The best support of my stance is here:

 

Whether it be a visual scripting system, Python, or C++, you can't do anything useful without the ability to solve problems using logic and reasoning. 

 

I would use both if I were you. Don't let tradition hinder you. 




#5272628 Storing AI data in a SQL database?

Posted by Tutorial Doctor on 25 January 2016 - 04:38 PM

Great advice. I will look into all of the above. Thanks ApochPiQ.




#5272142 Game Development Software

Posted by Tutorial Doctor on 21 January 2016 - 07:45 AM

I am wondering why a game engine wasn't recommended, unless I missed something. 

 

I would recommend Godot:

http://www.godotengine.org/projects/godot-engine




#5261664 Can a full program be stored in a photo image

Posted by Tutorial Doctor on 11 November 2015 - 02:38 PM

Great information in this thread. And thanks for correcting my understanding. As a few of you have noted, I am wondering about future proofing. 

 

Looking at this digital era we are in, it seems that no future generations will have evidence of our advancement without having hardware explore the information we transmit through the internet. Hard drives fail and after that the data is lost to us and to future generations. 

 

However, we still have ancient artifacts from many many generations ago which allows us to explore how civilizations were in those days. The latest way to store information in a more resilient way was/is paper. 

 

I will definitely look more into Steganography and other keywords mentioned here though. Thanks very much.




#5261239 Can a full program be stored in a photo image

Posted by Tutorial Doctor on 09 November 2015 - 04:31 PM

 


I was wondering how much data can be stored in a pixel. Could pixels possibly store data other than color, like text? Or could colors represent text in a way? Can colors be converted to text?

 

Pixels are just data. They can store whatever you want. You could certainly, say, reserve the lowest bit in each R, G or B channels to represent part of your data, with minimal effect on the final image.

 

 

 


This idea came about when thinking about a new type of security, which is really an old type of security. Paper.

 

Use the correct term. Security has a very specific context when used in computing, and I don't think that's the usage you're referring to. I think you're talking about backing up data on paper using a printed image.

 

Of course, if you do that, your formerly perfect digital data is now at the mercy of the printing process and the scanning process.

 

Maybe read:

https://en.wikipedia.org/wiki/Digital_watermarking

 

 

I was thinking of a use case for this type of system, where authentication is determined by a piece of paper, where part of the security layer is that a piece of paper, on which part of the program resides, has to be scanned into the system for the rest of the system to work. 

 

It may be a useless experiment, but I am still wondering about other applications. 




#5261235 Can a full program be stored in a photo image

Posted by Tutorial Doctor on 09 November 2015 - 04:27 PM

I read that it would take about 9 million punch cards to store 1 gigabyte of date. That would be a good starting base for me.

 

Now suppose that the punch card patterns were stored as pixel patterns on a sheet of paper, and read by a computer. It seems like it's more than possible with DPI adjustments and such.

 

I also ready that punch cards ARE digital storage. No explanation was given as to what that insinuates. 




#5261223 Can a full program be stored in a photo image

Posted by Tutorial Doctor on 09 November 2015 - 04:03 PM

I figured this was the place to ask.

 

I had an idea, and I supposed people with knowledge in graphics programming and theory could enlighten me. 

 

I had an idea that paper can be repurposed to backup computers. I don't mean printing the source code of a program on paper. What I mean is that the computer can look at an image, and execute the encoded program. Something like barcodes, but with more memory.

 

Barcodes store information. QR codes store information. So I tried to store a paragraph in a QR code, and it was too much to handle. 

 

I was wondering how much data can be stored in a pixel. Could pixels possibly store data other than color, like text? Or could colors represent text in a way? Can colors be converted to text?

 

This idea came about when thinking about a new type of security, which is really an old type of security. Paper.

 

Why paper? I don't really know yet. 

 

Perhaps something like a modern punch code/card system?

 

Any links to good resources on topics that might be of interest to me would be much appreciated. 




#5249042 Programming scientific GUI's, data and gui layout?

Posted by Tutorial Doctor on 26 August 2015 - 01:24 PM


Lets say I have a class that represents some data (in this example just an array of numbers) I will load from a text file, and store it in an Object data.rawData; Now say I want to double the value of each number. What is the best way to do this?

 

Python has libraries for data analysis. In this specific case you would use something called list comprehension which can double elements in an array like so:

array = [1,2,3,4,5,6,7,8,9,10]
double = [2*x for x in array]
print(double)

PyCon is a good resource on lectures for data analysis using Python (You can check youtube for prior events):

http://www.analyticsvidhya.com/blog/2015/04/pycon-montreal-2015-data-science-workshops/

 

This data can be plotted using IPython

http://ipython.org/notebook.html

 

And then there is matplotlib:

http://matplotlib.org

 

And numpy:

http://www.numpy.org

 

Maybe this will help?




#5247904 Scrolling background logic?

Posted by Tutorial Doctor on 20 August 2015 - 11:46 AM

What is the logic for an infinite scrolling background given an engine with basic tools?

 

Also, would this be similar to the logic for a procedural level?

 

In a basic explanation, anyone care to give it a go?

 

Right now I am thinking of it like a typewriter. When the head gets to the end, it jumps back to the first position and repeats that. Am I close?




#5245812 What is a wrapper? What is a Decorator?

Posted by Tutorial Doctor on 11 August 2015 - 01:38 PM

When you say that it is a piece of code that envelopes existing code, it sounds much like a function inside of a function. Whereas recursion is when a function calls itself, I am supposing a wrapper is the function that calls another function. Or perhaps even, it returns that same function (slightly modified even). 

 

I am thinking of a programming analogy (code that is analogous to real life) that demonstrates wrappers and decorators. 

 

They say decorators are syntactic sugar (easier on the eyes?) for wrappers. So a decorator is a "better way" to create a wrapper? Or is it a better way to apply a wrapper? 

 

Is my idea still correct? Is it a function that calls or returns another function? From my research, it seems there is a broader definition. 

def candy():
    return "candy"

def wrapper():
    return candy()

print(wrapper())

Yea? If so, how would this become a decorator? Decorate the wrapper with something? Or do we decorate the candy?




#5240485 Using Fuzzy Data for AI

Posted by Tutorial Doctor on 15 July 2015 - 07:58 AM

Great info Apoch! Thanks a lot. I perhaps will try to simulate type 2 fuzzy logic (they say it is complex) one day.

Exactly the type of response I needed. Thanks again.


#5240357 Using Fuzzy Data for AI

Posted by Tutorial Doctor on 14 July 2015 - 05:13 PM

I am playing around with a way to structure fuzzy data using python. I am really wondering about some applications of such data. 

 

It looks like I would have to do Type 2 fuzzy logic in order to get real fuzziness, because if a value isn't in the set that I have created (which is crisp) then am I to think that the value still doesn't belong to the set? 

 

Here is the code:

#Only Integers right now
# Need backwards fuzziness (hi to low)
# Need to handle float ranges

cold = [1,213]
hot = [90,100]
funny = [8,10]
close = [0,5]

joes_distance = 1
joes_funniness = 9

def membership(x,List):
    return (float(x)-List[0])/(List[-1]-List[0])
def Is(x,List):
    print membership(x,List)
    return x in range(List[0],List[-1]+1)


print Is(joes_distance,close)
print Is(93,hot)


if Is(joes_funniness,funny):
    print "Joe is %s funny"%membership(joes_funniness,funny)
else:
    print "Joe is not funny at all"

def get_fuzzy_values(List,Label):
    for i in range(List[0],List[-1]+1):
        print str(i) + " is " + str((float(i)-List[0])/(List[-1]-List[0])) + " " + Label
    
get_fuzzy_values(cold,"Cold")

So for an object to be considered close, it has to be in the range of 0-5. But is an object that is 5.1 units away not close? Well, it is still close, but to another degree. So, using any sort of boolean logic seems futile when trying to keep everything fuzzy. Perhaps I should consider the extremes to be only the values in consideration?

 

Anything that has any temperature is both hot and cold, but to various degrees of hot and cold (how do you work with this type of logic).

 

At any rate, I am still wondering about some possible applications of the current structure I have in an AI system. Or perhaps in a game at all.

 

I know my code is probably unnecessarily elaborate, but I am just toying with ideas right now. 




#5238689 Massive Python Example Script

Posted by Tutorial Doctor on 06 July 2015 - 06:02 PM

Good point. Thanks.




PARTNERS