Monday, January 25, 2010

Version 00l

Multiple crashbug fixes, and a new level in full version.

Sunday, January 24, 2010

Why NVidia(and AMD) won't opensource linux drivers

So much ranting about the topic on the internet, yet nobody has any clue. The crux of the matter is probably in NVidia Quadro (and AMD/ATI FireGL) cards which for most part only differ from the significantly less expensive "gamer" cads in the driver behavior - proper stereo support, antialiased lines, and such.

Those highly overpriced cards do serve a business purpose; them allow to cover development costs and generate extra profits while releasing cheaper cards for the masses. I wish they would come up with some hardware difference, such as 10% faster for 3x the price as common for the CPUs - but with every clueless gamer wanting 'overclockable' cards, it probably wont happen.

Open source drivers, whenever made through reverse engineering or with documentation available, are of no concern to either due to lack of manforce to make those drivers usable. People whom don't work in computer graphics don't quite appreciate the fact that 3D graphics card 'driver' is far more complicated than network card driver or sound driver; I'd say 3D card driver is an entire operating system in itself - with memory management, shader and OpenCL compilers, multitasking (for multiple OpenGL contexts), and such. The graphics card is a computing system of it's own.

Friday, January 22, 2010

Version 00k.

Has those flowers and wiggling things.
Main page.

Thursday, January 21, 2010

Fractal flowers

Some fractal flowers:


Gotta release it sometime soon. If I have time I want to make 'bots pollinate the flowers or something like that.

Tuesday, January 19, 2010

Better animated things

Another video:

I need to refine some more things before release tho.

Saturday, January 16, 2010

Animated objects!

I'm working on character animations now...

(guns turned off for test). Still needs some work - I need to manually or automatically select the shapes that look good when animated like this, and add more variation to the parameters.
The only problem it feels wrong to shot this stuff... I need to come up with some gameplay that doesn't involve shooting 'em down. Maybe shooting down evil geometric shapes that are trying to eat pretty wiggly fractal shapes...
Any ideas?

A while ago I also made some weird rings


(these will go with scripted levels and sort of physics puzzles, except the laws of physics are of my own making)

Ahh, and I might also make 'em evolve somehow or be editable.

Interplanetary drug trade.

A bag of cocaine found in space shuttle hangar
I wonder how you'd snort the coke in zero gravity... do you shake it up in the bag and then snort out? What's about stickiness of particles?

Tuesday, January 12, 2010

WTFest bug of mine.

Due to a bug in my site backend, google ads were displayed on top of my 'about' page. LOL. I didn't notice for several days because of adblock, which is a part of WTF. I use custom macro-expansion language to generate my web pages, similar to M4 - I implemented it ages ago when I began learning C++ .
edit: why ad code was here in first place: I'm trying to figure out if its worthwhile to buy ads myself for The Polynomial, so I did some experiments to find real (no bots) clickthrough rate. In fact I still have google ads on this blog for experiment's sake.

Saturday, January 9, 2010

Minimal number of species for ecosystem...

Charles Stross posted interesting question on his blog a while back - what is the minimal ecosystem with humans in it?
He's kind of biased though to show that other science fiction writers get it wrong disregarding the issue, and he considers 'genetically engineered algae that makes everything you need' to be a magic wand (It is very easy to argue that something never done cannot be done or is very hard to do). He probably intends to write some fiction where he 'gets it right' in portraying the immense difficulties of building such ecosystem.

In reality though, while we're still very long way off from building a starship, we can genetically engineer rice, corn, some bacteria, etc to produce a variety of vitamins.
In my opinion, the spaceship ecosystem, if it will ever be done, would consist of:
1: Waste incinerator and chemical plant (for processing ash).
2: Many tanks of genetically engineered algae and possibly yeasts (feeding on algae), the tanks capable of being fully sterilized.
3: Food processing plant.
4: Humans and internal symbiotic bacteria etc.
5: Frozen, radiation shielded specimens of all algae, yeasts, and human symbiotic bacteria, for reseeding through the mission.
6: Genetics lab just in case.
The problem with more complex ecosystems is that them tie up a lot of carbon, oxygen, hydrogen, etc etc. as non-human mass - wastes being processed, worms feeding on wastes, etc etc. Very small payload to weight ratio.

