Monday, September 13, 2010

Programmer's Day

Wow, it is programmer's day today. Apparently.

Tuesday, August 31, 2010

The Polynomial :: Beta 010

A new release! A lot of things added which need testing. Most notably, MP3 support and music playlist. (If you are using Linux, you may need to install libmpg123 for MP3 support if your distribution comes without libmpg123. I cannot ship libmpg123 with my game due to mp3 patent constraints).





Try it on non-latin file names. Check out reordering in playlist by dragging items around.

Wednesday, August 18, 2010

Drug safety proposal (invention)



A little fluorescein in water.


Manufacturers should add something like fluorescein to all pills that are usable as date rape drugs or poisons, so that those become very visible in drinks and can't be used for crime any more. Fluorescein [using it as example] is extremely visible in either water or alcohol even at the very low concentrations even in the regular daylight (more visible in fluorescent lighting, and more visible yet in ultraviolet), and biologically safe to the point that it can be injected into your veins as staining agent for various sorts of diagnosis, at quite significant concentration and in a very visible amount (your blood goes green like alien's, under ultraviolet light at least. Cool). It is also very cheap. Only very small amount of fluorescein is required to stain a lot of water or alcohol bright green.

I used fluorescein as an example only because I have old jar of bath salt that's containing it (I also used fluorescein in lab at school). Quick check for safety of fluorescein turns up this. Apparently, for some eye diagnosis, fluorescein is commonly injected in concentrations that make you turn visibly yellowgreen and which make you piss bright yellow for a while. A milligram turns entire cup of water the very bright, highly unappetizing kind of yellowgreen which you can see in this photo. I figure if people are routinely injected with 500 milligrams of fluorescein for diagnosis, it would be quite safe to add 1 milligram of fluorescein to typical pill.

Spread this idea if you support this.

"What Would You Do: you see a guy drugged girl's drink"

From abcnews
"
A Man 'Drugs' His Date's Drink: What Do You Do?
Would You Speak Up If You Saw Someone's Drink Get Drugged?
"



I'm really disgusted at the people for generally being idiots.

