Showing posts with label xml. Show all posts
Showing posts with label xml. Show all posts

Where the Yellow Brick road leads

"And Kansas, 'she said', is the name of the star".

The weather is brutal here today and I shoveled about 2.5 tons of the slushy frozen crap, myself. I didn't see many mosquitoes when I was out, it was nice to be away from those blood sucking vampires.

Backward induction says that as far as the puzzle goes, it can be considered a case where all elements have been selected except one. At this point, the problem is simple. You select one thing and put it in one place. This is as simple as a puzzle with one piece. So this is approached like the Fibonacci sequence computation, where we compute (element+element+1) recursively. I have covered this before and come to a method which simply swaps registers and adds in a loop. When `gcc` runs it does exactly the opposite of programming. In other words, I can take `gcc` and turn it inside out to generate any possible valid program by backward induction avoiding branch points that are errors. Now, that is the theory and "Many a plan of Mouse..." could be the outcome.

Ideas that came from 'open course ware' at MIT programming are really applicable here, or so it seems. I am also using information from Yale game theory. The problem of solving the puzzle and solving the program that solves the problem is the same issue. I start with the final case and move backwards. In this case I need to select an element from a list which is 1 in length and place it in an array which has one missing element. So the program that does this, requires a structure to keep an element and place that element in the array structure. Really it only requires a single variable "position" and a single "item" and returns a variable "position" with value "item" and so the position is 0 and item is 0 when using ZIL. The entire program is:


int solve(int solved_puzzle,int possible) { return possible; } int main() { int solved_puzzle=0; int solution; int possible=0; solution=solve(solved_puzzle,possible); return solution; }

and the procedure above. I think this is the right approach to defining the process. By breaking it into parts and solving each part in sequence, the entire solution is exposed. I am sure this does not apply to all problems, but it is a good start and a good element to incorporate in the AI program generator. The program to create breaks out the same way with a tree of possible actions. At its lowest level, one could say we wish to represent the solution and so the program starts with a simple statement that "solution=only_possible;". The structure of where that is located can be seen in the program above and in any program there are elements and placement and it is very much like `gcc` inside out.

The levels of abstraction are solved puzzle or problem, up to program that solves the puzzle which has been debugged by an automated process, autodoc (exists) , autoconfig(exists), a program that creates make ,automake(exists) up to program which creates the program that solves the puzzle, up to the program that teaches programming, up to a program that acts intelligently to solve problems using programming and all the resources and information available. I am building all the levels of abstraction simultaneously and each stage creates the next stage until it is possible to define a problem or puzzle in a written form and end up with a program which solves it. By recursive development, at each stage I make the choices for a simple solution and increase the complexity of the problem. In this case, I start with a written puzzle that describes a puzzle which is an element and a single possible solution. I know that sounds like a given, but that is how it is done. Combine single instructions in a pattern that produces a result. I will post the n levels of abstraction and the programs that produce the solution.

So I start here. The description of the problem is that I have a puzzle that needs a solution from a set of possible items. From this I use the name 'puzzle' as input and 'solution' as output and items as a selector from the structure of the sentence. The values of possible, items, and puzzle are within the description and so the scope of variables can be determined from this data. If there were two solutions , then it would require an array. If the puzzle were two, it would also require an array. For the sake of consistency, all procedures are written the same way. Since it is created on the fly, I can define style within the constructor, and this way I can conform the final product to a standard. I need not consider style each time that I write code and others can regenerate the code in the form that is familiar or conforms to their spec. The description is first parsed to create name space options for the program and standard prefixes and post fixes. If it an array it can use set of prefixes that is appropriate. I will select my own. The process is done by program and in the upward process will be the output of another problem, completing the full circle.

I am taking it one step further to define what language is used itself. So I could make it produce javascript, C++, perl, python, shell, Regular Expressions, HTML, CSS, XHTML, or any other structured result based on the definition of how to take a definition of goal to a product which produces that goal in the format language selected along with the methods to compile and test the application. I will see how this works out in practice. I think there is enough information which can be collected to make the entire process coherent and self supporting and extensible.


