Kissaki Blog

February 8, 2010

PHP – sucks

Filed under: English, development — Tags: , , , — Kissaki @ 00:59

So, are you programming/scripting PHP?

Last week I came across a rather interesting ”feature” of PHP.
Anyway, it’s no secret PHP is not really in to pointers, which it supports.

Let’s say you want to change a value (escape or alter an object in an array (list) or whatever), maybe return that in your function, or, depending on the function parameter, do another foreach on the array.

$array = array(1,2,3,4);
foreach ($array as &$value)
  $value++;
foreach ($array as $value)
  echo $value;

This wonderful and logic code will give you a rather interesting result:

2344

You did expect it to be 2345 right? :)

You can even find a bug-ticket about that,
and a comment which explains why this happens and that it is not a bug.

The $value reference is not deleted/cleared after the foreach.
That means in the second foreach the last element of the list (that’s where the reference is pointing to) is overwritten by one element after another by the second foreach.
When it comes to the last, the element is set to the one before the last, thus set to just that.

February 4, 2010

AvP Demo – my 2 cents

Filed under: English, Games — Tags: , , — Kissaki @ 23:39

my 2 cents on AvP demo:
lol, either my graphics card is way too old, or the engine is crap… the game was reacting way too slow, but it didn’t seem to be low on fps. But maybe that’s the way they handle low fps

And again, I saw where the game was coming from: consoles. :(
With a new graphics card, when I have one, I’ll try the demo again. And then we’ll see what I will do then.

Update:

Played again. Without ambient illusion, so with stable, good/ok fps.

As an alien. Controls were… not good.

As I played AvP2 a lot with my friends on small LANs I know what a superb game with great controls looks and feels like.
And the new AvP is all that not.

I was kind of looking forward to this game, as AvP2 really was one of the best games.
But I already feared it would end up like this, like many other console-and-PC games.
Especially when I saw first gameplay videos with the console auto-aim-jumping thing.

The demo, probably a bad choice of gamemode itself, did answer my question.
I’ll skip this game.

February 1, 2010

Quantz – a great indie puzzle game, a gem

Filed under: English, Games — Tags: , , , , , , , — Kissaki @ 01:28

Played Quantz this weekend.

At first I decided not to buy it, at some point of a typical steam (weekend?) deal I decided to buy it after all as the price was nice and it had achievements.

I played it yesterday and today, and I have to tell you, it’s one of those indie gems.
The atmosphere and visual style as well as music/sound is awesome.
It’s one of those indie games I godda recommend.
Try it.

And you definitely have to buy it from steams store on the next deal when it’s cheaper! (if you’re not buying it before that)

Update:

Uploaded 2 Full HD (1080p) gameplay videos on YouTube. Just for you!

QuantZ Gameplay – Strategy Mode – part 1

QuantZ Gameplay – Strategy Mode – part 2

December 13, 2009

UK – a police state – you’re not allowed to film on the streets! (After all, they do already)

Filed under: English, Politik — Tags: , , , — Kissaki @ 13:04

If you’re from the UK, you better do something.

It’s bee, what, a year?, since it only gets worse and worse in the UK.
If you didn’t follow it, you better do now.

If any country is becoming a police-state of worst fear, it will be the UK.
If it’s not already.

Packaging – How to compress for release packages?

7zip is a great algorythm, and my #1 choice for compressing.
Unfortunately, or not, it does not save unix permissions.

So one way would be to 7zip a tar file, like it is done very often with bzip2 or gzip, for a tar.bz2 and tgz.
Another way is to skip 7zip.

For MumPI 1.2 I did create pretty much any option there is (default compression ratio for all of them, using 7zr and tar on Debian) and thought I’d share compression ratios.
MumPI is a PHP web interface, so a lot of text documents, nothing more.

file-ending compression size %
tar tar 1,003,520 100%
zip zip 373,678 37%
tgz (/tar.gz) tar, gzip 344,698 34%
tar.bz2 tar, bzip2 329,183 33%
tar.7z tar, 7zip 275,526 27%
7z 7zip 274,068 27%

As expected.

In the future, I will pack tar.7z for Unix, and 7z for windows.
Maybe tgz and tar.bz2 for compatibility.
But driving ppl. to use the better software is a good thing to do, right? :)

Interesting sidenote:
7zipping on windows: 274,331
7zipping on unix: 274,068
Probably because of different versions or sth.

December 12, 2009

valid atom feed

Filed under: English, Webmaster — Kissaki @ 03:06

My atom feed was a bit malformed.

I now began fixing it, almost done. I only have to fix the really old ones later.
I found an xsd (XML schema) here, but it seems to have problems with html in an xhtml-typed content tag, and won’t validate there.

Also, I found a nice atom and rss  feed validator.

December 11, 2009

MumPI 1.1 – how to translate

Filed under: English, Mumble PHP Interface — Kissaki @ 01:28

just released 1.1

And so I won’t have to rewrite this to new translators:

if you have tortoiseGit installed, here’s a step-by-step:
create a folder where you want the code and edit,
rightclick and “git clone”, enter the repository url git://mumpi.git.sourceforge.net/gitroot/mumpi/mumpi
start editing

to make sure you have the most recent files, you can rightclick, tortoise git, pull

to save your progress: rightclick and commit

to submit me a patch with the translation, after you submitted your changes,
rightclick, tortoisegit, create patch serial (select a directory to export to) and click ok
then pack and send me the created patch files

and that should be all you need

December 10, 2009

changing author names in git repositories

Filed under: English, development — Tags: — Kissaki @ 22:39

After converting my code repository from bzr to git, I harmonized my commit-names.

git filter-branch --env-filter "echo $GIT_AUTHOR_NAME; export GIT_AUTHOR_NAME='Kissaki' GIT_AUTHOR_EMAIL='renamed@becauseof.bots' GIT_COMMITTER_NAME='Kissaki' GIT_COMMITTER_EMAIL='renamed@becauseof.bots'"

December 9, 2009

bzr fast-export git fast-import

Filed under: English, development — Tags: , , , , , , — Kissaki @ 23:30

Had to convert a bzr branch from bzr to git.

And wow, so easy with fast-export and fast-import.

After a git init it was as easy as typing

bzr fast-export | git fast-import

Done.

Ofc, I had to switch to linux to do it nice & easy.
bzr fast-export is available in the repos.

December 5, 2009

Cashcrawler stinkt

Filed under: Deutsch — Tags: , , — Kissaki @ 00:33

Cashcrawler stinkt

Haben mich gesperrt.

Keine Antwort auch nur auf eine meiner drei E-Mails (an 2 Adressen).

Im Forum kann ich das Passwort mit dem Benutzernamen anfordern.

Man sollte meinen mit den Daten kann man sich dann einloggen.
Ich nicht…

War dort immer gerne Mitglied, aber die sind jetzt mal so was von unten durch…

Older Posts »

Powered by WordPress