Posts tagged ‘java’

Cellular Automata II

As mentioned before I’ve made a one dimensional Cellular Automata(CA). And although it was intriguing they quickly became very predictive. Actually it was in two dimensions. As the a y-coordinate represented time, but since the states were only depending an the adjacent neighbor’s to the right or left its considered to be one-dimensional.

But they are not as fascinating as CA’s where you expand the neighborhood to include all the eight adjacent cells. That’s called the Moore Neighborhood.

Representing the time dimension. As the intersting part is the evolution of the system, representing time is essential. With a two-dimensional CA it has to be done using animations, and who doesn’t like blinking pixels. This makes CA’s makes even more fun. Continue reading ‘Cellular Automata II’ »

Annoying db-server

I knew my host didn’t have the best databases, but once I had installed WordPress. Which uses a mysql for every page, i found out just how bad it was. Often I was not even able to get a page to load. So I contacted support.

The answer : since you don’t have a business solution, you will experience lag at peak-hours. Apparently there are more peak than non-peak hours in a day…

The solution : upgrade to business ( which is triple the price ) or

  • backup and delete all databases
  • wait until their controlpanel restart
  • create a new database, which now will be on the database-server with least load
  • restore backup

I did it, and it seems to work better. But I think its bad service and i immediately went looking for other hosting. I have prepaid so I’ll probably stay the year out – but if you know of a good an reliable host (and reasonably priced host ) please let me know.

the annoying host is surftown

The transistion went faily well, meaning i got to restore my blog – before their main controlpanel went down for maintenance?!

After restoring Tinymce wouldn’t show popups ( tinymce – is the visual editor for WordPress). It shouldn’t be related. But anyways i had to add a line to a tiny_mce_popup.js stating the domain. Something about FireFox blocking javascript, i found this fix
edit: which wasn’t a solution after all, something is “bugging” me…

Finite Automatons and images

At a lecture about regular expressions and automatons, we were introduced to the posibility of using automatons to compress images. During the course we have worked with a java package for automatons, so i made a quick hack to render regexps as images.

The concept is that every acepting state represents black area, and and using a recursive definition of the areas.

area

Here is the area for the string “031”

Continue reading ‘Finite Automatons and images’ »