PR-Challenge: January

Cross posted from my blogs.perl.org blog.

As pointed out in my previous post (here), in the January assignment on the Pull Request Challenge, I got the Data::ObjectDriver module.

For this module I created two very simple pull requests. One regarding its management with Module::Install, that is quite dependent on the author’s taste. That one wasn’t merged yet and who knows if it will. The second one, also very simple, just fixed a test that relied on a DBD::SQLite error message that changed with recent versions. This PR was merged, and a development version of the module just hit CPAN.

Meanwhile, I think the most interesting achievement on this month challenge was that with this we got SIXAPART guys, that use this module heavily, to adopt it. Therefore, the current maintainer that did not have much time for it can now rest, and the module will get updated in the future. Also, the SIXAPART guys just resurrected their CPAN account.

This all to say that this challenge can be useful in quite different ways.

SimCity Build It (game review)

After the Diablo III post this might be just the second time I review a game, Probably this might get a constant in the future not just because I like to play games, but also because in the later years I have been teaching some computer science courses about digital games.

So, getting to SimCity Build It, and trying not to repeat much of the last post about tamagotchies. This is just another FarmVille like game, where you produce goods and use those goods to earn money, so you can produce yet more goods and get more money.

Where Farmville and Hay Day have the animals, SimCity has the buildings.  If in Farmville you planted plants, here you build factories. But unlike farm Ville animals and plants animations would be kind of enough to motivate some players, SimCity is quite limited and repetitive,

I got to level 10 without much effort, and without paying anything, and I think I would be able to climb some more levels without problems, but I got tired of wayting, tired of playing when the game wants and not when I need some distraction.

Also, or my tablet is slow, or the loading time for a city is too much. I can’t get to any neighbour city in time to buy some specific good. When the game ends loading the city market no longer lists the good I am interested in,

2 in 5

image

PR-Challenge: January 1st PR

Cross Posted from my Perl Blogs blog.

So, yeah, to make me more active in the Perl community I decided to join the Pull Request Challenge. I have a quite big number of modules to maintain, but sometimes it is good to look to some other people code to learn something.

My attribution for January was Data::ObjectDriver. I am not sure, yet, what this module is about, but I learned some stuff already, dealing with Module::Install. That was enough for a simple Pull Request [see here]. Hopefully it will be useful for other people as well. Also, hope it gets accepted.

Although this is enough for the Challenge, I expect, in the next days, to prepare at least one more Pull Request. So, stay tuned.

EDIT: The second pull request [here] did not take that much time. Fixed a test that was failing given new error message on DBD::SQLite.

From Tamagotchi to SimCity Build It

I am not sure if you remember the Tamagotchi at all. It was a small device, kind of “Chinese electronics” (sorry, I know most electronics are made in China anyway, so not sure why the ones that does not have a non-Chinese mark are mostly so creepy), where the child needed to take care of a pet.

Probably there were other games with similar behavior, but this is the first game that I remember that needed constant attention, as it worked in real time. From time to time, the device will ring and flash, asking the player to do something, like feeding the pet, or playing with it.

From Tamagotchi we got to different other games with real time behavior. Probably the most common is the FarmVille, the game from Zynga. You all know the game, so probably I do not need to talk about it. But the player is a farmer, and needs to take care of animals. Events occur from time to time, if the player is playing, or not. So, it cannot be compared with other games like the old Sim City. There, things happen from time to time, as well. But the player can change the speed of the time, or just exit or pause the game, getting to the last position next time it plays.

Well, the kind of FarmVille games continues. There is another one, very similar, for Android, Hay Day. Probably there are much more. But I just happen to have installed that Hay Day some time ago, as I really liked the chicken on its icon.

10625116_975899972436334_1361720262538398927_n

Well, recently I just downloaded SimCity Build It for Android, from Electronic Arts. You know, I am, or I was, a SimCity fan. So, why not to get a SimCity version and play it? Who knows, even buy it?

But I got frustrated. Why? Because SimCity Build It is Hay Day (or FarmVille) in disguise. The mechanics are exactly the ones from Hay Day. Even the market! But if Hay Day is prepared with some caution (for example, to make a strawberry cake, you need flour, sugar and strawberries), in SimCity Build It, to build a house, you might need some iron, plastic or some wood. But you might also need some seeds, or a couple of hammers or even a measure tape. Yes, you might need seems to build a building. Yeah, that makes sense (not).

And, again, this is a “real time” game. You can’t pause it, you can’t exit it, you can’t speed forward for some time. You do not control or play the game. The game plays you.

This also leads to the discussion on the old “Pay to play”, or the new “Pay to win”. I confess I prefer the first. You might even release a free shareware version (lets say, 5 free levels). Just make that clear in the download page. Then ask for some amount of money to buy the full game. But this might be a good discussion for any other future post.