On topic of keeping humans on generation ship (a ship which is going on for hundreds years) civilized enough to maintain their plumbing, consider a normal small town, if you wish, on isolated island. In that town people are watching hollywood movies(they cant make movies themselves), kids are studying in school with books written elsewhere, they're believing in religion which came from elsewhere, they have social structure which 'feels right' because it matches what they see in movies, they do plumbing based on instructions from elsewhere, and so on and so forth. Right here on earth, not only such towns do not develop some widely divergent civilizations but the cultural diversity of such towns is diminishing, and been diminishing even before the Internet. Science fiction writers came up with a lot of strange social organization types for a generation ship (my personal scifi favourite is Heinlein's Orphans of the Sky), but it seems nobody explored the boring possibility that the people on generation ship mostly sit on the couch watching TV. (I don't think anyone would ever make a generation starship, but anyway)

Thursday, January 7, 2010

Cellphone microwaves are good for brains?
Really weird. Though, it goes to show that argument that 'cellphones are certainly harmless because them have no effect because radiation is not ionizing' was probably BS. TBH this study does also reek of BS, given that they did not measure health effects of different levels of microwave radiation. I.e. they weren't actually doing much science, more like, cellphone advocacy.
By the way, the fact that mobile phone radiation is not ionizing (and is, in fact, VERY far from ionizing) goes only to explain why you don't quickly keel over and die after a single phone call (which you would had cellphones been using ionizing radiation, like x-rays or gamma rays, at same power levels).
That being said, I'll keep using mobile phone; epidemiological studies have not shown any health effects whatsoever, even though in the Europe virtually everyone is using mobile phone, and most people use it a lot more than landline phone.

Wednesday, January 6, 2010

Security and mathematics.

In light of recent attempted plane bombing...
I think there is a huge number of unaccounted deaths from September 11 2001 attacks, in range of thousands, and I'm not talking of Iraqis or US soldiers. I'm speaking of US civilians in the US.

Let's look at US traffic fatalities (about 42,000 per year)
Note the rise in fatalities after September 11 2001. The traffic fatalities before 2001 were going up and down, and since 2001, only gone down in 2007 due to rising oil prices, and gone down sharply in 2008 due to the recession.

I'm pretty sure that plane security did increase the air travel time, as well as fear of flying. Consequently, some people had opted to get around interstate by car, especially for shorter distance flights where most of time is spent boarding the plane. Cars, as you can see, are significantly less safe than airlines even in the worst year (2001) counting the on-ground causalities.

I cannot know what percentage of people opt to drive rather than fly. That would require a poll. What I know is that even very conservative, small increase in car usage (1%), when multiplied by 42,000 and by 6 years, gives fairly substantial number (2,500), approaching the direct causalities (2,974 according to Wikipedia). Looking at the traffic accidents statistics, it could be even worse; thousand extra deaths per year.
That is seriously depressing. Aftermath of subway attacks in Britain may be even more depressing.
If you agree with the argument, and care about it, try make the difference.

Before giving up liberties and conveniences to avert some risks, it is absolutely essential to do a proper cost benefit analysis; failure to do so is quite equivalent to cooperation with terrorists, to direct participation in mass murder, for the suboptimal action easily results in huge number of additional deaths. Sometimes it may even be the case that very minor response is best (e.g. reinforced cockpit doors as response to 9/11/2001 could well be sufficient to prevent it from ever happening again, not because its absolutely impossible to cut through reinforced door somehow but because its secure enough to point that terrorists would rather do something else instead).
The problem is, how can democratic society do the cost-benefit analysis? A company does the cost benefit analysis for itself; for media companies, for military contractors, for pretty much all businesses involved in security, for members of the government, for many security experts, there are huge benefits from overreaction to the risks. Media is working to amplify our fears out of proportion; you will never see a major media channel comparing risks - unless it is e.g. promoting 'war on drugs' and wants to convince you that war on drugs deserves as much attention as war on terror.
On other hand, entire society bears the costs and extra risks resulting from the overreaction, not just the individuals getting the benefits. Consequently, response to terrorism is always overreaction, always biased for those benefiting from overreaction, against those harmed by overreaction.

Consider a bee sting. Normally, it takes hundreds, or thousands killer bees to kill healthy adult through the sheer amount of venom. But some people have highly overzealous immune system, sensitized to the bee sting, going out of control and destroying their own cells. Such people often die from a single sting - condition known as anaphylactic shock - people often get killed, in effect, by their own immune systems. Immune system is not intelligent - but we are. We should not let this happen to our culture.

We should not turn this failed plane bombing attempt into a successful act of terrorism, which it could easily become if boarding checks for internal travel are to take more time, for short distance flights, where driving, a much more dangerous alternative option, would become quicker and preferable leading to extra deaths in car accidents which would have been mostly prevented if people would travel by plane instead (airlines are a lot safer per km traveled than cars, even for short distance flights).

What is especially illuminating is those full body x-ray scans. I'm fairly sure that there had been no evaluation whatsoever of the number of extra cancer deaths that may be caused by x-ray scans versus deaths from terrorism that could be, arguably, prevented with those scans, which are unable to detect explosives within the body or detect plastic explosives reliably. All you can see in news about those machines is talk that dose is "very small", without actually naming the dose, and its hard to find dose estimate from reputable source (indeed, from any source other than equipment manufacturer). I bet if you ask a technician, he would be quite unable to name the dose as well (total incompetence is amazingly common).
It's as if prices did increase, and the increase was not described in percent but simply as "small". You can't straightforwardly measure x-ray dose with Geiger counter, not for low energy x-rays, due to low rate of detection for xray photons. (Though, I don't think extra x-ray dose is important problem in comparison with more car driving rather than flying because of people not wanting to be seen nude, deaths from money being spent on this rather than on healthcare, and so on and so forth). Other take on the issue.

Friday, January 1, 2010

The Polynomial: now in (stereographic) 3D

New update
Main highlights: 3D stereographic support: anaglyph and interlaced&checkerboard (some 3D hdtv's , Zalman TRIMON, etc).


The anaglyph mode requires cheap red/cyan glasses. You may want to use 'desaturate' slider in Visuals panel to make it work better for strongly coloured arenas.

The 'H stripes' mode put left and right images into even/odd rows of pixels. This works with some 3D displays such as Zalman TRIMON and various 3D HDTVs. It could also work with some shutter glasses system which use interlaced video signal (when each frame is sent as odd rows then even rows, and glasses flip so that those go to different eyes).
'V stripes' is analogous but uses vertical stripes. It could work with such thing and various commercial 3d displays that use lenticular lenses, as well as polarizing displays like zalman's but using vertical stripes.
'Checkerboard' uses checkerboard pattern, for this kind of thing (some 3D HDTVs do actually use checkerboard format).

You will need to tune the Span and Shift sliders for best effect, and maybe toggle the "swap sides" button if your glasses are other way around.

Todo: support for opengl stereo left and right framebuffer mode (probably works only with nvidia quadro cards though. I can't initialize opengl context in stereo mode on my pc at all, with geforce 9800 GT :/ ), and support for left image on one display and right image on other display.

Other good stuff: Changeable key bindings and various bugfixes.

Stuff that does not quite work yet but is coming: Multiplayer. For now, just ignore the 'devel' options tab.

Sunday, December 27, 2009

microsoft got patent-trolled.

This is just insane. A Linux zealot I may be, but I feel for Microsoft in this case.
Patent law was intended to prevent a company from duplicating a better mousetrap without anyhow paying for the invention of that mousetrap. Patent law intends to prevent companies from ripping off the inventor. It is fairly certain in this case that Microsoft has paid engineers to develop a solution, which they did, without using anything whatsoever from i4i. Most likely before i4i showed up demanding the money, neither Microsoft nor their engineers have ever heard of i4i and their 'patent'. The patent covers storing text separately from its layout data. This is so trivial that any qualified software engineer would come up with it quicker than it'd take for him to read patent itself.
Programmers and software engineers are specifically selected&trained to be able to immediately 'invent' simple things on demand. Someone who can't immediately 'invent' this on spot wouldn't be working at Microsoft as software engineer.

Patent law is here to compensate inventors for their ingenuity - for creation of nontrivial things that wouldn't have existed for a while if not for the inventor. Patent law was never intended to let the 'first' expert who got a specific problem and straightforwardly solved it forbid others from independently solving this problem in the most natural and straightforward way imaginable.

The issue is that even the simplest solution could be presented as to appear very profound and mysterious to the totally clueless - just throw in a couple meaningless diagrams and other idiocies, and you get very nontrivial looking nonsense (see that patent, hiding triviality behind verbosity).
It is not understood by a court just how straightforward and retarded the patent is. The increased specialization results in perfect ignorance. It's perfectly equivalent to having 3 years old children for judge and jury - 3 years olds aren't stupid, but they do not know anything, they are not qualified to make any decisions on such case - and neither are adults whom do not understand the topic any better. Back in the day when patent law was introduced, the specialization was not so extreme as to prevent sensible trials; judge and jury could see if a patent is covering something totally straightforward.

Thursday, December 24, 2009

On topic of Linux immunity

It's actually quite easy to write malware for Linux, no harder than for Windows anyway (and 'not running as root' wont save you). Fortunately, whatever the reason, very few linux viruses get written in first place; maybe the would be virus writers productively contribute to open source software instead.

Wednesday, December 23, 2009

More on antiviruses.

Just look at this. They claim there's 15,000 new virus definitions each day. For windows. How comes there's less than 1 new virus per day on other systems, which have only maybe 10x smaller marketshare? How come open source antivirus software has orders of magnitude fewer new definitions per day yet is fairly effective? The world is not so huge for such a number of new viruses a day anyway. How the hell are they counting, what are they counting as distinct viruses? Server side polymorphics? If a clever virus makes new variation every time, specific definitions aren't useful, you need a clever solution that lets the virus run but catches it when it tries to replicate.
My best guess is that this number is not even a count, it's simply a number that they figure is the optimal number to display in the software and write in their releases for the purpose of maximization of their profits and for advertising of their brand new "whitelisting" approach which ain't gonna protect anyone but would probably generate a lot of profit for antivirus companies (say, I launch a new software product, how it's going to get whitelisted if people aren't running it because its not whitelisted? The typical solution to a chicken and egg problem is that you have to buy a chicken. Or an egg, plus incubator. Meaning if there's whitelisting, developers have to pay for certifications).

In my opinion, antivirus is a broken solution to a wrong problem. If you run non-trustworthy code - such as pirated software, keygens for pirated software, various "toolbars", etc. or if you run email attachment, no antivirus can protect your (windows) pc - it'll eventually be infected. If you have insecure network services, antivirus won't protect you - but a security update to a service could. If you keep everything up to date and you don't run non-trustworthy code, then you're as safe without antivirus. A general security tool which watches for changes in files could be quite useful. A specific blacklist is of little use - it cannot protect even from variations of old viruses. A whitelist is just a nuisance. Antivirus software is written in such a way as to maximize profits of antivirus companies, not as to minimize threats; virus signature lists are far superior for profit generation than general solutions; it is far better to autorun files from usb sticks and then sell antivirus software than to forbid autorun for writable or all media. Microsoft's response of tightening OS security is the only hope for Windows world.

Tuesday, December 22, 2009

RIP Amarok 1.4

Amarok 1.4.10 no longer works for me under mandriva (installed from old repository, into /opt/kde3 folder)... it simply doesn't scan collection.

Meanwhile, Amarok 2 is still completely unusable, even though you can get rid of the "context". It's just insane. Can't resize playlist to take up all the remaining space, cant drag-resize columns in lists, and so on (resizing columns with a slider, who the hell came up with this?! That's outright insane. Anyone with a sense would fix the list control to get drag-resizing of columns to work again rather than make slider dialog for that).
I'm switching to Exaile for final, i think. I promised to fix some bugs in it, then left 'cause i had no time... gonna get on it