The thing you *should* do: call the police on your cell while walking towards restroom (enough distance so that guy doesn't hear you), tell the girl authoritatively that guy drugged her drink and police is already on the way and that she needs to remain here until police arrives, but shouldn't go to the guy for a bit (so that she won't alert him somehow by her behaviour). If police takes a while to arrive one might ask her to keep guy busy (if she really wants to help the police - or one could tell bartender and bouncer and put guy under civil arrest, or a zillion actions really that can keep him from leaving before police arrives). You might think its harsh on the guy. Well it is not up to a single person to decide how harsh is enough for a person you know nothing about; it's a job for a well informed jury. For all you can know, the guy may be a serial killer.

Why you should do the right thing in such situation:

1: if you are among those whom care (people whom stop in Milgram's experiment): you should do this simply because this is decent thing to do. Imagine if next day in newspaper you see that the girl was found dead or disappeared, and her parents are devastated and police says it may be work of serial killer. You'll feel like total shit for a long long while, won't you? Or for a short while if you are prone to suicide. I'm pretty sure I don't want to find out whenever I can take this kind of shit on my conscience or not.

If you are among those who don't care, well "heroic" actions are generally well rewarded, personal risk is low to non existent, seems like a selfish person would still do it.

The things people actually did fell between:
1: Acting as if nothing happened.
2: Confronting the guy, but not preventing the girl from sipping the drink, not informing the girl.

The first course of action, well it is cowardice. But what the hell is second? I don't get it. It's a lot safer to talk to the police than to confront a likely criminal yourself, so it's not self preservation. And the end goal is to prevent crime so you got to inform the would be victim. I figure it's some kind of weird misogynistic thing about keeping it between men, and not really thinking about what you're doing.

People probably need to be plain taught in school that they should call the police, stay out of trouble and protect the victim, this is not mutually exclusive. Drop the bullshit, recognize the fact that some people are selfish and some are selfless, some have conscience and some do not, and most are in between, and provide a rational explanation why this is a right thing to do, that's good for entire spectrum. Explain that it is at once moral, rather safe, and the society rewards for it. So that even the mildly evil people with no goodness and no conscience would do the right, good thing when they see situations such as that going on, even if for a selfish reason. Stupidity is an enabling factor in a lot of evil. There is an old Russian saying: stupid friend is worse than smart enemy. You can, to some extent, mitigate stupidity by education.

Friday, August 6, 2010

Thursday, August 5, 2010

Save environment: repair compact fluorescent bulbs.

Instead of throwing compact fluorescent lamps into e-waste recycling right away, I kept them until I had 10, and then I made 3 working fluorescents out of 10 broken ones (then the stuff that cant be fixed goes into e-waste)... there's how:
1: Open all CFLs using wide screwdriver or butter knife or similar object to pry the ballast case open.
2: use ohm-meter to check resistance over nearby wire pairs from the lamp (no need to disconnect from ballast yet). If the resistance is around 10 ohm on both sides, then that means the lamp is alright but ballast is dead (check for bad solder joints or burnt out parts, you can fix bad solder joints, and it might work). If one or both sides measures infinite resistance, that means the lamp is dead but ballast may be alright (check it for bad solder joints and burnt out parts anyway). Try working ballasts with working bulbs. Nonworking bulbs and nonworking ballast should go to e-waste and be disposed of properly. It seems that any failure ends with both power transistors getting burnt out; I didn't encounter a possibility to fix a ballast using parts from another.

The economic inequality is very bad for environment. Think of all the resources wasted shipping those bulbs around. Think of all the resources wasted because consumers in the west can easily afford to buy fluorescents built together with ballast - a marginally more convenient choice - so that perfectly good ballast and perfectly good fluorescents end up in the e-waste. Think of all the resources wasted because it is commercially viable to assemble those lamp ballasts from low quality parts (due to low cost of assembly itself. This also goes for viability of just building lamp together with ballast). Think of all the pollution that is only possible because pollution, too, was outsourced to china.
Repairing CFLs like this doesn't even save me money because I am living in a "developed" country and jobs here pay far more per hour than in china where they make those lamps (By the way, all of the lamps that I looked inside were assembled by hand in first place. Kind of sad to see). I do it because it is good for environment and coz it is kind of fun to tinker with some electronics once in a while.

Wednesday, August 4, 2010

UNIPAK thread joint sealant as thermal paste.

I've had some CPU overheating problems after moving to new room... I reseated the heatsink by removing old thermal goo and replacing it with unipak thread sealant (the kind that you use together with flax to seal pipe joints) . So far it works no worse than any other thermal goo. I don't think it would dry out - it never did when I used it as thread sealant on hot water pipes.
Amusing study of thermal compounds:
thermal goo comparison

I also replaced northbridge heatsink goo with unipak. Northbridge heatsink was seated on thick layer of stiff thermal goo, the kind that is almost like glue. There was nothing wrong with it's temperature but I did accidentally slide northbridge heatsink a bit, cracking the old thermal goo. It seems that unipak performs a lot better than the old goo did - probably simply because it is runny enough and I only have a very thin layer of it between heatsink and chip (in general, with thermal goo, the thinner the better).

Tuesday, August 3, 2010

Whoops.

Whoops, messed up the free demos. Re-uploading now - should be done in 15 minutes.

The Polynomial : huge update.

Download

A lot of changes, and a lot more to come out shortly soon. The gameplay is a little screwed up at the moment, but I needed testing for the new technical stuff so I released it as is.
The real bigass highlight: music visualizers, you can choose visualizer in the Game panel (press esc, the second scrollbutton under Arena), and you can adjust it's parameters in Sound&Music (or S&M how I called it during development because blinking from the earlier versions of visualizer was getting on my nerves after working on it for days). The best one at the moment is "Waves", shown below:



Uses new soundtrack made by my brother. If you want to play it with your music, you need to convert your music to OGG format and put it in data/music folder (or Resources/music , inside bundle, on Mac). MP3 support will follow shortly.

You also get two weird looking vortex things in every level, one is made of stars and is used to change arena and other is made of line grid and it changes music visualizer.

Ahh, and the menu style has been changed.

Wednesday, June 23, 2010

A new video.

See it here.
A lot of changes which I need to make better use of.

A little rant about recaptcha (prompted by having to solve recaptcha). In theory, they could do a noble thing: instead of wasting human attention, use it to read words in the books, words which computer software cant read. That's what they claim they are doing. That would of been absolutely terrific. That would of been totally awesome.
Unfortunately, there's one little thing everyone sort of misses, even though it is absolutely right-in-your-face even on their homepage:


You see, recaptcha is, for most part, using quite computer-recognizable scanned words, resorting to addition of extra distortion, blur, strikes or blobs, as to make those words readable only by human and to stop the bots. It's mostly the distortion that's making it computer-unreadable, not the book's age. As the technology evolves, they are adding more and more distortion. And also harming human's accuracy. Case closed. Sorry, guys, you've been duped, perhaps too easily because it feels better to believe that your captcha is doing something good and noble rather than just wasting people's time.
(Other little detail that is always glossed over is that its not 'books', its new york times newspaper archives and the like. "Stop the spam. Read newspapers." doesn't sound so noble)

Wednesday, May 12, 2010

Sony took the toys from air force. Cry me a river.

via Consumerist

Apparently the Air Force Research Laboratory in Rome, New York took a look at available cheap computing power and decided that the PS3 with Linux was the way to go -- until Sony removed the ability to install the OS with their latest firmware update. Now the Air Force is stuck with a lot of PS3s that can't be repaired if they break -- because Sony will update the firmware to remove the option to install Linux.
...
(One can only imagine what happened to those 2,000 PS3 controllers and other unneeded accessories.)


Wait a minute, how comes PS3 is cheaper than dedicated node without pretty boxes, casing, controllers, GPU (PS3 blocks Linux from accessing GPU), and such? Economics of scale? No. Sony is simply selling PS3s at loss, recovering the costs of hardware from game sales! Most notably, NOT recovering costs of hardware sold to Air Force.
I say, it's great news. Maybe next time Air Force won't try to be too clever, and will order nodes from a honest manufacturer, rather than, so to say, taking free pens from the conferences in unusual numbers. Smaller carbon footprint too, without all the unused hardware and casing.
And good riddance to Linux on PS3, as well. When you get PS3 to run Linux, it means that a lot of resources were wasted making the GPU, which you cannot use on PS3 under Linux.

It would've been best if Sony simply sold PS3 at it's manufacturing price, but I doubt anyone would want to buy PS3 then.

Friday, April 30, 2010

Electrolyzer pics.

Taken with laptop's webcam, so the quality sucks. And I wouldn't dare melting any stuff above my laptop.



For some odd reason, my aluminium cathode became badly corroded - I suspect that alkaline solution doesn't do any good to the aluminium. So I'm going to have to replace it with something else, maybe copper. I used sodium carbonate (not bicarbonate) for electrolyte coz I didn't have any KOH or NaOH handy.

Thursday, April 29, 2010

HHO torch.

I've built me a really tiny HHO electrolyzer torch for welding wires and stuff. Unfortunately my photo camera is dead, so no pics yet. I've made smaller scale HHO torch when I were 14... those were the days.

Browsing for similar projects, I noticed that a lot of designs posted online are more risky than it needs to be.
A couple safety facts:
1 litre of HHO mix at atmospheric pressure and room temperature stores about 8kJ of energy. 8kJ is no toy.
8kJ is a bit less than 2 grams in TNT equivalent. It's the energy of 100kg weight raised to the height of 8 meters, or 10kg weight raised to the height of 80 meters. That's about the energy of your fall onto ground if you fall off a roof of three-story house. That's about the energy of coin shrinker.
The combustion pressure is somewhere between 5 and 10 bar. For electrolyzer chamber with lid area of 'only' 216 square centimetres, the force would be 1..2 metric tons.
Electrodes and all the connections must be entirely covered with electrolyte at all times. Why: won't take a lot of spark to set off HHO mix. Cover your soldering joints with glue on anode.
I used soft-ish plastic food container (HDPE) for my electrolyzer, which seems like excellent choice - I'm pretty sure explosion would simply blow off the lid and spray the electrolyte around, but not any shards.

Calculations for energy:
2 H2 + O2 -> 2 H2O + 572 kJ (all amounts molar, i.e. 2 mol of H2 and 1 mol of O2 become 2 mols of H2O)
1 mol of gas is 24 liters at room temperature and pressure, so we have this

Wednesday, April 21, 2010

Solar dynamics observatory gone live!

NASA SDO first light videos! Hurray. I've been waiting for this all day.

Sunday, April 18, 2010

Mouse fibroblasts

wow

Looks totally awesome. I'll see if I can make something similar in my game.

Saturday, April 17, 2010

Bicycle helmets.

If you look at actual testing which is specified in standard for bike helmets... 1.2m fall onto a hemisphere. 2m fall onto a flat anvil. No tests whatsoever for sliding impacts, rotational brain injury (which is extremely dangerous), neck injury, or anything of this sort. Not to mention unrealistically rigid models of head. For all the standard cares, you can produce bike helmet which simply shatters into pieces at >2m fall speeds, which cracks into pieces when deformed even half as much as head could be deformed without serious damage (you'd be surprised, but bones are quite elastic), with high friction outer lining, so that in a sliding impact it gets you the worst rotational brain injury possible. And you could still legally sell this shit as "bicycle helmet"!

Those helmets are barely rated for pedestrian accidents, for god's sake, like walking into a streetlamp pole, or falling on ice (but not falling on stairs). This is frigging ridiculous. Why won't they get pedestrians to wear those helmets? After all, pedestrian brain injuries are more numerous.

If you believe that these barely-pedestrian-grade helmets are any better for cyclists than no helmet at all, well that's your own dangerous original research, the regulations and standards clearly do not provision for any testing to ensure that bicycle helmets are useful for cyclists.
You can do it all you like, then you'd better also wear the helmet when you're not on bicycle. Anyway, why "bicycle helmet" laws? Why not construction grade hardhats? Those also got some standards, similarly irrelevant to reality of bike accidents. I'd bet an industry grade hardhat has better sliding performance.

Bicycle helmet laws were lobbied by the Industry of Useless Things, simple as that, and so were the standards. IMO any useful bicycle helmet standard that would test for realistic accidents, with considerations for the total injury (impact, rotational, and neck), would only be passable by motorcycle style helmets, and nobody wants to wear those on bicycle.

And even all the uselessness aside, adults should be free to endanger themselves as much as they want when it does not endanger anyone else; motorcycle helmets should not be mandatory either. Not wearing a helmet on motorcycle may put you in more danger, but puts everyone else in (very slightly) less danger (you have larger field of vision without helmet, plus in the unlikely case of collision of your head with someone else, that someone else gets less damage if you don't have helmet) - it is your choice to make - I would recommend wearing motorcycle helmet, though I would not wear it on bicycle because it'd look too ridiculous.