The Hitchhiker’s Guide to the Galaxy (2005)

Babelfish

Babelfish

Fun! I read the trilogy in five volumes (yeah, I read that joke somewhere) a lot of time ago, even before the movie. So, before 2005. But this long I am looking forward to watch it, and finally I did. It was very fun to remember the book story, to recognize the character names, to remember the story of our planet as a computer (yep, it is).

Well, before some other comments, let me just say that Zooey Deschanel is extremely cute in this movie.

Getting back to the movie, also nice to remember the origin of “babelfish”. It is a shame that the current babelfish (.com) lost all connection to the story of its name. Search for old babelfish, from Altavista, to remember the interface, and the babelfish reference.

No, I will not talk much about the 42, or the Ultimate Question about the Universe and Everything. Just that if you want a proper answer, never forget to prepare your question with caution.

And finally, what can I say? Just like the Hitchhiker’s Guide to the Galaxy, DON’T PANIC!

Don't Panic!

Don’t Panic!

Cube Zero (2004)

Cube Zero

Cube Zero

Yeah, I liked the first two (Cube and Hypercube) and noticed recently that a Cube Zero was available since 2004. So, I decided to watch it. Well, given it mentions zero, this should, probably, be considered the first on the three movies (you know, that stuff like Star Wars, making time go back…).

I like this movie not because of the concept, or jokes, but because I like to wonder what traps will be in the next room. In fact I think this concept would be great in a computer game. Anybody around willing to write a script for it? Maybe I can find some friends to develop it.

The Flash (2014) S01E01

Danielle Panabaker @ The Flash

Danielle Panabaker @ The Flash

If it wasn’t for The Flash, a character I like, Danielle Panabaker would be a good reason to watch this series. Anyway, The Flash doesn’t have the charisma of Quicksilver in the latest X-Man movie, but maybe he can gain it. That quietude is of Quicksilver is just great. In this series, The Flash seems like some kind of idiot, but maybe it will change. So, for now, giving a chance to this series.

Java, and Cloning Arrays

Java-Evil-Edition-orfjackal_netJust to let you know, in case you find this kind of problem… Java is able to clone uni-dimensional arrays of built-in types, like int, but it is not able to clone multidimensional arrays, as a multidimensional array is an array of arrays, and an array is an object. Not sure this is the explanation, but the truth is… clone is useless in this evil language.

If you want to prove it yourself, just try the following code.

public class TestClone {

    public static void main(String[] args) {

    	int[][] boardM = new int[1][1];
    	int[][] copyM;

    	boardM[0][0] = 1;
    	copyM = boardM.clone();

    	boardM[0][0] = 2;

    	if (copyM[0][0] == boardM[0][0]) {
    		System.err.println("oops?");
    	}

    	int[] boardV = new int[1];
    	int[] copyV;

    	boardV[0] = 1;
    	copyV = boardV.clone();

    	boardV[0] = 2;

    	if (copyV[0] == boardV[0]) {
    		System.err.println("oops, too?");
    	}
    }
}

The Big Bang Theory (Season 6)

Leonard being a Show Off

Leonard being a Show Off

When all the four geeks get a “girlfriend”, my auto-esteem goes down. Anyway, Penny continues brilliant, Sheldon continues unsupportable, Leonard the same guy, and Raj gets even more feminine (wait for the last episode). Amy is great, and her face expressions are even better than Leonard or Sheldon ones. No big news on this season, other than the new girlfriend.

And, finally, somehow I understand why some people said TBBT was getting too offensive. I understand but I do not agree. We should know to deal with our history. It can be difficult, but we should.

X-Men: Days of Future Past (2014)

Evan Peters as Quicksilver

Evan Peters as Quicksilver

I read some time ago a paper (or was it a presentation) stating that there are a dozen of stories, that are changed and adapted, generating all the movies we have seen since the story of the world. I am not that drastic, but it seems that at least there was some kind of information sharing between the writers of this movie and the writers of Star Trek, into the Darkness. Why? Same base… somehow it seemed that the current status of the X-men World story wasn’t flexible enough, so lets get back into time, and change the story, so that now we can rewrite it, making some characters that were dead alive again. For Star Trek it was similar, the actors were idolized, or almost, and therefore, they got back in time to somehow introduce the new actors.

Not that I am against the idea. If you read an older post about the Star Trek movie I really gave my congratulations to the writers for that idea. Now I am not sure if I should congratulate again, as it seems the idea is not new.

Anyway, the movie is good. The story acceptable. Lots of action, fun, and a lot of different mutants around (I like when there are a lot of them, not just one or two). But what I liked the most? The scene I captured above, with Quicksilver. Not just I like the character, but Evan Peters is great. Please, please, please, make him come back in future movies.