<methods> <define (method)> <types(int,char,void)/> <option> define an integer variable before use int UNK; </option> <option> define a character variable before use char UNK; </option> <option> define a pointer variable before use void *UNK; </option> </define (method)> </methods>

Off to the higher dimensions

I suppose some guru could have answered that question about libs, quite easily, and now I can. It is the kind of thing I like to know, so I can devise a scenario when something is being odd or failing. So now I am back to the trees that grow from code. The structure is that the creator code tries things at random until it gets an order and method arrangement that works and then builds a tree that has branches to each node that creates a usable outcome. The branches can be weighted to imply better choices in specific circumstances, and I suppose this will be very convoluted and have higher dimensions that I can mess with and teach the program indirectly. It should be informational in that AI way. I hope to be able to make the program understand ansi C and be able to go to the internet and find examples to help it pick options at least. I am making the trees save themselves as XML, so I can use Dia or some similar method to flow chart what it is thinking in some form of 3D openGL.

Returning to the world of silly bits and vampire bytes


Now I have finished the math and physics and chemistry and electronics. It has been a long process and I have made a complete tour of the sciences and filled in a lot of blanks. I find that the sciences are poorly structured for a polymath and the amount of symbol / nomenclature overload between sciences is confusing. Use of multiple symbols for the same concept in separate fields, multiple acceptable representations, stylized usage, ..... It is about as organized as the English language. Context problems abound. Perhaps it has something to do with the amorphous processing of the human mind, which is well suited for observing and operating in chaos, as it is perhaps just a model of chaos in the miniature.

Today I am challenged to make sense of ASP in the context of web pages. I am attempting to be effective with CPAN also. The prerequisites that I have managed now is XML, XUL, HTML, XHTML, XLS, SSH, nfs, GET, PUT, SMTP,ATM, BusyBox, MAKE, CSS, Javascript (ECMA), java, DOM, Apache, SQL, PHP, Perl, C, C++, Object oriented programming, lisp, REGEX, shell, POSIX, assembly, git, and on and on. Some days I wonder if there is going to be a point where I can just deal with the changes to the standards and not have to investigate a new technology every day.

I am using my own Apache server to test the PHP, Perl, CGI, SQL, Javascript, java, XUL, AJAX, CSS, and security.I assume I will eventually set up a server that I can connect directly to the net without restriction and establish a domain name and address. The use of DSL and other gateways seems to be a dominated strategy, to use a phrase from YALE economic game theory.

I am also seeing how far I can go with the incorporation of useful features in the blog, without running afoul of Google content restrictions.

I tested Google Chrome yesterday and got the source for Firefox and looked through the code. It is not a simple program and the structure will take some time to be familiar. I am able to get and parse web pages with C as well as PHP , but the integration is where utility is gained. I am not so sure that there needs to be 10 different browsers. Nobody really makes any money on the appliance and I would think that Google should embrace Firefox and support it as well as Chrome and MS should just give it up with that Piece of Crap IE. I have looked at it too and they have really screwed people with that. They are not a market leader there and economic theory suggests that they are pushing IE, even though it is an expensive dominated strategy just to interfere with the business of others. MS has got to realize at some point that they are not going to be able to operate as a monopoly anymore and they should scale back to specialized software or just dump the OS business and use the cash to diversify into new technologies.

I am using an include CSS at the moment and it may take several iterations to get this to look or function properly in that mode.


The HR element is simply included as an immediate indicator of how the CSS is applied to each element and page, so I don't have to pop up firebug to know which script is active or dominant. This is a p2 style element and I can specify any tag name with CSS. This is rather funny as this shows up different in every single browser I used. Chrome does something really odd, Konqueror acts odd, Kontact is different still, Firefox is confused, Galeon is similar to Firefox, but has different HR attributes, SeaMonkey is about like Galeon

Firefox seems to be the best implementation, and I am not going to stoop to trying out IE as it would require running Windows and I don't have the time to throw away.

On a separate note, the Chrome browser seems to have a few glitches in Linux with the crossover Wine implementation and I am not surprised, as I have been in the Wine code and it is very difficult to make an ordered application that is safe and solid on top of the Windows framework.

