13/mag/2014

Missing mcrypt in php configuration

I've recently upgraded to Ubuntu 14.04 64 bit (in the past I've used only the 32bit version) from the past LTS. I'm quite happy with it but I've found a few glitches.

The last problem I've faced is

Fatal error: Call to undefined function mcrypt_module_open() in lib/Varien/Crypt/Mcrypt.php

Obviously php5-mcrypt is'n installed by default so:

sudo apt-get install php5-mcryp

seemed the natural solution ... but .. still you have to manually enable it

sudo php5enmod mcrypt

30/set/2013

Upgrading magento 1.7.0.0

This trivial note just because the wiki page about upgrading magento seems to be quite outdated ... or let's say it clearly ... wrong.

To upgrade magento from the command line (you would like to do it in case you have no public ftp access)

cd $YOUR_MAGENTO_HTDOCS
chmod 766 mage
./mage mage-setup
./mage sync
./mage list-upgrades
./mage upgrade-all

this upgrades all the extensions and the core application.

This utility can also be used to install extensions:

./mage install community

16/set/2013

AIR based Android apps with no-runtime

Hello everyone, I'm back to share part of my little experience in the mobile apps world: I've recently been involved into a mobile games project, I'm not doing much anyhow: just setting up a controlled environment which can leave us confident on what is being released to customers (... you know: things like maven, jenkins an the rest ... all those boring things visual programmers aren't used to ...).

Everything went smooth, my smart colleagues are producing very nice games targeted to all those cyber-childrens aged between 4 and 10 so lucky to handle a ios or android machine. Adobe's tools are really smart in compiling the air app into native adding AIR's runtime into it ... but you know hunger makes the best cook and apps have being stuffed with fancy music, videos and so on.

Here arise a problem: you cannot drop your apk into the play store if it's bigger than 50M unless you split it into external libraries, load them at runtime and so on.
In our case it is enough externalising AIR's runtime which seems to be possible since the store handles an official copy of it; since I run the adobe's sdk tool adt through adt-maven-plugin I first unsuccessfully tried configuring  <target>apk</target> unfortunately the build returned

[INFO] NOTE: The AIR SDK no longer supports packaging android applications for use with the shared Runtime.
[INFO] The application has been packaged with a captive Runtime.


I'm a lucky guy and Antoine noticed an environment variable which makes the job

AIR_ANDROID_SHARED_RUNTIME=true

yep! I've dropped the statement into one of those magic jenkins plugins and ... et voilà ... the apk is 10M skinner :-)