You never know unless you try / 404 no silver bullet found

Will my employees work hard? Will project A give me more than project B? Is this partner good for me and my business? I think I'll hire a marketing consultant, executive analyst and spend some money on fat books, it sure will help!

Bullshit.

Business is like loosing weight, there is no silver bullet, you just go and loose your weight...or you don't.

Want to check out a man? Do a project with him, and with simple knowledge that people actually never change, in a week, you'll know everything about him - his skills, estimations skills, and so on. Not sure about your project? Do an ugly buggy prototype, if someone says "I'd use it if it wouldn't lag so often" - go on.

If you think that doing nothing you loose nothing - you actually lost twice.

Experience is priceless, failures are bless, stagnation is death.

Stagnation, yes?

Actually, ther're less that ten of blogposts I re-read from time to time. Some are quite related to game industry, by notch and second one, "the way of indie", by Crash-512 (hi, Max!).

Some days ago I've heard something from my girlfriend, something like "This world sucks just because everything you can do is basically to earn that much money to ignore the rules". That made me think a bit.

Notch said quite right - while you're self-confident, you can stay in this world of earning, paying, earning, paying, without understanding that you're receiving so precisely dosed amount of freedom to...stay in this world, actually.

You're alone, and always alone. This is your war to fight, so stay tuned, hungry, unsatisfied and curious.
And wake up, bitch.

this is an open letter to myself, don't bother

I code, therefore I exist

I code. And I code a lot.

I've done some 100k+ $ projects, couple of frameworks, and hell lot of sites I don't even remember. I kind of pullrequested symfony, ruby, haxe, QT, Eclipse, some lessc parsers, among others, and I speak php, python, a bit of common lisp, I've already forgotten C++/DirectX, and some other thingies too.

The point is, coding sucks.

The point is that symfony, php and other things suck too, not because of the infrastructure (that sucks by definition cos lots of people just can't be right), but because tools doesn't matter. The matter is what you do.

Concluding, dependency injection, IOC, decorators, proxies, observers and so on suck also. Readability and modularity count...sometimes, if they make a great product. Summarizing, neither Windows ME nor Heroes 4 were great products.

I learn a lot, and learning I understand how small is amount of my knowledge, and how futile my knowledge is. What's the point I CAN HAZ DO PATTERNZ if there's no facebook or WOW I've made?

The programming, as an industry, has two plagues - managers who don't code and code beauty. Epic shitcode makes great things, see Linux or Windows. Epic requests (CAN I HAZ KITTEHZ PLZ?) makes your patterns...suck.

Programming, as it is, is a thin translation layer between man (who tends to overcomplicate) and computer (which is basically as stupid as your left boot). Great ideas make great things...if ideas are formalized. If they are not, 42 is what you get.

We live in world of 42's, and tend to enhance our Deep Thoughts, rendering out 42's more and more beautiful, instead of changing our questions.

Fuck of patters, just sit and code. If the result is interesting for someone, enhance and probably refactor. If not, you're thinking you're too cool, your ideas suck, your code is a spaghetti, go ride a bicycle.

The point is, ACTA sucks (c) notch.

FOSUserBundle – compatibility break

Well, four days ago Stof authored a braking-change in FOSUserBundle; after updating vendors, you may encounter errors like "an encoder is not configured for Your\User\Entity" exception. This is basically because "algorithm" field from User entity was wiped out, and moved to FOSAdvancedEncoderBundle.

If you've encountered this, you basically have two options:

1) stick to 1.1.0 branch of FOSUserBundle by modifying your deps:

[FOSUserBundle]
    git=git://github.com/FriendsOfSymfony/FOSUserBundle.git
    target=bundles/FOS/UserBundle
    version=1.1.0

of course, if you don't want to ever upgrade to symfony 2.1 )

2) upgrade to master FOSUserBundle:

do

bin/vendors update

update doctrine schema (this will delete "algorithm" column):

app/console doctrine:schema:update --force

modify "encoders" section in security.yml:

 
  encoders:
    FOS\UserBundle\Model\UserInterface:
      algorithm: sha512
      encode_as_base64: false
      iterations: 1
 

encode_as_base64: false and iterations: 1 will add compatibility with you current encoded passwords from 1.1.0 version of FOSUserBundle.

Have fun!

Memcachedb & logs

Well, the memcachedb again ate whole sshd with infinite log.xxxxxxsomething files.

After a lot of digging around, found this memcachedb-guide-1.0. It appeared that memcachedb has db_archive command to purge all un-needed logs!

Just create a following file somewhere, e.g. /root/memcachedb_rotate_logs:

db_archive
quit

and add following to crontab to rotate memcachedb logs hourly:

0 * * * * /usr/bin/telnet localhost 21201 < /root/memcachedb_rotate_logs

(fix port number if needed).