I love that clicking sound

When ideas finally click, it means the end of confusion and frustration, and new possibilities of application.

This click came from the new math methods and now I know for certain how a neutron decays and when and I can mathematically predict the process. It is all very simple once the complexities are resolved. That is always the case. I have studied many new languages and computer methods over the years and it always seems so complex and impossible to encompass at first, then when it resolves, it is smooth and just seems natural.

In order to resolve something which I felt was exceedingly complex, I needed to add more complexity. It is like what they say about XML,

"If it doesn't work, just add more XML."

<blockquote>I that it clicks    

This is one of the major hurdles I needed to jump to get to an easy perpetual energy source. The cost of energy is in how difficult it is to maintain. [ Using slow neutrons to disrupt an unstable nucleus ( that is only known to be such by experiment and not knowledge of its structure ) or extreme kinetics to push another specialized atom ( Deuterium D2 )together to gain the energy] , is a very poor way to generate energy. The knowledge of how to make a fire is not the understanding of chemical combustion.

On a separate note, if energy and its application is virtually unlimited, the nature of any monetary system is transparent, as it is a trade in the slavery of others.

Xulrunner invoking Xul

As part of understanding Miro, I have a chance to build upon my understanding of XUL. I see that it is a shared library of functions that are used to make applications. Another type of script. I have made a minimal XUL application. This is one step in understanding the overall structure of Miro. I have also studied the history and culture surrounding ".torrent". It does surprise me that the code for Miro has so many different sections and I probably will create a "C" language test package to simulate the entire application. It seems that managing lists, configuration, layouts, key and mouse handling, graphics, and even video play could just as easily be incorporated with standard "C" libraries. The unique thing about this is the fact that it uses torrent and I am not sure that this is even necessary to the overall utility.

ADDED: Now I went on from XUL ( subset of XML ) to RDF and XBL. I have a new appreciation of all the inter-related specifications and their use and implementation. I am not sure that many people actually understand all of this. URLs, XML, CSS, HTML, XBL, RDF, XHTML, chrome, java, javascript, XPI, VRML, SVG, XUL, DOM, ..... I have a much better grasp and perhaps in a few months it will be coherent. At the moment it is understood in its context, but I cannot reason with it. It will be some time before it resolves to a coherent model that I can "see" the changes as they happen in my mind. It does seem to be a big advantage for creating applications and there are definite issues of trust involved when most people use technology. This is the biggest advantage of open source is that I can trust and verify.

How XML works

For the sake of others ( and my own reference to be updated over time ) I will recount my current understanding. Only in the area of XML and how it relates to schema and XSL and SQL. Schema defines the outline of an XML database like document. XSL describes how it is presented. In the context of SQL, schema represents how the data is arranged in the data base and not the actual data. It is similar to a description of a blank form. The data is filled in the form as it is entered. Various other methods are similar and can be converted.

This is a result of months of grappling with the intricacies and multitude of possible standards. It is by no means a compendium of truth and if you want the full scoop, go to W3C.

I do believe I see the framework now and can fill in the blanks. I want to extend XML to a new method and so I must understand the scope of tools presently available so they can be extended to additional dimensions.

I probably should make a schema, an XML that is placed in SQL and an XSL that converts it to HTML or (DTD and css and HTML). Don't hold your breath until you see me do that :)

I suppose I could do a schema for XML of SVG, but now I have a headache as I think it is sinking in and my neurons are expanding around the concept and my head may explode so I am going to wrap my head in duct tape and go to sleep.....zzzzz OMG my comprehension of it is like a schema being filled in,.. oh, stop.

Blender book

I bought this book a long time ago and because of work that I had to complete, I forgot I had it. It is "Introducing Character Animation with Blender" by Tony Mullen. There is a reference online and I suppose the fact that I buy all these books does support the free information for everybody. Oh, you are quite welcome (As the tumble weeds rolls by and the single coyote in the distance howls).

So I read the book when I got it and then realized it was so complex that I would probably never understand it. I suppose in the process of designing my own OpenGL code and working with models and games and finally using blender regularly, I just fell into it by way of XML and modeling the universe and DNA.

