Paulmohr’s Weblog

Open source developer personal weblog

What I have been doing

To see the antfarmgl project blog, use this link.[]

#!/bin/bash rm ants gcc -pg antfarmgl.c sighandler.c afopengl.c listman.c files.c \ -lglut -lGL -lGLU -lm -lasound -ljpeg -lgpm -o ants if [ -e ants ] then ./ants echo "There are ants here!" gprof -b ants gmon.out > results-file.txt kprof -p gprof -f results-file.txt else echo "There are no ants here!" fi

The important thing to notice in “gcc” is the use of the “-gp” option which generates the profile code in “gmon.out” .

I thought I would give this as an example of how to use gprof, gcc, and kprof to profile code for speed. I have used valgrind, ltrace, objdump, nm, strace, xtrace, mtrace, gdb, core analysis ( with ulimit -c 50000), and diagnostics incorporated in the code itself. I think that debugging and code analysis is an absolute necessity in any project. I discovered numerous little things that I did not know even existed. Documentation is another place that must be done right.

Interpretation of the results is a whole separate issue. Years of computer experience have taught me how and where to look and how to interpret the relationships. One interesting thing that I discovered is duplicate calls due to many levels of include. It is difficult to know when things like this happen without the proper tools. So I have a call that calls a library that in turn duplicates a call to an associated function. I would never expect that to happen, but it does.

I can bet that there is some really weird code running around in the Windows world. The reason I think that is because it grows in the dark under pressure and can never be checked. I have done commercial development and I know that I was not allowed to spend the time to do appropriate code testing and analysis, simply because it was extra cost. It can cost twice or even ten times as much to make gospel code. It is worth it to me, as I can easily find flaws in the code, because those thousands of little things that creep into a complex system have been removed proactively.

March 27, 2009 Posted by | Uncategorized | Leave a comment

My sourceforge project

I have been developing an open source project for the last year and I am finally getting the hang of using all the tools. I can that I now can use SSH, sftp, Doxygen, automake, LaTex, Python, perl, HTML, CSS, “C”, C++, svn, diff, patch, XML, XUL, OpenGL, javascript, Pygame, and the debian package system. I should look at WordPress project as it seems it would be using XUL, but I guess I will find out when I have some time to look it up.
My project at sourceforge is shaping up and there is a simple snapshot there, and I hope to have the Python and “C” “Ant Game” ready for download this week. I am also making a complete multipage tutorial that covers all the simple openGL techniques in “C” and Python. The range is from simply opening a window to compiled elements, perspective, joystick, models, terrains, and some Linux specific Xwindows methods to use xtrace.

I looked up the documentation on wordpress and I see it is PHP and Mysql. That seems to be very much like wikipedia source if I remember correctly when I installed it on my server. It has an interesting history. I, for one, welcome our new wordpress overlords. I have recently started doing PHP and Mysql seriously and perhaps I will get the source and do the nightlies to help out.

March 14, 2009 Posted by | Uncategorized | Leave a comment

WordPress advantages

I have been blogging with Google for some time and working on a project on sourceforge called antfarmgl. As part of the features of the hosting is WordPress and I have come to appreciate that it is a better interface and is open source so I think I will confine my efforts here. I have a blog and web site for the project and they are:
antfarmgl website
sourceforge antfarmgl project
anttfarmgl blog
antfarm blog

March 14, 2009 Posted by | Uncategorized | Leave a comment

Near content addressable memory


The expensive content addressable used in routers is very effective, however, ‘near’ content addressable memory is even more powerful and represents the potential future of processing. In the same way that CAM a.k.a. cache can recognize one of any set of informations and it’s associated context or content, near content memory describes a dimensional space which is more like the way in which information and situations is handled. It represents that vagueness that defines groups like cats and dogs. It is equivalent to a circuit which is associative and upper/lower bounded. It represents the statement that an object or association is within the range of several variables simultaneously and is the highest scoring product of all elements. The cost of the circuit in terms of silicon is much higher than even CAM, however it’s ability to be self-programming is where it’s utility is recognized.


The single and foremost application of a NCAM is in the area of artificial intelligence and the establishment of a computer which is capable of dealing with the massive information flux of the world wide web.

May 11, 2008 Posted by | Uncategorized | | Leave a comment

Turning off snapshots

Edited post – corrected misconception mentioned in comments.

How to turn of snapshots by Lorelle VanFossen which is not out of date.

I discovered that under Design >> Extras (click the item to turn off snapshots ).

Also it seems that wordpress is driving it’s customers to BUY necessary features and I am deciding to stop using wordpress because of this.

May 10, 2008 Posted by | Uncategorized | 4 Comments

More association and style tests

A simple border and how it expands around the constant flow of text if it is multi-line. Here is a link to my associated web page.

This is the code to display this type of box, recursive

<p style=”border: thin dotted black; padding: 3mm; background-color: rgb(243, 243, 243);”>The Text to display</p>

May 10, 2008 Posted by | Uncategorized | , | Leave a comment

Addictive behavior personal study.

