Friday, September 17, 2010

iPhone App Review: Eliminate

Eliminate is a real-time multi-player arena style first-person shooter game which is free to download and install. More importantly Eliminate is FREE to play. Players duke it out in 4-player free for all matches across several maps.

Eliminate offers a good amount of customization as players can purchase different weapons and armor as well as upgrade their existing ones. To earn credits, players must do well in the matches i.e. getting the kills and picking up the dropped credits whenever they succeed to eliminate another player. Players also level-up which unlocks more powerful weapons and armor.

The players armor has an energy meter which is expended with each match that is played. When the meter is full, a player can play up to 3 matches. A player can still play with no energy but that player will not earn credits. The energy bar recharges itself every 4 hours. Players can also use power cells to charge their energy bar. Power cells maybe purchased thru the iTunes’s in-app purchase system. A pack of 20 power cells costs $0.99.

As for me, I downloaded and installed the different versions of the game from the app store:

Eliminate Boost
Eliminate Burst
Eliminate Turbo
Eliminate Co-op

Each version offers some free power cells so I believe I have around 40 power cells in my account. I've tried the bot matches and as expected, I sucked at it. I will be doing some more training with the bots before I dive into actual player vs player combat. I recommend everyone to at least give Eliminate a try.

I hope you found the post useful. You can subscribe via email or subscribe via a feed reader to get relevant updates from this blog. Have a nice day.

Wednesday, September 15, 2010

REST XML parsing with Grails 1.3.4

We encountered an issue with Grails 1.3.4 where we found that the XML packet was not parsed and added to the params variable in the controller.

The grails manual has a section which describes how to do REST web services. We followed the instructions but we weren't able to get the automatic data binding to our domain class to work. A fix seems to be on the way but in the mean time, the code below provides a workaround for the issue:

private populateParamsFromXML(xml,map) {              
        def rootName = xml.name()
        //check if params is already populated
        if(map[rootName])
            return
        def xmlMap = [:]
        map[rootName] = xmlMap          
        map = xmlMap
        for (child in xml.children()) {
            // one-to-ones have ids
            if (child.@id.text()) {
                map["${child.name()}.id"] = child.@id.text()
                def childMap = [:]
                def key 
                map[child.name()] = childMap
                populateParamsFromXML(child, childMap)
            }
            else {
                map[child.name()] = child.text()
            }
        }
    }

It should be called in a controller action before the params variable is used to populate a domain class.

populateParamsFromXML(request.XML,params)

I hope you found the post useful. You can subscribe via email or subscribe via a feed reader to get relevant updates from this blog. Have a nice day.

Wednesday, July 14, 2010

Symfony: Day#1

Symfony is a web application framework for PHP projects. It aims to speed up the creation and maintenance of web applications, and to replace the repetitive coding tasks by power, control and pleasure.
Symfony is entirely free and published under the MIT license.

I'm currently following the online Symfony tutorial which can be found here: Practical Symfony.

This post documents how I got Symfony 1.4 running on an Ubuntu 10.04 Server installation. When I installed the server, I chose the option to install a default LAMP and Email server.

Tuesday, July 13, 2010

Withdraw from Paypal thru BDO

In a previous post entitled Withdraw from Paypal thru Citibank, I revealed how I was able to withdraw funds from my Paypal account to my credit card. In this post, I will detail my experience in Withdrawing from my Paypal account to my current account in BDO.

I initiated the withdrawal on July 8 2010. The amount was: $200.00. I chose this amount so as to not incur the PHP50.00 withdrawal fee that Paypal charges for amounts less than PHP 7,000.00. Paypal automatically converted the $200.00 withdrawn into PHP 9,033.10. Doing the simple math, Paypal used 45.1655 as the exchange rate.

Saturday, July 10, 2010

Withdraw from Paypal thru Citibank

Thru some stroke of luck which is another story altogether, my PayPal account has accumulated a considerable amount of credits. I've now come to the point where I want to make use of the credits I've earned. This meant using the withdraw features of PayPal and there are several options of getting your money here in the Philippines. This post discusses one of them.

As this was my first attempt at using the PayPal credits I earned, I opted to use the money to pay for my credit card bill. My VISA credit card is from Citibank and it's the same credit card I used to verify my PayPal account.