I would say that I am actually bored by the book now as it repeats many things I already figured out by accident. It is a good book, however it is not for somebody who has never done any work with graphics before. I remember when gimp used to drive me nuts because it wouldn't do what I wanted. Now it is like my left hand and blender with SVG/XML is the right. I am sure that I don't know all the possible moves that can be made with this, or in fact, anything I do. It is a nice surprise that I had this book because I had a sticky problem and I couldn't find a solution on the intertubes.

It is surprising how much math, topology, logic, and programming are involved in what might seem a simple thing like making an online MMORPG. There are a lot of sophisticated concepts that have developed from what seem like silly pastimes. The original DOOM was really innovative and incorporated some features that would not be available commercially for years after. The math they used was very elegant.

Universal language

Could a form of XML become the first universal language. It seems that people all over the world that might have a different spoken language do have to all conform to many different other languages when dealing with each other. "C" HTML XML VRML CSS jpg SVG java. I am not aware that any of these things are done in any other format as it would be silly to have the complete set of tools for assembly rewritten in Russian. I would like to see a real language that is capable of generating appropriate social context and object context. IE programming.tree plant.tree and BTW taxonomy is a piece of unused food. POS The taxonomic system is an attempt to create a derivative tree of life and that it absurd because the DNA has one tree, appearance another, brain another, lateral transfer. The concept behind it is outdated and needs to be retired. Learning a bunch of Latin names just adds to the dead weight of science. Arabidopsis Thaliana can just as easily be UID=#25.14.39.18 and have more instant information to the uninformed student.

XUL (ausgesprochen "suul", reimt sich auf "cool")

XUL analysis Thus XUL (発音は zool:ズール で、リズムは cool:クール) It seems a very silly to have a phoneme similarity translated since the concept of 'sounds like' is completely lost with a new phoneme set.

I have continued with XPI and XUL. That is very interesting. There is a reason they call them CSS 'cascading style' sheets. There are so many interesting open source projects and I keep finding new ones all the time.

<window id="test-window" title="Zool drool" onload="init();"xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

XML again

I almost have a handle on all of this stuff now. What a lot of stuff! I grasp the big picture and hopefully I can integrate the whole thing in such a way that it is scrutable by others. Once again into the fray today with voice XML, XPM, SVG. and my new idea of ndSVG with ndXML and their relationship to HOX ( Homeobox) genes and genotype to phenotype development.

SVG is neat but it would be nice to have a 3D SVG like system that could represent information and it is possible that folding@home is the base source to use for that. This is about the longest time I have ever been in the pre-grok confusion and that means I man going to have a big revelation or I have just lost the ability to integrate concepts as divergent and complex as this.

Spatial stegnography [ abcdefghijklmnopqrstuvwxyz ]. I wonder if it is illegal to encrypt something and then forget the key?

Some science is like a favorite childhood story. It may be wrong, but people enjoy believing it and reading it over and over.
" Little Red Waving Field ", Chapter 1 Shifting red.

ndXML

I am working on an extension to XML that allows me to represent concepts within a text file in the general XML format. The format that exists is acceptable for things that are related by two dimensions, and fails to allow for unlimited dimensional relationship between the parts of a system. It would be nice to have a single format that was usable for programming, neural circuits, HTML, books, documentation, models, concepts, scripts, SVG, methods, speech and translation. I am not sure it is possible, but I am going to try to test an implementation of it. There is a big advantage in the format I have chosen and I won't disclose that fact until the source is complete on sourceforge so that it can't be taken and applied as a software patent before it is defendable as open source. I think the technique easily outstrips any information format that is currently used. It solves one of the major problems with information on the web.

The quality of open source software has improved so much in the last few years that it is better than most commercial packages. That is a major milestone. If innovation comes more quickly in open software, closed source will be abandoned by investors as profitless and we will finally have a sane way of having flexible hardware and software that is not controlled by a monopoly.

Contributors

Automated Intelligence

Automated Intelligence
Auftrag der unendlichen LOL katzen