Addiction and other mind/body flaws.

Latest search of information on this subject

This old link on smoking at science daily.

Acetaldehyde, one of the main chemical components of tobacco smoke, appears to increase the addictive properties of nicotine, according to animal studies conducted by the UC Irvine Transdisciplinary Tobacco Use Research Center (TTURC).

It is my opinion, given the nature of the process of smoking and it’s prevalence in the form smoking that there is additional addictive incentive chemically in the process of smoking that is not present in the simple use of nicotine. This study seems to suggest one of the associated factors. It is my conjecture that the understanding of the process of addiction has focussed on methods that stop addiction, which is mind control in my opinion. The process of reasoning and living is centered around the ideas of ‘addiction’. By destroying the pleasure reinforcement within the brain, one destroys the process which creates personality.

This is my ongoing study into this matter. and below is a list of chemicals I am studying in that process. The mere fact that modification of morphine enhances it’s addictive and analgesic effect so greatly seems to imply that minor changes in any number of compounds can change their effect and the chemistry of smoking needs to be isolated to factors that can be tested. Fentanyl is an example of how much more powerful a drug can be with modification, either accidental or purposeful. LSD-25 shows that even very small quantities of psychoactive compounds can produce profound and even ‘permanent’ effects.

New directions to explore

I intend to isolate these chemical compounds in sub sets and determine what if any results come from the combined sets in practice. Obviously I cannot cover all possible combinations as this is 400 (factorial) [1] and a virtual infinity. I need to select potential candidates and test if they suggest a direction to solution of this issue. I will play a little mental Monte Carlo with the possible solutions.

Monte Carlo methods are a class of computational algorithms that rely on repeated random sampling to compute their results. Monte Carlo methods are often used when simulating physical and mathematical systems. Because of their reliance on repeated computation and random or pseudo-random numbers, Monte Carlo methods are most suited to calculation by a computer. Monte Carlo methods tend to be used when it is infeasible or impossible to compute an exact result with a deterministic algorithm.

[ 1 ] 450 factorial is 1.7 × 10 to the 1,000 power.

*list stored externally*

May 10, 2008 Posted by | Uncategorized | Leave a comment

Linux as the new enterprise model ?

Linux only

It was an odd thought, but is forming into a real adventure in open source revenue. I think it is completely feasible to have Linux computers connected in the background to a composite net that computes things which cannot be done with even the largest super computers. And it seems to me that every person connected to that project should share evenly in the revenue that is generated. An easy example is a blender movie concept. If 100,000 people agree to be part of an animated movie, they download the free blender software and render a frame ( a few minutes ) selected from a site, then place that frame back on the site and the movie is distributed. I know that it is possible to devise a matrix computer strategy that outperforms a super computer.

April 30, 2008 Posted by | Uncategorized | Leave a comment

Cool Linux tool

This myname@mymachine:~$ sudo apt-get install specto
I suppose I could use Synaptic but I am an instant gratification person, so I just keep a console window open in case I need to script something.
Suggested by Chanweiyee is something I am checking out today.
It has a graphical interface and shows up on my KDE in ‘Utilities’ category.
It has an interesting web based help system. It is very intuitive and I like the option for sound notification. Seems like a lean, clean checkin’ machine.

I am still working at setting an automated process to see how to use the various aspects of

April 30, 2008 Posted by | Uncategorized | Leave a comment

Swimming with the babelfish

I am learning other languages ( besides programming languages *chuckle* ) and I would consider this a Rosetta stone if I didn’t know better and I hope there is no conflict in using this with my translator to see what it means. The link. Is

And some samples to see whether what I see is what I think I see. .

period 句号,comma 逗号:colon 冒号;semicolon 分号!exclamation 惊叹号?question mark 问号 __hyphen 连字符 ”apostrophe 省略号;所有格符号 —dash 破折号 ‘ ’single quotation marks 单引号 “ ”double quotation marks 双引号 ( )parentheses 圆括号 [ ]square brackets 方括号《 》French quotes 法文引号;书名号 …ellipsis 省略号 ¨tandem colon 双点号 “ditto 同上 ‖parallel 双线号/virgule 斜线号&ampersand = and ~swung dash 代字号 §section; division 分节号 →arrow 箭号;参见号

And from the babel fish 🙂

And some samples to see whether what I see is what I think I see.. period full stop, comma comma: colon colon; semicolon semicolon! exclamation exclamation point » question mark question mark __ hyphen hyphen “apostrophe apostrophe; possessive symbols – dash dash ” single quotation marks the single quotation marks” “double quotation marks double quotes () parentheses parentheses [] square brackets in square brackets” “French quotes French quotes; Title, … Ellipsis apostrophe ¨ tandem colon double-point, “ditto, ditto ‖ parallel two-lane / virgule slash, & ampersand = and ~ swung dash the hyphen § section; division of sub-section → arrow arrow; See,

This is a cross-link from my other blog and I am experimenting with how the different blog and blog software work.

April 29, 2008 Posted by | Uncategorized | Leave a comment